Update switch.php
This commit is contained in:
parent
9a982edc2e
commit
cfd773fbf4
|
|
@ -348,7 +348,6 @@ function outbound_route_to_bridge($domain_uuid, $destination_number, array $chan
|
||||||
$database = new database;
|
$database = new database;
|
||||||
$result = $database->select($sql, $parameters, 'all');
|
$result = $database->select($sql, $parameters, 'all');
|
||||||
unset($sql, $parameters);
|
unset($sql, $parameters);
|
||||||
|
|
||||||
if (!empty($result)) {
|
if (!empty($result)) {
|
||||||
foreach ($result as &$row) {
|
foreach ($result as &$row) {
|
||||||
$dialplan_uuid = $row["dialplan_uuid"];
|
$dialplan_uuid = $row["dialplan_uuid"];
|
||||||
|
|
@ -393,7 +392,7 @@ function outbound_route_to_bridge($domain_uuid, $destination_number, array $chan
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!in_array('false', $condition_match)) {
|
if (!in_array('false', $condition_match)) {
|
||||||
foreach ($dialplan as &$dialplan_details) {
|
foreach ($dialplan as &$dialplan_details) {
|
||||||
$dialplan_detail_data = $dialplan_details['dialplan_detail_data'] ?? '';
|
$dialplan_detail_data = $dialplan_details['dialplan_detail_data'] ?? '';
|
||||||
|
|
@ -413,7 +412,7 @@ function outbound_route_to_bridge($domain_uuid, $destination_number, array $chan
|
||||||
$x++;
|
$x++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($dialplan["dialplan_continue"] == "false") {
|
if ($dialplan["dialplan_continue"] == "false") {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue