Changeset 6208

Show
Ignore:
Timestamp:
07/27/08 01:11:04 (5 years ago)
Author:
p_lindheimer
Message:

closes #2956 no more channel to be spliced

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.5/blacklist/functions.inc.php

    r5388 r6208  
    140140      if (is_array($didlist)) { 
    141141        foreach ($didlist as $item) { 
    142           $did = core_did_get($item['extension'],$item['cidnum'],$item['channel']); 
     142          $did = core_did_get($item['extension'],$item['cidnum']); 
    143143                          $exten = $item['extension']; 
    144144                          $cidnum = $item['cidnum']; 
    145                           $channel = $item['channel']; 
    146145 
    147146                          $exten = (empty($exten)?"s":$exten); 
    148147                          $exten = $exten.(empty($cidnum)?"":"/".$cidnum); //if a CID num is defined, add it 
    149148 
    150                           if (empty($channel)) 
    151                             $context = "ext-did"; 
    152                           else 
    153                             $context = "macro-from-zaptel-{$channel}"; 
    154  
     149                          $context = "ext-did"; 
    155150                          $ext->splice($context, $exten, 1, new ext_gosub('1', 's', 'app-blacklist-check')); 
    156151        }