diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-11-01 02:01:37 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-11-01 02:01:37 +0000 |
commit | 563b2abe0aeb1c4eba3f5e77427581c97eeefff4 (patch) | |
tree | 8f2489d0a0af14067a89bf0ee6ca5525fe8ccac4 /channels/chan_sip.c | |
parent | e27a2474a3ba8c3e2c1e1391505ec89de3901e88 (diff) |
Accept %d/%d in m= line of SDP (bug #2625, but not their patch)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4138 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-rwxr-xr-x | channels/chan_sip.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index b385aa2a7..71e29c42d 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -2607,7 +2607,7 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req) int codec; int iterator; int sendonly = 0; - int x; + int x,y; int debug=sip_debug_test_pvt(p); /* Update our last rtprx when we receive an SDP, too */ @@ -2637,7 +2637,8 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req) sdpLineNum_iterator_init(&iterator); p->novideo = 1; while ((m = get_sdp_iterate(&iterator, req, "m"))[0] != '\0') { - if ((sscanf(m, "audio %d RTP/AVP %n", &x, &len) == 1)) { + if ((sscanf(m, "audio %d RTP/AVP %n", &x, &len) == 1) || + (sscanf(m, "audio %d/%d RTP/AVP %n", &x, &y, &len) == 1)) { portno = x; /* Scan through the RTP payload types specified in a "m=" line: */ ast_rtp_pt_clear(p->rtp); |