Changeset 10967
- Timestamp:
- 01/15/11 23:36:37 (2 years ago)
- Files:
-
- freepbx/trunk/amp_conf/htdocs/admin/bootstrap.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/trunk/amp_conf/htdocs/admin/bootstrap.php
r10953 r10967 68 68 $bootstrap_settings['amportal_conf_initialized'] = true; 69 69 70 //set error reporting level if set71 if (isset($amp_conf['php_error_reporting'])) {72 error_reporting($amp_conf['php_error_reporting']);73 }74 75 70 if (!$bootstrap_settings['skip_astman']) { 76 71 require_once(dirname(__FILE__) . '/libraries/php-asmanager.php'); 77 72 $astman = new AGI_AsteriskManager($bootstrap_settings['astman_config'], $bootstrap_settings['astman_options']); 78 73 // attempt to connect to asterisk manager proxy 79 if (! isset($amp_conf["ASTMANAGERPROXYPORT"])|| !$res = $astman->connect($amp_conf["ASTMANAGERHOST"] . ":" . $amp_conf["ASTMANAGERPROXYPORT"], $amp_conf["AMPMGRUSER"] , $amp_conf["AMPMGRPASS"], $bootstrap_settings['astman_events'])) {74 if (!$amp_conf["ASTMANAGERPROXYPORT"] || !$res = $astman->connect($amp_conf["ASTMANAGERHOST"] . ":" . $amp_conf["ASTMANAGERPROXYPORT"], $amp_conf["AMPMGRUSER"] , $amp_conf["AMPMGRPASS"], $bootstrap_settings['astman_events'])) { 80 75 // attempt to connect directly to asterisk, if no proxy or if proxy failed 81 76 if (!$res = $astman->connect($amp_conf["ASTMANAGERHOST"] . ":" . $amp_conf["ASTMANAGERPORT"], $amp_conf["AMPMGRUSER"] , $amp_conf["AMPMGRPASS"], $bootstrap_settings['astman_events'])) {
