Explorar o código

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 %!s(int64=15) %!d(string=hai) anos
pai
achega
4a272b17cd
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  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));