mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Fix Gateways and SIP profiles for single tenant systems.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
-- xml_handler.lua
|
-- xml_handler.lua
|
||||||
-- Part of FusionPBX
|
-- Part of FusionPBX
|
||||||
-- Copyright (C) 2013 Mark J Crane <markjcrane@fusionpbx.com>
|
-- Copyright (C) 2013 - 2015 Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
-- All rights reserved.
|
-- All rights reserved.
|
||||||
--
|
--
|
||||||
-- Redistribution and use in source and binary forms, with or without
|
-- Redistribution and use in source and binary forms, with or without
|
||||||
@@ -116,8 +116,8 @@
|
|||||||
sql = sql .. "and g.enabled = 'true' ";
|
sql = sql .. "and g.enabled = 'true' ";
|
||||||
sql = sql .. "and (g.domain_uuid = d.domain_uuid or g.domain_uuid is null) ";
|
sql = sql .. "and (g.domain_uuid = d.domain_uuid or g.domain_uuid is null) ";
|
||||||
else
|
else
|
||||||
sql = "select * from v_gateways ";
|
sql = "select * from v_gateways as g ";
|
||||||
sql = sql .. "where enabled = 'true' and profile = '"..sip_profile_name.."' ";
|
sql = sql .. "where g.enabled = 'true' and g.profile = '"..sip_profile_name.."' ";
|
||||||
end
|
end
|
||||||
sql = sql .. "and (g.hostname = '" .. hostname.. "' or g.hostname is null or g.hostname = '') ";
|
sql = sql .. "and (g.hostname = '" .. hostname.. "' or g.hostname is null or g.hostname = '') ";
|
||||||
if (debug["sql"]) then
|
if (debug["sql"]) then
|
||||||
|
|||||||
Reference in New Issue
Block a user