fix a dbh sintax that fails in some servers, seems old sintax is not supported

This commit is contained in:
luis daniel lucio quiroz
2013-12-23 00:29:54 +00:00
parent f306ff68ea
commit 41ea11528c

View File

@@ -133,7 +133,7 @@
sql = "SELECT hostname FROM registrations ";
sql = sql .. "WHERE reg_user = '"..dialed_extension.."' ";
sql = sql .. "AND realm = '"..domain_name.."'";
status = dbh_switch:query(sql, function(row)
dbh:query(sql, function(row)
database_hostname = row["hostname"];
end);
--freeswitch.consoleLog("notice", "[xml_handler] sql: " .. sql .. "\n");