summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2005-10-13 22:56:53 +0000
committerMark Spencer <markster@digium.com>2005-10-13 22:56:53 +0000
commit0b265779b2dcb72e7c28706f11f72ebc71d66e3e (patch)
treed11aeba3a68ef2a10f57f2922cd1a827f522f1b5 /channels
parent053326ac859e959931620452858f8fbc92c2ce1e (diff)
Fix the ordering of the sscanfs for SDP parsing (bug #AT&T)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6772 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_sip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index e7ca2617a..766ecee53 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -3400,8 +3400,8 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req)
ast_set_flag(p, SIP_NOVIDEO);
while ((m = get_sdp_iterate(&iterator, req, "m"))[0] != '\0') {
int found = 0;
- if ((sscanf(m, "audio %d RTP/AVP %n", &x, &len) == 1) ||
- (sscanf(m, "audio %d/%d RTP/AVP %n", &x, &y, &len) == 2)) {
+ if ((sscanf(m, "audio %d/%d RTP/AVP %n", &x, &y, &len) == 2) ||
+ (sscanf(m, "audio %d RTP/AVP %n", &x, &len) == 1)) {
found = 1;
portno = x;
/* Scan through the RTP payload types specified in a "m=" line: */