summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-02-20 19:08:47 +0100
committerspag <spag@golwen.net>2013-02-20 19:08:47 +0100
commit91331bf6e68cebeb709507b51ccdd078d1718b85 (patch)
treeac0763d73011a230dea7d7a05f2c8057c43817ea /misc
parent8bc658b53a8234e3b99c6e04d557086535c71765 (diff)
detect dtmf
Diffstat (limited to 'misc')
-rw-r--r--misc/freeswitch/scripts/dialplan/sip_call.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/freeswitch/scripts/dialplan/sip_call.lua b/misc/freeswitch/scripts/dialplan/sip_call.lua
index b56f1b2..e2d0da8 100644
--- a/misc/freeswitch/scripts/dialplan/sip_call.lua
+++ b/misc/freeswitch/scripts/dialplan/sip_call.lua
@@ -201,10 +201,10 @@ 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
+ if arg.detect_dtmf_after_bridge_caller and self.caller.auth_account then
session:execute('start_dtmf');
end
- if arg.detect_dtmf_after_bridge_callee then
+ if arg.detect_dtmf_after_bridge_callee and destination.type == 'sipaccount' then
session_callee:execute('start_dtmf');
end
if arg.bypass_media_network then