mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Update dialplan_outbound_add.php
Make the gateway select order the gateways with the current domain first
This commit is contained in:
@@ -729,7 +729,7 @@
|
||||
$sql = "select * from v_gateways ";
|
||||
$sql .= "where enabled = 'true' ";
|
||||
if (permission_exists('outbound_route_any_gateway')) {
|
||||
$sql .= "order by domain_uuid, gateway ";
|
||||
$sql .= "order by domain_uuid = '$domain_uuid' DESC, gateway ";
|
||||
}
|
||||
else {
|
||||
$sql .= "and domain_uuid = :domain_uuid ";
|
||||
|
||||
Reference in New Issue
Block a user