Changeset 8104
- Timestamp:
- 08/23/09 16:41:10 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/branches/2.6/amp_conf/htdocs/admin/functions.inc.php
r8099 r8104 705 705 'AMPENGINE' => array('std' , 'asterisk'), 706 706 'ASTMANAGERPORT' => array('std' , '5038'), 707 'ASTMANAGERHOST' => array('std' , 'localhost'), 707 708 'AMPDBHOST' => array('std' , 'localhost'), 708 709 'AMPDBUSER' => array('std' , 'asteriskuser'), freepbx/branches/2.6/amp_conf/htdocs/admin/header.php
r7348 r8104 120 120 121 121 // attempt to connect to asterisk manager proxy 122 if (!isset($amp_conf["ASTMANAGERPROXYPORT"]) || !$res = $astman->connect("127.0.0.1:".$amp_conf["ASTMANAGERPROXYPORT"], $amp_conf["AMPMGRUSER"] , $amp_conf["AMPMGRPASS"], 'off')) {122 if (!isset($amp_conf["ASTMANAGERPROXYPORT"]) || !$res = $astman->connect($amp_conf["ASTMANAGERHOST"] . ":" . $amp_conf["ASTMANAGERPROXYPORT"], $amp_conf["AMPMGRUSER"] , $amp_conf["AMPMGRPASS"])) { 123 123 // attempt to connect directly to asterisk, if no proxy or if proxy failed 124 if (!$res = $astman->connect( "127.0.0.1:".$amp_conf["ASTMANAGERPORT"], $amp_conf["AMPMGRUSER"] , $amp_conf["AMPMGRPASS"], 'off')) {124 if (!$res = $astman->connect($amp_conf["ASTMANAGERHOST"] . ":" . $amp_conf["ASTMANAGERPORT"], $amp_conf["AMPMGRUSER"] , $amp_conf["AMPMGRPASS"], 'off')) { 125 125 // couldn't connect at all 126 126 unset( $astman );
