Ticket #2167: freepbx_core_mysql3.diff

File freepbx_core_mysql3.diff, 0.9 kB (added by julianjm, 5 years ago)
  • functions.inc.php

    old new  
    453453                       $ext->add('outbound-allroutes', 'foo', '', new ext_noop('bar')); 
    454454                       foreach($outrts as $outrt) { 
    455455                               $ext->addInclude('outbound-allroutes',$outrt['application']); 
    456                                $sql = "SELECT * FROM extensions where context = '".$outrt['application']."' ORDER BY extension, CAST(priority AS UNSIGNED) ASC"; 
     456                               $sql = "SELECT * FROM extensions where context = '".$outrt['application']."' ORDER BY extension, priority+0 ASC"; 
    457457                               $thisrt = sql($sql,"getAll",DB_FETCHMODE_ASSOC); 
    458458                               foreach($thisrt as $exten) { 
    459459                                       //if emergencyroute, then set channel var