Changeset 8781
- Timestamp:
- 02/07/10 12:13:36 (1 month ago)
- Files:
-
- modules/branches/2.7/core/functions.inc.php (modified) (4 diffs)
- modules/branches/2.7/core/page.routing.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.7/core/functions.inc.php
r8755 r8781 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']); … … 1511 1511 $thisrt = sql($sql,"getAll",DB_FETCHMODE_ASSOC); 1512 1512 $lastexten = false; 1513 $pri_noop = true; 1514 freepbx_debug($thisrt); 1513 1515 foreach($thisrt as $exten) { 1516 // Then do one call to user-callerid and record-enable instead of each time as in the past 1517 // macro-user-callerid moved to outbound-allroutes to obtain proper CID info which can be used 1518 // in more advanced routing 1519 // 1520 if ($pri_noop) { 1521 $ext->add($outrt['application'], $exten['extension'], '', new ext_noop('Macro(user-callerid): executed in outbound-allroutes PRI 1')); 1522 $pri_noop = false; 1523 } 1514 1524 //if emergencyroute, then set channel var 1515 1525 if(strpos($exten['args'],"EMERGENCYROUTE") !== false) … … 1530 1540 // destinations. 1531 1541 // 1532 // Then do one call to user-callerid and record-enable instead of each time as in the past1533 //1534 $ext->add($outrt['application'], $exten['extension'], '', new ext_macro('user-callerid,SKIPTTL'));1535 1542 $ext->add($outrt['application'], $exten['extension'], '', new ext_setvar("_NODEST","")); 1536 1543 $ext->add($outrt['application'], $exten['extension'], '', new ext_macro('record-enable,${AMPUSER},OUT')); … … 1539 1546 $ext->add($outrt['application'], $exten['extension'], '', new ext_macro($exten['args'])); 1540 1547 } 1541 if(strpos($exten['args'],"outisbusy") !== false) 1548 if(strpos($exten['args'],"outisbusy") !== false) { 1542 1549 $ext->add($outrt['application'], $exten['extension'], '', new ext_macro("outisbusy")); 1550 $pri_noop = true; 1551 } 1543 1552 } 1544 1553 } modules/branches/2.7/core/page.routing.php
r8754 r8781 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 <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)")?> 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)")?><br /> 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>
