Only deal with getting the supported payloads on audio if an audio RTP stream exists
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38139 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
fb94a4933b
commit
6810884f60
1 changed files with 3 additions and 2 deletions
|
@ -4447,7 +4447,7 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req)
|
||||||
int old = 0;
|
int old = 0;
|
||||||
|
|
||||||
/* Peer capability is the capability in the SDP, non codec is RFC2833 DTMF (101) */
|
/* Peer capability is the capability in the SDP, non codec is RFC2833 DTMF (101) */
|
||||||
int peercapability, peernoncodeccapability;
|
int peercapability = 0, peernoncodeccapability = 0;
|
||||||
int vpeercapability = 0, vpeernoncodeccapability = 0;
|
int vpeercapability = 0, vpeernoncodeccapability = 0;
|
||||||
struct sockaddr_in sin; /*!< media socket address */
|
struct sockaddr_in sin; /*!< media socket address */
|
||||||
struct sockaddr_in vsin; /*!< Video socket address */
|
struct sockaddr_in vsin; /*!< Video socket address */
|
||||||
|
@ -4825,6 +4825,7 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Now gather all of the codecs that we are asked for: */
|
/* Now gather all of the codecs that we are asked for: */
|
||||||
|
if (p->rtp)
|
||||||
ast_rtp_get_current_formats(newaudiortp, &peercapability, &peernoncodeccapability);
|
ast_rtp_get_current_formats(newaudiortp, &peercapability, &peernoncodeccapability);
|
||||||
if (p->vrtp)
|
if (p->vrtp)
|
||||||
ast_rtp_get_current_formats(newvideortp, &vpeercapability, &vpeernoncodeccapability);
|
ast_rtp_get_current_formats(newvideortp, &vpeercapability, &vpeernoncodeccapability);
|
||||||
|
|
Loading…
Reference in a new issue