mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-05 19:23:49 +00:00
When determining the domain based DID/DDI or DNIS ignore whether the destination number is enabled or not. We need the information to determine the correct domain.
This commit is contained in:
@@ -40,7 +40,6 @@
|
||||
sql = sql .. "FROM v_destinations as n, v_domains as d "
|
||||
sql = sql .. "WHERE n.destination_number like '%"..destination_number.."' "
|
||||
sql = sql .. "AND n.destination_type = 'inbound' "
|
||||
sql = sql .. "AND n.destination_enabled = 'true' "
|
||||
sql = sql .. "AND n.domain_uuid = d.domain_uuid "
|
||||
--freeswitch.consoleLog("notice", "SQL:" .. sql .. "\n");
|
||||
assert(dbh:query(sql, function(row)
|
||||
|
||||
Reference in New Issue
Block a user