Fix. Use external numbers in ring groups with global outbound routes (#2937)

This commit is contained in:
Alexey Melnichuk 2017-11-29 10:21:21 +03:00 committed by FusionPBX
parent ff5355e840
commit a7de7f0baa
1 changed files with 2 additions and 2 deletions

View File

@ -575,7 +575,7 @@ local function outbound_route_to_bridge(dbh, domain_uuid, fields, actions)
local current_dialplan_uuid, extension
dbh:query(select_outbound_dialplan_sql, {domain_uuid=domain_uuid, hostname=hostname}, function(route)
if context and context ~= route.dialplan_context then
if (route.dialplan_context ~= '${domain_name}') and (context and context ~= route.dialplan_context) then
-- skip dialplan for wrong contexts
return
end
@ -659,7 +659,7 @@ local function preload_dialplan(dbh, domain_uuid, fields)
local dialplan = {}
dbh:query(select_outbound_dialplan_sql, {domain_uuid=domain_uuid, hostname=hostname}, function(route)
if context and context ~= route.dialplan_context then
if (route.dialplan_context ~= '${domain_name}') and (context and context ~= route.dialplan_context) then
-- skip dialplan for wrong contexts
return
end