database_host nil prevention
This commit is contained in:
@@ -137,11 +137,12 @@
|
|||||||
database_hostname = row["hostname"];
|
database_hostname = row["hostname"];
|
||||||
end);
|
end);
|
||||||
--freeswitch.consoleLog("notice", "[xml_handler] sql: " .. sql .. "\n");
|
--freeswitch.consoleLog("notice", "[xml_handler] sql: " .. sql .. "\n");
|
||||||
--freeswitch.consoleLog("notice", "[xml_handler-directory.lua] database_hostname is " .. database_hostname .. "\n");
|
|
||||||
|
|
||||||
--hostname was not found set load_balancing to false to prevent a database_hostname concatenation error
|
--hostname was not found set load_balancing to false to prevent a database_hostname concatenation error
|
||||||
if (database_hostname == nil) then
|
if (database_hostname == nil) then
|
||||||
load_balancing = false;
|
load_balancing = false;
|
||||||
|
else
|
||||||
|
--freeswitch.consoleLog("notice", "[xml_handler-directory.lua] database_hostname is " .. database_hostname .. "\n");
|
||||||
end
|
end
|
||||||
|
|
||||||
--close the database connection
|
--close the database connection
|
||||||
|
|||||||
Reference in New Issue
Block a user