Fix my previous fix
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@728 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
7bc99b0135
commit
7f1005e793
1 changed files with 3 additions and 3 deletions
|
@ -1493,14 +1493,14 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req)
|
||||||
ast_rtp_pt_clear(p->rtp);
|
ast_rtp_pt_clear(p->rtp);
|
||||||
codecs = m + len;
|
codecs = m + len;
|
||||||
while(strlen(codecs)) {
|
while(strlen(codecs)) {
|
||||||
if (sscanf(codecs, "%d %n", &codec, &len) != 1) {
|
if (sscanf(codecs, "%d%n", &codec, &len) != 1) {
|
||||||
ast_log(LOG_WARNING, "Error in codec string '%s'\n", codecs);
|
ast_log(LOG_WARNING, "Error in codec string '%s'\n", codecs);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
ast_rtp_set_m_type(p->rtp, codec);
|
ast_rtp_set_m_type(p->rtp, codec);
|
||||||
codecs += len;
|
codecs += len;
|
||||||
/* Fix going to: a=rtpmap:0 PCMU/8000 line */
|
/* Skip over any whitespace */
|
||||||
if ( (int)(strlen(m)-(int)(codecs-m)) < 0 ) break;
|
while(*codecs && (*codecs < 33)) codecs++;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Next, scan through each "a=rtpmap:" line, noting each
|
// Next, scan through each "a=rtpmap:" line, noting each
|
||||||
|
|
Loading…
Reference in a new issue