mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-22 14:34:09 -07:00
Only set DTMF information if an RTP structure exists
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@44788 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
+5
-2
@@ -12994,8 +12994,11 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int
|
||||
get_rdnis(p, NULL); /* Get redirect information */
|
||||
extract_uri(p, req); /* Get the Contact URI */
|
||||
build_contact(p); /* Build our contact header */
|
||||
ast_rtp_setdtmf(p->rtp, ast_test_flag(&p->flags[0], SIP_DTMF) != SIP_DTMF_INFO);
|
||||
ast_rtp_setdtmfcompensate(p->rtp, ast_test_flag(&p->flags[1], SIP_PAGE2_RFC2833_COMPENSATE));
|
||||
|
||||
if (p->rtp) {
|
||||
ast_rtp_setdtmf(p->rtp, ast_test_flag(&p->flags[0], SIP_DTMF) != SIP_DTMF_INFO);
|
||||
ast_rtp_setdtmfcompensate(p->rtp, ast_test_flag(&p->flags[1], SIP_PAGE2_RFC2833_COMPENSATE));
|
||||
}
|
||||
|
||||
if (!replace_id && gotdest) { /* No matching extension found */
|
||||
if (gotdest == 1 && ast_test_flag(&p->flags[1], SIP_PAGE2_ALLOWOVERLAP)) {
|
||||
|
||||
Reference in New Issue
Block a user