root/contributed_modules/modules/silentmonitor/install.php

Revision 5397, 0.6 kB (checked in by p_lindheimer, 4 years ago)

add silentmonitor to contributed modules directory. I'll consider adding this to the released product once I get some testers to confirm that it works properly. In addition, it should be changed to add/remove the 1.4+ only feature codes during retrieve_conf upon detecting a change in asterisk version in addition to at install/uninstall time - or shoudl just have dependencies added to make it 1.4 only

Line 
1 <?php
2
3 global $engineinfo;
4 $version = $engineinfo['version'];
5
6 // voicecall
7 $fcc = new featurecode('silentmonitor', 'in');
8 $fcc->setDescription('Silent Monitor');
9 $fcc->setDefault('*87');
10 $fcc->update();
11 unset($fcc);
12
13 if (version_compare($version, "1.4", "ge")) {
14
15   $fcc = new featurecode('silentmonitor', 'whisper');
16   $fcc->setDescription('Silent Monitor Whisper Mode');
17   $fcc->setDefault('*88');
18   $fcc->update();
19   unset($fcc);
20
21   $fcc = new featurecode('silentmonitor', 'whisperpv');
22   $fcc->setDescription('Silent Monitor Private Whisper Mode');
23   $fcc->setDefault('*89');
24   $fcc->update();
25   unset($fcc);
26 }
27 ?>
Note: See TracBrowser for help on using the browser.