浏览代码

iptrtpproxy: RTP/SAVP and RTP/AVPF support

- added RTP/SAVP and RTP/AVPF to the supported media types.
- changed media types order, most frequent first (RTP/AVP and
  RTP/SAVP) and least frequent last (UDP and UDPTL).
Andrei Pelinescu-Onciul 15 年之前
父节点
当前提交
4a272b17cd
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      modules/iptrtpproxy/iptrtpproxy.c

+ 4 - 2
modules/iptrtpproxy/iptrtpproxy.c

@@ -202,10 +202,12 @@ static int parse_sdp_content(struct sip_msg* msg, struct sdp_session *sess) {
 	unsigned int cline_ip;
 
 	static str supported_media_types[] = {
-		STR_STATIC_INIT("udp"),
-		STR_STATIC_INIT("udptl"),
 		STR_STATIC_INIT("rtp/avp"),
+		STR_STATIC_INIT("rtp/savp"),
+		STR_STATIC_INIT("rtp/avpf"),
 		STR_STATIC_INIT("rtp/savpf"),
+		STR_STATIC_INIT("udp"),
+		STR_STATIC_INIT("udptl"),
 		STR_NULL
 	};
 	memset(sess, 0, sizeof(*sess));