dect
/
asterisk
Archived
13
0
Fork 0

Fix the ordering of the sscanfs for SDP parsing (bug #AT&T)

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6772 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
markster 2005-10-13 22:56:53 +00:00
parent ceb4041960
commit 156dd9b833
1 changed files with 2 additions and 2 deletions

View File

@ -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: */