summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-11-01 02:04:05 +0000
committerMark Spencer <markster@digium.com>2004-11-01 02:04:05 +0000
commit37b375c21a7a57c7cb3bf1defcf19a7a65ee620b (patch)
treeb8ccc17cc53b0590846f5fba458fba6c562f478b /channels
parent219acbcc0765fb934a3dbfcb4723d62849c2d34a (diff)
Add TALK_DETECTED variable (bug #2628)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4139 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_sip.c2
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);