diff options
author | Matthew Jordan <mjordan@digium.com> | 2015-04-10 17:56:47 +0000 |
---|---|---|
committer | Matthew Jordan <mjordan@digium.com> | 2015-04-10 17:56:47 +0000 |
commit | 8bae18ab9301a2e38fd414460fde8d6236f2162e (patch) | |
tree | 493944ba4e7f391ce8d12dce9d09d3aa6a9865aa /res/res_pjsip_session.c | |
parent | f69e46de25d016dd1c173d9077a4b2eb3505b704 (diff) |
res_pjsip: Add an 'auto' option for DTMF Mode
This patch adds support for automatically detecting the type of DTMF that a
PJSIP endpoint supports. When the 'dtmf_mode' endpoint option is set to 'auto',
the channel created for an endpoint will attempt to determine if RFC 4733
DTMF is supported. If so, it will use that DTMF type. If not, the DTMF type
for the channel will be set to inband.
Review: https://reviewboard.asterisk.org/r/4438
ASTERISK-24706 #close
Reported by: yaron nahum
patches:
yaron_patch_3_Feb.diff submitted by yaron nahum (License 6676)
........
Merged revisions 434637 from http://svn.asterisk.org/svn/asterisk/branches/13
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@434638 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_pjsip_session.c')
-rw-r--r-- | res/res_pjsip_session.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_pjsip_session.c b/res/res_pjsip_session.c index 4854c51d0..87ce2b0c1 100644 --- a/res/res_pjsip_session.c +++ b/res/res_pjsip_session.c @@ -1283,7 +1283,7 @@ struct ast_sip_session *ast_sip_session_alloc(struct ast_sip_endpoint *endpoint, session->inv_session = inv_session; session->req_caps = ast_format_cap_alloc(AST_FORMAT_CAP_FLAG_DEFAULT); - if (endpoint->dtmf == AST_SIP_DTMF_INBAND) { + if ((endpoint->dtmf == AST_SIP_DTMF_INBAND) || (endpoint->dtmf == AST_SIP_DTMF_AUTO)) { dsp_features |= DSP_FEATURE_DIGIT_DETECT; } |