diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-03-11 16:36:50 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-03-11 16:36:50 +0000 |
commit | 2bcbabb18c63b00ecf45d7cc2ef3488b496e7c31 (patch) | |
tree | 91eaddaa8dcd1d753ea80ece42bcd16bd746e28f /channels | |
parent | d16c3fd4ca7637d33efa163106630a4110f7a448 (diff) |
Fix a problem with inband DTMF detection on outgoing SIP calls when dtmfmode=auto.
When dtmfmode was set to auto the inband DTMF detector was not setup
on outgoing SIP calls. This caused inband DTMF detection to fail.
The inband DTMF detector is now setup for both dtmfmode inband and auto.
(closes issue #13713)
Reported by: makoto
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@181295 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 14ca33276..802a31ce3 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -4154,7 +4154,7 @@ static struct ast_channel *sip_new(struct sip_pvt *i, int state, const char *tit - if (ast_test_flag(&i->flags[0], SIP_DTMF) == SIP_DTMF_INBAND) { + if ((ast_test_flag(&i->flags[0], SIP_DTMF) == SIP_DTMF_INBAND) || (ast_test_flag(&i->flags[0], SIP_DTMF) == SIP_DTMF_AUTO)) { i->vad = ast_dsp_new(); ast_dsp_set_features(i->vad, DSP_FEATURE_DTMF_DETECT); if (global_relaxdtmf) |