Show
Ignore:
Timestamp:
10/22/06 11:13:09 (7 years ago)
Author:
diego_iastrubni
Message:

updated modules to reflect the new change in policy. i did not bump up the versions, since the modules should still work, i will let the developers of each module nump up versions on their free time, in order to reduce the updates sent to the users.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.2/callforward/uninstall.php

    r1665 r2816  
    11<?php 
    22 
    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...? 
     6global $astman; 
    47 
    58// 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  
     9if ($astman) { 
    910  $astman->database_deltree('CF'); 
    1011  $astman->database_deltree('CFB'); 
    1112  $astman->database_deltree('CFU'); 
    12  
    1313} else { 
    14  
    1514  fatal("Cannot connect to Asterisk Manager with ".$amp_conf["AMPMGRUSER"]."/".$amp_conf["AMPMGRPASS"]); 
    16  
    1715} 
    18 $astman->disconnect(); 
    1916 
    2017?>