Edge case fix ring group when an extension is not registered.

This commit is contained in:
Mark Crane 2013-11-19 05:59:47 +00:00
parent f642264999
commit 849f2d05e3
1 changed files with 5 additions and 0 deletions

View File

@ -134,6 +134,11 @@
--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
if (database_hostname == nil) then
load_balancing = false;
end
--close the database connection
dbh_switch:release();
end