Module: sip-router Branch: master Commit: 4a272b17cd4e1837564f6aa7026569fac35af6b8 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=4a272b17...
Author: Andrei Pelinescu-Onciul andrei@iptel.org Committer: Andrei Pelinescu-Onciul andrei@iptel.org Date: Sun Sep 26 14:57:01 2010 +0200
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).
---
modules/iptrtpproxy/iptrtpproxy.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/modules/iptrtpproxy/iptrtpproxy.c b/modules/iptrtpproxy/iptrtpproxy.c index 8764436..cfb6c8b 100644 --- a/modules/iptrtpproxy/iptrtpproxy.c +++ b/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));