Add the not found inbound route only if using the xml handler

This commit is contained in:
Mark Crane
2014-07-23 23:06:14 +00:00
parent c7cac6c6a4
commit db9ed99dcf
+2
View File
@@ -131,6 +131,7 @@
//add not found dialplan to inbound routes //add not found dialplan to inbound routes
if ($domains_processed == 1) { if ($domains_processed == 1) {
if (is_readable($_SESSION['switch']['dialplan']['dir'])) {
$sql = "select count(*) as num_rows from v_dialplans "; $sql = "select count(*) as num_rows from v_dialplans ";
$sql .= "where dialplan_uuid = 'ea5339de-1982-46ca-9695-c35176165314' "; $sql .= "where dialplan_uuid = 'ea5339de-1982-46ca-9695-c35176165314' ";
$prep_statement = $db->prepare(check_sql($sql)); $prep_statement = $db->prepare(check_sql($sql));
@@ -157,5 +158,6 @@
unset($prep_statement); unset($prep_statement);
} }
} }
}
?> ?>