Changeset 2298
- Timestamp:
- 09/07/06 05:24:47 (5 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/trunk/amp_conf/htdocs/admin/extensions.class.php
r2286 r2298 847 847 } 848 848 } 849 849 850 class ext_flite extends extension { 850 851 function output() { 851 852 return "Flite('".$this->data."')"; 853 } 854 } 855 class 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:'').")"; 852 864 } 853 865 } freepbx/trunk/amp_conf/htdocs/admin/modules/core/functions.inc.php
r2280 r2298 73 73 unset($fcc); 74 74 75 $fcc = new featurecode($modulename, 'chanspy'); 76 $fc_chanspy = $fcc->getCodeActive(); 77 unset($fcc); 78 75 79 $fcc = new featurecode($modulename, 'simu_pstn'); 76 80 $fc_simu_pstn = $fcc->getCodeActive(); … … 125 129 $ext->add('app-zapbarge', $fc_zapbarge, '', new ext_zapbarge('')); 126 130 $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('')); 127 141 } 128 142 freepbx/trunk/amp_conf/htdocs/admin/modules/core/install.php
r2101 r2298 16 16 $fcc->setDescription('ZapBarge'); 17 17 $fcc->setDefault('888'); 18 $fcc->update(); 19 unset($fcc); 20 21 $fcc = new featurecode('core', 'chanspy'); 22 $fcc->setDescription('ChanSpy'); 23 $fcc->setDefault('555'); 18 24 $fcc->update(); 19 25 unset($fcc);
