root/modules/branches/2.10/callwaiting/uninstall.php

Revision 10606, 1.1 kB (checked in by p_lindheimer, 3 years ago)

closes #4651 update module uninstalls to ignore feature codes now being deleted by module_uninstall

  • Property svn:mime-type set to text/html
  • Property svn:eol-style set to native
Line 
1 <?php
2 //This file is part of FreePBX.
3 //
4 //    FreePBX is free software: you can redistribute it and/or modify
5 //    it under the terms of the GNU General Public License as published by
6 //    the Free Software Foundation, either version 2 of the License, or
7 //    (at your option) any later version.
8 //
9 //    FreePBX is distributed in the hope that it will be useful,
10 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
11 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 //    GNU General Public License for more details.
13 //
14 //    You should have received a copy of the GNU General Public License
15 //    along with FreePBX.  If not, see <http://www.gnu.org/licenses/>.
16 //
17 // Copyright (C) 2005 mheydon1973
18 //
19 // TODO, is this needed...?
20 // is this global...? what if we include this files
21 // from a function...?
22 global $astman;
23
24 // Don't bother uninstalling feature codes, now module_uninstall does it
25
26 // remove all Call Waiting options in effect on extensions
27 if ($astman) {
28   $astman->database_deltree('CW');
29 } else {
30   fatal("Cannot connect to Asterisk Manager with ".$amp_conf["AMPMGRUSER"]."/".$amp_conf["AMPMGRPASS"]);
31 }
32 ?>
Note: See TracBrowser for help on using the browser.