Changeset 2298

Show
Ignore:
Timestamp:
09/07/06 05:24:47 (5 years ago)
Author:
qldrob
Message:

Added another of webbrainstorms patches, thanks! - Ref #1043

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/htdocs/admin/extensions.class.php

    r2286 r2298  
    847847  } 
    848848} 
     849 
    849850class ext_flite extends extension { 
    850851  function output() { 
    851852    return "Flite('".$this->data."')"; 
     853  } 
     854} 
     855class ext_chanspy extends extension { 
     856  var $prefix; 
     857  var $options; 
     858  function ext_chanspy($prefix = '', $options = '') { 
     859    $this->prefix = $prefix; 
     860    $this->options = $options; 
     861  } 
     862  function output() { 
     863    return "ChanSpy(".$this->prefix.($this->options?'|'.$this->options:'').")"; 
    852864  } 
    853865} 
  • freepbx/trunk/amp_conf/htdocs/admin/modules/core/functions.inc.php

    r2280 r2298  
    7373      unset($fcc); 
    7474 
     75      $fcc = new featurecode($modulename, 'chanspy'); 
     76      $fc_chanspy = $fcc->getCodeActive(); 
     77      unset($fcc); 
     78 
    7579      $fcc = new featurecode($modulename, 'simu_pstn'); 
    7680      $fc_simu_pstn = $fcc->getCodeActive(); 
     
    125129        $ext->add('app-zapbarge', $fc_zapbarge, '', new ext_zapbarge('')); 
    126130        $ext->add('app-zapbarge', $fc_zapbarge, '', new ext_hangup('')); 
     131      } 
     132 
     133      // chan spy 
     134      if ($fc_chanspy != '') { 
     135        $ext->addInclude('from-internal-additional', 'app-chanspy'); // Add the include from from-internal 
     136        $ext->add('app-chanspy', $fc_chanspy, '', new ext_macro('user-callerid')); 
     137        $ext->add('app-chanspy', $fc_chanspy, '', new ext_answer('')); 
     138        $ext->add('app-chanspy', $fc_chanspy, '', new ext_wait(1)); 
     139        $ext->add('app-chanspy', $fc_chanspy, '', new ext_chanspy('')); 
     140        $ext->add('app-chanspy', $fc_chanspy, '', new ext_hangup('')); 
    127141      } 
    128142       
  • freepbx/trunk/amp_conf/htdocs/admin/modules/core/install.php

    r2101 r2298  
    1616$fcc->setDescription('ZapBarge'); 
    1717$fcc->setDefault('888'); 
     18$fcc->update(); 
     19unset($fcc); 
     20 
     21$fcc = new featurecode('core', 'chanspy'); 
     22$fcc->setDescription('ChanSpy'); 
     23$fcc->setDefault('555'); 
    1824$fcc->update(); 
    1925unset($fcc);