Changeset 4658
- Timestamp:
- 08/02/07 15:00:01 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/branches/2.2/amp_conf/htdocs/admin/modules/core/functions.inc.php
r4387 r4658 2229 2229 function core_routing_getroutetrunks($route) { 2230 2230 global $db; 2231 $sql = "SELECT DISTINCT args FROM extensions WHERE context = 'outrt-".$route."' AND (args LIKE 'dialout-trunk,%' OR args LIKE 'dialout-enum,%') ORDER BY priority";2231 $sql = "SELECT DISTINCT args FROM extensions WHERE context = 'outrt-".$route."' AND (args LIKE 'dialout-trunk,%' OR args LIKE 'dialout-enum,%') ORDER BY CAST(priority as UNSIGNED) "; 2232 2232 $results = $db->getAll($sql); 2233 2233 if(DB::IsError($results)) { … … 2256 2256 function core_routing_getroutepassword($route) { 2257 2257 global $db; 2258 $sql = "SELECT DISTINCT args FROM extensions WHERE context = 'outrt-".$route."' AND (args LIKE 'dialout-trunk,%' OR args LIKE 'dialout-enum,%') ORDER BY priority";2258 $sql = "SELECT DISTINCT args FROM extensions WHERE context = 'outrt-".$route."' AND (args LIKE 'dialout-trunk,%' OR args LIKE 'dialout-enum,%') ORDER BY CAST(priority as UNSIGNED) "; 2259 2259 $results = $db->getOne($sql); 2260 2260 if(DB::IsError($results)) { freepbx/branches/2.2/amp_conf/htdocs/admin/modules/core/page.trunks.php
r4520 r4658 55 55 // check for duplicates, and re-sequence 56 56 $dialrules = array_values(array_unique($dialrules)); 57 } else { 58 $dialrules = ''; 57 59 } 58 60
