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 1504 1504 $sql = "SELECT application FROM extensions where context = 'outbound-allroutes' ORDER BY application"; 1505 1505 $outrts = sql($sql,"getAll",DB_FETCHMODE_ASSOC); 1506 1506 $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')); 1508 1508 foreach($outrts as $outrt) { 1509 1509 $ext->addInclude('outbound-allroutes',$outrt['application']); 1510 1510 $sql = "SELECT * FROM extensions where context = '".$outrt['application']."' ORDER BY extension, CAST(priority AS UNSIGNED) ASC"; 1511 1511 $thisrt = sql($sql,"getAll",DB_FETCHMODE_ASSOC); 1512 1512 $lastexten = false; 1513 1513 foreach($thisrt as $exten) { 1514 $ext->add($outrt['application'], $exten['extension'], '', new ext_noop('Never Executed - PRI 1 executed out of outbound-allroutes')); 1514 1515 //if emergencyroute, then set channel var 1515 1516 if(strpos($exten['args'],"EMERGENCYROUTE") !== false) 1516 1517 $ext->add($outrt['application'], $exten['extension'], '', new ext_setvar("EMERGENCYROUTE",substr($exten['args'],15))); … … 1531 1532 // 1532 1533 // Then do one call to user-callerid and record-enable instead of each time as in the past 1533 1534 // 1534 $ext->add($outrt['application'], $exten['extension'], '', new ext_macro('user-callerid,SKIPTTL'));1535 1535 $ext->add($outrt['application'], $exten['extension'], '', new ext_setvar("_NODEST","")); 1536 1536 $ext->add($outrt['application'], $exten['extension'], '', new ext_macro('record-enable,${AMPUSER},OUT')); 1537 1537 $lastexten = $exten['extension']; -
page.routing.php
old new 377 377 <strong>[1237-9]</strong> <?php echo _("matches any digit or letter in the brackets (in this example, 1,2,3,7,8,9)")?><br> 378 378 <strong>.</strong> <?php echo _("wildcard, matches one or more characters")?> <br> 379 379 <strong>|</strong> <?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> <?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\")")?> 380 381 </span></a> 381 382 </td> 382 383 </tr>
