summaryrefslogtreecommitdiff
path: root/misc/freeswitch/scripts
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-07-03 09:09:19 +0200
committerPeter Kozak <spag@golwen.net>2013-07-03 09:09:19 +0200
commitfca31c4f47a04e7d21a9c6db69b2ff77d842aa23 (patch)
tree5fdbe28ced65bee711a191ef4aa22e091a087730 /misc/freeswitch/scripts
parent955aedbf4981d3e3947dd6811b5167707305dcb8 (diff)
send_ringing added
Diffstat (limited to 'misc/freeswitch/scripts')
-rw-r--r--misc/freeswitch/scripts/dialplan/hunt_group.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/misc/freeswitch/scripts/dialplan/hunt_group.lua b/misc/freeswitch/scripts/dialplan/hunt_group.lua
index e87c6b2..f12182c 100644
--- a/misc/freeswitch/scripts/dialplan/hunt_group.lua
+++ b/misc/freeswitch/scripts/dialplan/hunt_group.lua
@@ -165,7 +165,11 @@ function HuntGroup.run(self, dialplan_object, caller, destination)
table.insert(recursive_destinations, forwarding_destination);
end
require 'dialplan.sip_call'
- result = dialplan.sip_call.SipCall:new{ log = self.log, database = self.database, caller = caller }:fork( recursive_destinations, { callee_id_number = hunt_group_destination.number, timeout = member_timeout });
+ result = dialplan.sip_call.SipCall:new{ log = self.log, database = self.database, caller = caller }:fork( recursive_destinations,
+ { callee_id_number = hunt_group_destination.number,
+ timeout = member_timeout,
+ send_ringing = ( dialplan_object.send_ringing_to_gateways and caller.from_gateway ),
+ });
if result.disposition == 'SUCCESS' then
if result.fork_index then
result.destination = recursive_destinations[result.fork_index];