Changeset 3570
- Timestamp:
- 01/17/07 03:15:50 (6 years ago)
- Files:
-
- freepbx/trunk/amp_conf/bin/module_admin (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/trunk/amp_conf/bin/module_admin
r2820 r3570 53 53 54 54 function init_amportal_environment($ampconfpath) { 55 global $amp_conf, $asterisk_conf, $db ;55 global $amp_conf, $asterisk_conf, $db, $astman; 56 56 57 57 if (!file_exists($ampconfpath)) { … … 69 69 // include the functions file from WEBROOT 70 70 include(AMP_BASE_INCLUDE_PATH.'/functions.inc.php'); 71 // include astman api 72 include(AMP_BASE_INCLUDE_PATH.'/common/php-asmanager.php'); 71 73 72 74 // now apply the real parse function (this makes some default assumptions and does a bit more error checking) … … 81 83 require_once(AMP_BASE_INCLUDE_PATH.'/common/db_connect.php'); //PEAR must be installed 82 84 85 $astman= new AGI_AsteriskManager(); 86 if (! $res = $astman->connect("127.0.0.1", $amp_conf["AMPMGRUSER"] , $amp_conf["AMPMGRPASS"])) { 87 unset( $astman ); 88 } 83 89 } 84 90
