diff options
author | Peter Kozak <spag@golwen.net> | 2013-07-30 10:16:19 +0200 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-07-30 10:16:19 +0200 |
commit | dc505613feeda51c71cafd042c2ebb7af3cddca9 (patch) | |
tree | c28fa6c75e0cd1a73616696e2f4e2e85bdce62be /misc/freeswitch/scripts | |
parent | 5f9a7478429ac8a9464507402f36b296719508b2 (diff) |
set forwarding_path
Diffstat (limited to 'misc/freeswitch/scripts')
-rw-r--r-- | misc/freeswitch/scripts/dialplan/dialplan.lua | 8 |
1 files changed, 8 insertions, 0 deletions
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 |