diff options
Diffstat (limited to 'channels/chan_sip.c')
-rwxr-xr-x | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 71e29c42d..be35003ee 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -2638,7 +2638,7 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req) p->novideo = 1; while ((m = get_sdp_iterate(&iterator, req, "m"))[0] != '\0') { if ((sscanf(m, "audio %d RTP/AVP %n", &x, &len) == 1) || - (sscanf(m, "audio %d/%d RTP/AVP %n", &x, &y, &len) == 1)) { + (sscanf(m, "audio %d/%d RTP/AVP %n", &x, &y, &len) == 2)) { portno = x; /* Scan through the RTP payload types specified in a "m=" line: */ ast_rtp_pt_clear(p->rtp); |