diff options
author | spag <spag@golwen.net> | 2013-02-20 19:09:31 +0100 |
---|---|---|
committer | spag <spag@golwen.net> | 2013-02-20 19:09:31 +0100 |
commit | 8f6c2ff6f50739a0370fff8641244d4d04be6fa9 (patch) | |
tree | 93e99e8d58cb0249161376862b67923f985ab1ab /misc/freeswitch/scripts | |
parent | 91331bf6e68cebeb709507b51ccdd078d1718b85 (diff) |
pass auth_account to transferred channel
Diffstat (limited to 'misc/freeswitch/scripts')
-rw-r--r-- | misc/freeswitch/scripts/dialplan/dtmf.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/misc/freeswitch/scripts/dialplan/dtmf.lua b/misc/freeswitch/scripts/dialplan/dtmf.lua index e7d459a..64f538e 100644 --- a/misc/freeswitch/scripts/dialplan/dtmf.lua +++ b/misc/freeswitch/scripts/dialplan/dtmf.lua @@ -68,6 +68,9 @@ function Dtmf.transfer(self, caller, destination, calee) caller:execute('transfer', destination); fapi:execute('uuid_kill', callee_uuid); else + if caller.account then + fapi:execute('uuid_setvar_multi', callee_uuid .. ' gs_auth_account_type=' .. caller.account.class .. ';gs_auth_account_uuid=' .. caller.account.uuid); + end fapi:execute('uuid_transfer', callee_uuid .. ' ' .. destination); caller.session:hangup(); end |