Changeset 9203

Show
Ignore:
Timestamp:
03/11/10 22:12:44 (2 years ago)
Author:
p_lindheimer
Message:

fixes #4116 remove features codes on uninstall

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.7/callforward/module.xml

    r9098 r9203  
    22  <rawname>callforward</rawname> 
    33  <name>Call Forward</name> 
    4   <version>2.7.0.3</version> 
     4  <version>2.7.0.4</version> 
    55  <publisher>FreePBX</publisher> 
    66  <license>GPLv2+</license> 
    77  <changelog> 
     8    *2.7.0.4* #41116 
    89    *2.7.0.3* #4105 again 
    910    *2.7.0.2* #4103, #4104, #4105 
  • modules/branches/2.7/callforward/uninstall.php

    r7470 r9203  
    2020// is this global...? what if we include this files 
    2121// from a function...? 
     22 
    2223global $astman; 
     24 
     25// Unconditional Call Forwarding 
     26$fcc = new featurecode('callforward', 'cfon'); 
     27$fcc->delete(); 
     28unset($fcc); 
     29 
     30$fcc = new featurecode('callforward', 'cfoff'); 
     31$fcc->delete(); 
     32unset($fcc); 
     33 
     34$fcc = new featurecode('callforward', 'cfoff_any'); 
     35$fcc->delete(); 
     36unset($fcc); 
     37 
     38// Call Forward on Busy 
     39$fcc = new featurecode('callforward', 'cfbon'); 
     40$fcc->delete(); 
     41unset($fcc); 
     42 
     43$fcc = new featurecode('callforward', 'cfboff'); 
     44$fcc->delete(); 
     45unset($fcc); 
     46 
     47$fcc = new featurecode('callforward', 'cfboff_any'); 
     48$fcc->delete(); 
     49unset($fcc); 
     50 
     51// Call Forward on No Answer/Unavailable (i.e. phone not registered) 
     52$fcc = new featurecode('callforward', 'cfuon'); 
     53$fcc->delete(); 
     54unset($fcc); 
     55 
     56$fcc = new featurecode('callforward', 'cfuoff'); 
     57$fcc->delete(); 
     58unset($fcc); 
     59 
     60$fcc = new featurecode('callforward', 'cf_toggle'); 
     61$fcc->delete(); 
     62unset($fcc); 
    2363 
    2464// remove all Call Forward options in effect on extensions 
     
    3070  fatal("Cannot connect to Asterisk Manager with ".$amp_conf["AMPMGRUSER"]."/".$amp_conf["AMPMGRPASS"]); 
    3171} 
    32  
    3372?>