From dc505613feeda51c71cafd042c2ebb7af3cddca9 Mon Sep 17 00:00:00 2001 From: Peter Kozak Date: Tue, 30 Jul 2013 10:16:19 +0200 Subject: set forwarding_path --- misc/freeswitch/scripts/dialplan/dialplan.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/misc/freeswitch/scripts/dialplan/dialplan.lua b/misc/freeswitch/scripts/dialplan/dialplan.lua index ac8a07d..0f61021 100644 --- a/misc/freeswitch/scripts/dialplan/dialplan.lua +++ b/misc/freeswitch/scripts/dialplan/dialplan.lua @@ -969,6 +969,14 @@ function Dialplan.run(self, destination) destination, result ); + local forwarding_path = self.caller:to_s('gs_forwarding_path'); + if forwarding_path ~= '' then + forwarding_path = forwarding_path .. ','; + end + + forwarding_path = forwarding_path .. auth_account.class:sub(1,1) .. ':' .. auth_account.id; + self.caller:set_variable('gs_forwarding_path', forwarding_path); + self.log:debug('FORWARDING_PATH: ', forwarding_path); end end -- cgit v1.2.3