From 1debae060b1c4a816f4565ad55490fee61c6472b Mon Sep 17 00:00:00 2001 From: spag Date: Wed, 16 Jan 2013 09:28:38 +0100 Subject: dump_variables dialplan option added --- misc/freeswitch/scripts/dialplan_default.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'misc/freeswitch/scripts/dialplan_default.lua') diff --git a/misc/freeswitch/scripts/dialplan_default.lua b/misc/freeswitch/scripts/dialplan_default.lua index 42271b9..eb80ae4 100644 --- a/misc/freeswitch/scripts/dialplan_default.lua +++ b/misc/freeswitch/scripts/dialplan_default.lua @@ -39,7 +39,9 @@ start_dialplan:configuration_read(); start_caller.local_node_id = start_dialplan.node_id; start_caller:init_channel_variables(); --- session:execute('info','notice'); +if start_dialplan.config.parameters.dump_variables then + start_caller:execute('info', 'notice'); +end if start_caller.from_node and not start_dialplan:auth_node() then log:debug('DIALPLAN_DEFAULT - node unauthorized - node_id: ', start_caller.node_id, ', domain: ', start_dialplan.domain); -- cgit v1.2.3