From 9a3bbdb6f88c8d4666cc310d4080f3c7e25225b5 Mon Sep 17 00:00:00 2001 From: Peter Kozak Date: Mon, 15 Jul 2013 14:30:01 +0200 Subject: acd call forwarding methods added --- misc/freeswitch/scripts/dialplan/acd.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/misc/freeswitch/scripts/dialplan/acd.lua b/misc/freeswitch/scripts/dialplan/acd.lua index 5ed8979..1e6e2ef 100644 --- a/misc/freeswitch/scripts/dialplan/acd.lua +++ b/misc/freeswitch/scripts/dialplan/acd.lua @@ -482,3 +482,23 @@ function AutomaticCallDistributor.run(self, dialplan_object, caller, destination return result; end + +function AutomaticCallDistributor.call_forwarding_on(self, service, destination, destination_type, timeout, source) + + if not self.call_forwarding then + require 'common.call_forwarding'; + self.call_forwarding = common.call_forwarding.CallForwarding:new{ log = self.log, database = self.database, parent = self, domain = self.domain }; + end + + return self.call_forwarding:call_forwarding_on(service, destination, destination_type, timeout, source) +end + + +function AutomaticCallDistributor.call_forwarding_off(self, service, source, delete) + if not self.call_forwarding then + require 'common.call_forwarding'; + self.call_forwarding = common.call_forwarding.CallForwarding:new{ log = self.log, database = self.database, parent = self, domain = self.domain }; + end + + return self.call_forwarding:call_forwarding_off(service, source, delete) +end -- cgit v1.2.3