Add h hostname to option for the gateways.

This commit is contained in:
markjcrane
2015-10-04 01:29:03 -06:00
parent 876516e307
commit 58edf1613d
5 changed files with 52 additions and 0 deletions

View File

@@ -119,6 +119,7 @@
sql = "select * from v_gateways ";
sql = sql .. "where enabled = 'true' and profile = '"..sip_profile_name.."' ";
end
sql = sql .. "and (g.hostname = '" .. hostname.. "' or g.hostname is null or g.hostname = '') ";
if (debug["sql"]) then
freeswitch.consoleLog("notice", "[xml_handler] SQL: " .. sql .. "\n");
end