Debug Extension_UUID was crashing script (nil)
This commit is contained in:
parent
4f8203d8d3
commit
b51b9eab2a
|
|
@ -25,6 +25,7 @@
|
||||||
--set default variables
|
--set default variables
|
||||||
max_tries = "3";
|
max_tries = "3";
|
||||||
digit_timeout = "5000";
|
digit_timeout = "5000";
|
||||||
|
api = freeswitch.API();
|
||||||
|
|
||||||
--set the debug level
|
--set the debug level
|
||||||
debug["sql"] = false;
|
debug["sql"] = false;
|
||||||
|
|
@ -200,9 +201,21 @@ if ( session:ready() ) then
|
||||||
|
|
||||||
--log to the console
|
--log to the console
|
||||||
if (debug["var"]) then
|
if (debug["var"]) then
|
||||||
freeswitch.consoleLog("NOTICE", "sip_from_host: ".. sip_from_host .. "\n");
|
if sip_from_host~=nil then
|
||||||
freeswitch.consoleLog("NOTICE", "extension_uuid: ".. extension_uuid .. "\n");
|
freeswitch.consoleLog("NOTICE", "sip_from_host: ".. sip_from_host .. "\n");
|
||||||
freeswitch.consoleLog("NOTICE", "dial_string: ".. dial_string .. "\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
|
end
|
||||||
|
|
||||||
--show call variables
|
--show call variables
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue