Fix problem with processing too many lines in process_sdp
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@726 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
b5073a2e44
commit
a8420172ba
|
@ -1487,6 +1487,8 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req)
|
|||
}
|
||||
ast_rtp_set_m_type(p->rtp, codec);
|
||||
codecs += len;
|
||||
/* Fix going to: a=rtpmap:0 PCMU/8000 line */
|
||||
if ( (int)(strlen(m)-(int)(codecs-m)) < 0 ) break;
|
||||
}
|
||||
|
||||
// Next, scan through each "a=rtpmap:" line, noting each
|
||||
|
|
Loading…
Reference in New Issue