Debug Extension_UUID was crashing script (nil)

This commit is contained in:
James Rose 2013-10-30 15:15:55 +00:00
parent 4f8203d8d3
commit b51b9eab2a
1 changed files with 17 additions and 4 deletions

View File

@ -25,6 +25,7 @@
--set default variables
max_tries = "3";
digit_timeout = "5000";
api = freeswitch.API();
--set the debug level
debug["sql"] = false;
@ -200,9 +201,21 @@ if ( session:ready() ) then
--log to the console
if (debug["var"]) then
if sip_from_host~=nil then
freeswitch.consoleLog("NOTICE", "sip_from_host: ".. sip_from_host .. "\n");
else
freeswitch.consoleLog("NOTICE", "sip_from_host: NIL\n");
end
if extension_uuid~=nil then
freeswitch.consoleLog("NOTICE", "extension_uuid: ".. extension_uuid .. "\n");
else
freeswitch.consoleLog("NOTICE", "extension_uuid: NIL\n");
end
if dial_string~=nil then
freeswitch.consoleLog("NOTICE", "dial_string: ".. dial_string .. "\n");
else
freeswitch.consoleLog("NOTICE", "dial_string: NIL\n");
end
end
--show call variables