Changeset 2816 for modules/branches/2.2/callforward
- Timestamp:
- 10/22/06 11:13:09 (7 years ago)
- Files:
-
- modules/branches/2.2/callforward/uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.2/callforward/uninstall.php
r1665 r2816 1 1 <?php 2 2 3 require_once('common/php-asmanager.php'); 3 // TODO, is this needed...? 4 // is this global...? what if we include this files 5 // from a function...? 6 global $astman; 4 7 5 8 // remove all Call Forward options in effect on extensions 6 $astman = new AGI_AsteriskManager(); 7 if ($res = $astman->connect("127.0.0.1", $amp_conf["AMPMGRUSER"] , $amp_conf["AMPMGRPASS"])) { 8 9 if ($astman) { 9 10 $astman->database_deltree('CF'); 10 11 $astman->database_deltree('CFB'); 11 12 $astman->database_deltree('CFU'); 12 13 13 } else { 14 15 14 fatal("Cannot connect to Asterisk Manager with ".$amp_conf["AMPMGRUSER"]."/".$amp_conf["AMPMGRPASS"]); 16 17 15 } 18 $astman->disconnect();19 16 20 17 ?>
