mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-04 10:43:49 +00:00
fix a dbh sintax that fails in some servers, seems old sintax is not supported
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user