diff options
author | Peter Kozak <spag@golwen.net> | 2013-03-04 07:46:03 -0500 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-03-04 07:46:03 -0500 |
commit | b0118a229516766c22ee8268c182c91c3c15b1cd (patch) | |
tree | fa0d62e929bf2589b9d91fcf88a6cb1c7aa9768d /misc/freeswitch/scripts/dialplan_default.lua | |
parent | 78a0ef0fce768c3743d66d5856c95c0595aadfaf (diff) |
object loader class vs. dialplan method
Diffstat (limited to 'misc/freeswitch/scripts/dialplan_default.lua')
-rw-r--r-- | misc/freeswitch/scripts/dialplan_default.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/freeswitch/scripts/dialplan_default.lua b/misc/freeswitch/scripts/dialplan_default.lua index 8fb9057..2b651c5 100644 --- a/misc/freeswitch/scripts/dialplan_default.lua +++ b/misc/freeswitch/scripts/dialplan_default.lua @@ -8,7 +8,7 @@ function hangup_hook_caller(s, status, arg) if tostring(status) == 'transfer' then if start_caller and start_caller.destination then log:info('CALL_TRANSFERRED - destination was: ', start_caller.destination.type, '=', start_caller.destination.id,', number: ' .. tostring(start_caller.destination.number) .. ', to: ' .. start_caller:to_s('sip_refer_to')); - start_caller.auth_account = start_caller.dialplan:object_find(start_caller.destination.type, start_caller.destination.id); + start_caller.auth_account = start_caller.dialplan:object_find{class = start_caller.destination.type, id = start_caller.destination.id}; start_caller.forwarding_number = start_caller.destination.number; start_caller.forwarding_service = 'transfer'; end |