From 450e30893ebc71226bfd710fd662b29dff330fe2 Mon Sep 17 00:00:00 2001 From: mcrane Date: Fri, 24 Apr 2009 15:24:03 -0600 Subject: FreeSWITCH package set order for dialplan, extension, gateway and public lists --- config/freeswitch/freeswitch_gateways.tmp | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) (limited to 'config/freeswitch/freeswitch_gateways.tmp') diff --git a/config/freeswitch/freeswitch_gateways.tmp b/config/freeswitch/freeswitch_gateways.tmp index 88be8fc4..6a0d6dd6 100644 --- a/config/freeswitch/freeswitch_gateways.tmp +++ b/config/freeswitch/freeswitch_gateways.tmp @@ -126,8 +126,22 @@ if ($config_change == 1) { - 0) { + foreach ($a_gateways as $ent) { + $a_gateways[$i]['id'] = $i; + $i++; + } + } + + //order the array + function cmp_string($a, $b) { + return strcmp($a["gateway"], $b["gateway"]); + } + usort($a_gateways, "cmp_string"); + $i = 0; if (count($a_gateways) > 0) { @@ -135,23 +149,23 @@ if ($config_change == 1) { ?> - +   - +   - +   - +   - - + +
-- cgit v1.2.3