summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-02-06 18:53:46 +0100
committerspag <spag@golwen.net>2013-02-06 18:53:46 +0100
commitdf663953901e5d4192cb38e56f5b6e27d6daf3fb (patch)
treea6e4e7e8e02cd59c40d473306b0d0bb055a94a7d /misc
parent63afedf97d2d54a40274cb041a43f572eacc4849 (diff)
inband dtmf code detection
Diffstat (limited to 'misc')
-rw-r--r--misc/freeswitch/scripts/dialplan/sip_call.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/misc/freeswitch/scripts/dialplan/sip_call.lua b/misc/freeswitch/scripts/dialplan/sip_call.lua
index 806c72c..1b5c6e1 100644
--- a/misc/freeswitch/scripts/dialplan/sip_call.lua
+++ b/misc/freeswitch/scripts/dialplan/sip_call.lua
@@ -195,6 +195,12 @@ function SipCall.fork(self, destinations, arg )
fork_index = tonumber(session_callee:getVariable('gs_fork_index')) or 0;
local destination = destinations[fork_index];
+ if arg.detect_dtmf_after_bridge_caller then
+ session:execute('start_dtmf');
+ end
+ if arg.detect_dtmf_after_bridge_callee then
+ session_callee:execute('start_dtmf');
+ end
if arg.bypass_media_network then
local callee_uuid = session_callee:get_uuid();