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 = "SELECT hostname FROM registrations ";
|
||||||
sql = sql .. "WHERE reg_user = '"..dialed_extension.."' ";
|
sql = sql .. "WHERE reg_user = '"..dialed_extension.."' ";
|
||||||
sql = sql .. "AND realm = '"..domain_name.."'";
|
sql = sql .. "AND realm = '"..domain_name.."'";
|
||||||
status = dbh_switch:query(sql, function(row)
|
dbh:query(sql, function(row)
|
||||||
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");
|
||||||
|
|||||||
Reference in New Issue
Block a user