Ticket #3993: outbound-routing-CID.diff

File outbound-routing-CID.diff, 2.6 kB (added by drmessano, 2 years ago)
  • functions.inc.php

    old new  
    15041504      $sql = "SELECT application FROM extensions where context = 'outbound-allroutes' ORDER BY application"; 
    15051505      $outrts = sql($sql,"getAll",DB_FETCHMODE_ASSOC); 
    15061506      $ext->addInclude('from-internal-additional','outbound-allroutes'); 
    1507       $ext->add('outbound-allroutes', 'foo', '', new ext_noop('bar')); 
     1507      $ext->add('outbound-allroutes', '_!', '', new ext_macro('user-callerid,SKIPTTL')); 
    15081508      foreach($outrts as $outrt) { 
    15091509        $ext->addInclude('outbound-allroutes',$outrt['application']); 
    15101510        $sql = "SELECT * FROM extensions where context = '".$outrt['application']."' ORDER BY extension, CAST(priority AS UNSIGNED) ASC"; 
    15111511        $thisrt = sql($sql,"getAll",DB_FETCHMODE_ASSOC); 
    15121512        $lastexten = false; 
    15131513        foreach($thisrt as $exten) { 
     1514              $ext->add($outrt['application'], $exten['extension'], '', new ext_noop('Never Executed - PRI 1 executed out of outbound-allroutes'));  
    15141515          //if emergencyroute, then set channel var 
    15151516          if(strpos($exten['args'],"EMERGENCYROUTE") !== false) 
    15161517            $ext->add($outrt['application'], $exten['extension'], '', new ext_setvar("EMERGENCYROUTE",substr($exten['args'],15))); 
     
    15311532              // 
    15321533              // Then do one call to user-callerid and record-enable instead of each time as in the past 
    15331534              // 
    1534               $ext->add($outrt['application'], $exten['extension'], '', new ext_macro('user-callerid,SKIPTTL')); 
    15351535              $ext->add($outrt['application'], $exten['extension'], '', new ext_setvar("_NODEST","")); 
    15361536              $ext->add($outrt['application'], $exten['extension'], '', new ext_macro('record-enable,${AMPUSER},OUT')); 
    15371537              $lastexten = $exten['extension']; 
  • page.routing.php

    old new  
    377377   <strong>[1237-9]</strong>&nbsp;   <?php echo _("matches any digit or letter in the brackets (in this example, 1,2,3,7,8,9)")?><br> 
    378378   <strong>.</strong>&nbsp;&nbsp;&nbsp; <?php echo _("wildcard, matches one or more characters")?> <br> 
    379379   <strong>|</strong>&nbsp;&nbsp;&nbsp; <?php echo _("separates a dialing prefix from the number (for example, 9|NXXXXXX would match when some dialed \"95551234\" but would only pass \"5551234\" to the trunks)")?> 
     380   <strong>/</strong>&nbsp;&nbsp;&nbsp; <?php echo _("appended to a dial pattern, matches a callerid or callerid pattern (for example, NXXXXXX/104 would match only if dialed by extension \"104\")")?> 
    380381        </span></a> 
    381382      </td> 
    382383    </tr>