Add the not found inbound route only if using the xml handler
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
Reference in New Issue
Block a user