From fca31c4f47a04e7d21a9c6db69b2ff77d842aa23 Mon Sep 17 00:00:00 2001 From: Peter Kozak Date: Wed, 3 Jul 2013 09:09:19 +0200 Subject: send_ringing added --- misc/freeswitch/scripts/dialplan/hunt_group.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'misc') 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]; -- cgit v1.2.3