Fixed a problem when debug params is set to true and reloadxml command is used it threw an error about nil params on some things.
This commit is contained in:
@@ -52,16 +52,18 @@
|
|||||||
if (not params) then
|
if (not params) then
|
||||||
params = {}
|
params = {}
|
||||||
function params:getHeader(name)
|
function params:getHeader(name)
|
||||||
self.name = name
|
self.name = name;
|
||||||
end
|
end
|
||||||
function params:serialize(name)
|
function params:serialize(name)
|
||||||
self.name = name
|
self.name = name;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
--show the params in the console
|
--show the params in the console
|
||||||
if (debug["params"]) then
|
if (debug["params"]) then
|
||||||
freeswitch.consoleLog("notice", "[xml_handler] Params:\n" .. params:serialize() .. "\n");
|
if (params:serialize() ~= nil) then
|
||||||
|
freeswitch.consoleLog("notice", "[xml_handler] Params:\n" .. params:serialize() .. "\n");
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
--show the xml request in the console
|
--show the xml request in the console
|
||||||
|
|||||||
Reference in New Issue
Block a user