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:
Mark Crane
2014-04-03 06:20:59 +00:00
parent b1e4bc8131
commit 44c0a7f87a

View File

@@ -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)