Update dialplan_outbound_add.php

Make the gateway select order the gateways with the current domain first
This commit is contained in:
Darren Williams 2020-10-28 18:55:26 +00:00 committed by GitHub
parent 6d0773633b
commit caacf5b82c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 ";