summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorMatthew Jordan <mjordan@digium.com>2015-04-10 17:53:44 +0000
committerMatthew Jordan <mjordan@digium.com>2015-04-10 17:53:44 +0000
commit88b0fa77555b6216d751e156f7f0fdfe33fa9638 (patch)
treef75fd733bf050239a2f4b1bc15f86451fe79d0f4 /main
parent16afee4651c034f5cab18b0ee0a1b925b9044fdf (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) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@434637 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r--main/dsp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/main/dsp.c b/main/dsp.c
index 335fb3db0..087416358 100644
--- a/main/dsp.c
+++ b/main/dsp.c
@@ -1702,6 +1702,13 @@ void ast_dsp_set_features(struct ast_dsp *dsp, int features)
}
}
+
+int ast_dsp_get_features(struct ast_dsp *dsp)
+{
+ return (dsp->features);
+}
+
+
void ast_dsp_free(struct ast_dsp *dsp)
{
ast_free(dsp);