Changeset 8781

Show
Ignore:
Timestamp:
02/07/10 14:13:36 (2 years ago)
Author:
p_lindheimer
Message:

Auto Check-in of any outstanding patches

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.7/core/functions.inc.php

    r8755 r8781  
    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']); 
     
    15111511        $thisrt = sql($sql,"getAll",DB_FETCHMODE_ASSOC); 
    15121512        $lastexten = false; 
     1513        $pri_noop = true; 
     1514        freepbx_debug($thisrt); 
    15131515        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          } 
    15141524          //if emergencyroute, then set channel var 
    15151525          if(strpos($exten['args'],"EMERGENCYROUTE") !== false) 
     
    15301540              // destinations. 
    15311541              // 
    1532               // Then do one call to user-callerid and record-enable instead of each time as in the past 
    1533               // 
    1534               $ext->add($outrt['application'], $exten['extension'], '', new ext_macro('user-callerid,SKIPTTL')); 
    15351542              $ext->add($outrt['application'], $exten['extension'], '', new ext_setvar("_NODEST","")); 
    15361543              $ext->add($outrt['application'], $exten['extension'], '', new ext_macro('record-enable,${AMPUSER},OUT')); 
     
    15391546            $ext->add($outrt['application'], $exten['extension'], '', new ext_macro($exten['args'])); 
    15401547          } 
    1541           if(strpos($exten['args'],"outisbusy") !== false) 
     1548          if(strpos($exten['args'],"outisbusy") !== false) { 
    15421549            $ext->add($outrt['application'], $exten['extension'], '', new ext_macro("outisbusy")); 
     1550            $pri_noop = true; 
     1551          } 
    15431552        } 
    15441553      } 
  • modules/branches/2.7/core/page.routing.php

    r8754 r8781  
    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> 
    379    <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)")?> 
     379   <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)")?><br /> 
     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>