summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2006-05-17 22:02:15 +0000
committerJoshua Colp <jcolp@digium.com>2006-05-17 22:02:15 +0000
commit6eb1d09ad9f9b834f11391fcdb0d8f8c10ba2ea3 (patch)
tree1e0f13d83bbc2a80abd380ac5c155539249a1d50 /channels
parent10c0ed16f0f97d485d3a678a286ebb51d36ccb56 (diff)
Only set the RTP DTMF information of an RTP structure does indeed exist.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@27972 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index ac1fd58d0..730de659f 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -2195,18 +2195,19 @@ static int create_addr_from_peer(struct sip_pvt *r, struct sip_peer *peer)
ast_rtp_destroy(r->vrtp);
r->vrtp = NULL;
}
- ast_rtp_setdtmf(r->rtp, ast_test_flag(&r->flags[0], SIP_DTMF) != SIP_DTMF_INFO);
r->prefs = peer->prefs;
natflags = ast_test_flag(&r->flags[0], SIP_NAT) & SIP_NAT_ROUTE;
if (r->rtp) {
if (option_debug)
ast_log(LOG_DEBUG, "Setting NAT on RTP to %d\n", natflags);
ast_rtp_setnat(r->rtp, natflags);
+ ast_rtp_setdtmf(r->rtp, ast_test_flag(&r->flags[0], SIP_DTMF) != SIP_DTMF_INFO);
}
if (r->vrtp) {
if (option_debug)
ast_log(LOG_DEBUG, "Setting NAT on VRTP to %d\n", natflags);
ast_rtp_setnat(r->vrtp, natflags);
+ ast_rtp_setdtmf(r->vrtp, 0);
}
ast_string_field_set(r, peername, peer->username);
ast_string_field_set(r, authname, peer->username);