mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-08 10:58:15 +00:00
Accept %d/%d in m= line of SDP (bug #2625, but not their patch)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4138 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2607,7 +2607,7 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req)
|
|||||||
int codec;
|
int codec;
|
||||||
int iterator;
|
int iterator;
|
||||||
int sendonly = 0;
|
int sendonly = 0;
|
||||||
int x;
|
int x,y;
|
||||||
int debug=sip_debug_test_pvt(p);
|
int debug=sip_debug_test_pvt(p);
|
||||||
|
|
||||||
/* Update our last rtprx when we receive an SDP, too */
|
/* Update our last rtprx when we receive an SDP, too */
|
||||||
@@ -2637,7 +2637,8 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req)
|
|||||||
sdpLineNum_iterator_init(&iterator);
|
sdpLineNum_iterator_init(&iterator);
|
||||||
p->novideo = 1;
|
p->novideo = 1;
|
||||||
while ((m = get_sdp_iterate(&iterator, req, "m"))[0] != '\0') {
|
while ((m = get_sdp_iterate(&iterator, req, "m"))[0] != '\0') {
|
||||||
if ((sscanf(m, "audio %d RTP/AVP %n", &x, &len) == 1)) {
|
if ((sscanf(m, "audio %d RTP/AVP %n", &x, &len) == 1) ||
|
||||||
|
(sscanf(m, "audio %d/%d RTP/AVP %n", &x, &y, &len) == 1)) {
|
||||||
portno = x;
|
portno = x;
|
||||||
/* Scan through the RTP payload types specified in a "m=" line: */
|
/* Scan through the RTP payload types specified in a "m=" line: */
|
||||||
ast_rtp_pt_clear(p->rtp);
|
ast_rtp_pt_clear(p->rtp);
|
||||||
|
|||||||
Reference in New Issue
Block a user