diff options
author | Peter Kozak <spag@golwen.net> | 2013-03-26 15:55:42 +0100 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-03-26 15:55:42 +0100 |
commit | 6c5141ca90bb25dd358a4b2cb4bf5a7a39c22597 (patch) | |
tree | 330dc2f060ab170dcc164e3c37b4ba92784983b7 /misc/freeswitch/scripts/dialplan_default.lua | |
parent | ed7625053860e646824e3213dbff96c312e4c9b7 (diff) |
global callback
Diffstat (limited to 'misc/freeswitch/scripts/dialplan_default.lua')
-rw-r--r-- | misc/freeswitch/scripts/dialplan_default.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/misc/freeswitch/scripts/dialplan_default.lua b/misc/freeswitch/scripts/dialplan_default.lua index 2b651c5..ba51ed3 100644 --- a/misc/freeswitch/scripts/dialplan_default.lua +++ b/misc/freeswitch/scripts/dialplan_default.lua @@ -29,6 +29,9 @@ function input_call_back_callee(s, object_type, object_data, arg) end end +function global_callback_handler(...) + return global_callback:run({...}); +end -- initialize logging require 'common.log' @@ -90,6 +93,10 @@ else end end +require 'dialplan.callback'; +global_callback = dialplan.callback.Callback:new{ session = session, log = log }; + + if start_caller.from_node then log:debug('AUTHENTICATION_REQUIRED_NODE - node_id: ', start_caller.node_id, ', domain: ', start_dialplan.domain); start_dialplan:hangup(407, start_dialplan.domain); |