Changeset 8104

Show
Ignore:
Timestamp:
08/23/09 16:41:10 (1 year ago)
Author:
p_lindheimer
Message:

fixes #3559 adds ASTMANAGERHOST

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.6/amp_conf/htdocs/admin/functions.inc.php

    r8099 r8104  
    705705        'AMPENGINE'      => array('std' , 'asterisk'), 
    706706        'ASTMANAGERPORT' => array('std' , '5038'), 
     707        'ASTMANAGERHOST' => array('std' , 'localhost'), 
    707708        'AMPDBHOST'      => array('std' , 'localhost'), 
    708709        'AMPDBUSER'      => array('std' , 'asteriskuser'), 
  • freepbx/branches/2.6/amp_conf/htdocs/admin/header.php

    r7348 r8104  
    120120 
    121121        // 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"])) { 
    123123                // 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')) { 
    125125                        // couldn't connect at all 
    126126                        unset( $astman );