Changeset 8108
- Timestamp:
- 08/23/09 20:30:48 (4 years ago)
- Files:
-
- modules/branches/2.6/backup/bin/dumpastdb.php (modified) (1 diff)
- modules/branches/2.6/backup/bin/restoreastdb.php (modified) (1 diff)
- modules/branches/2.6/backup/module.xml (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.6/backup/bin/dumpastdb.php
r7470 r8108 30 30 } 31 31 32 $amp_conf = getconf("/etc/amportal.conf"); 32 $amportalconf = (isset($_ENV["FREEPBXCONFIG"]) && strlen($_ENV["FREEPBXCONFIG"])) ? $_ENV["FREEPBXCONFIG"] : "/etc/amportal.conf"; 33 $amp_conf = getconf($amportalconf); 34 35 if (isset($amp_conf["ASTMANAGERHOST"])) { 36 $amp_conf["ASTMANAGERHOST"] = '127.0.0.1'; 37 } 38 if (isset($amp_conf["ASTMANAGERPORT"])) { 39 $amp_conf["ASTMANAGERPORT"] = '5038'; 40 } 33 41 34 42 require_once($amp_conf['AMPWEBROOT']."/admin/common/php-asmanager.php"); 35 43 $astman = new AGI_AsteriskManager(); 36 if (! $res = $astman->connect( "127.0.0.1", $amp_conf["AMPMGRUSER"] , $amp_conf["AMPMGRPASS"])) {44 if (! $res = $astman->connect($amp_conf["ASTMANAGERHOST"] . ":".$amp_conf["ASTMANAGERPORT"], $amp_conf["AMPMGRUSER"] , $amp_conf["AMPMGRPASS"])) { 37 45 unset( $astman ); 38 46 } modules/branches/2.6/backup/bin/restoreastdb.php
r7470 r8108 43 43 } 44 44 45 $amp_conf = getconf("/etc/amportal.conf"); 45 # Get configuration 46 $amportalconf = (isset($_ENV["FREEPBXCONFIG"]) && strlen($_ENV["FREEPBXCONFIG"])) ? $_ENV["FREEPBXCONFIG"] : "/etc/amportal.conf"; 47 $amp_conf = getconf($amportalconf); 48 49 if (isset($amp_conf["ASTMANAGERHOST"])) { 50 $amp_conf["ASTMANAGERHOST"] = '127.0.0.1'; 51 } 52 if (isset($amp_conf["ASTMANAGERPORT"])) { 53 $amp_conf["ASTMANAGERPORT"] = '5038'; 54 } 46 55 47 56 require_once($amp_conf['AMPWEBROOT']."/admin/common/php-asmanager.php"); 48 57 49 58 $astman = new AGI_AsteriskManager(); 50 if (! $res = $astman->connect( "127.0.0.1", $amp_conf["AMPMGRUSER"] , $amp_conf["AMPMGRPASS"])) {59 if (! $res = $astman->connect($amp_conf["ASTMANAGERHOST"] . ":".$amp_conf["ASTMANAGERPORT"], $amp_conf["AMPMGRUSER"] , $amp_conf["AMPMGRPASS"])) { 51 60 unset( $astman ); 52 61 } modules/branches/2.6/backup/module.xml
r8063 r8108 2 2 <rawname>backup</rawname> 3 3 <name>Backup & Restore</name> 4 <version>2.6.0. 1</version>4 <version>2.6.0.2</version> 5 5 <publisher>FreePBX</publisher> 6 6 <license>GPLv2+</license> … … 15 15 </depends> 16 16 <changelog> 17 *2.6.0.2* #3577 17 18 *2.6.0.1* added publisher/lic 18 19 *2.6.0.0* #3224, #3640
