summaryrefslogtreecommitdiff
path: root/misc/freeswitch/scripts
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-01-16 09:28:38 +0100
committerspag <spag@golwen.net>2013-01-16 09:28:38 +0100
commit1debae060b1c4a816f4565ad55490fee61c6472b (patch)
tree5857444a6c321f786c2dc4cb3376f0067cd5b650 /misc/freeswitch/scripts
parenta248db30eb469f1fd99508df0cfbf47c4ad80b8c (diff)
dump_variables dialplan option added
Diffstat (limited to 'misc/freeswitch/scripts')
-rw-r--r--misc/freeswitch/scripts/dialplan_default.lua4
1 files changed, 3 insertions, 1 deletions
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);