Show
Ignore:
Timestamp:
02/26/07 16:24:44 (6 years ago)
Author:
naftali5
Message:

create instance of astman to allow reload to work on welcome page #1722

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.2/amp_conf/htdocs/admin/index.php

    r3755 r3830  
    1212//GNU General Public License for more details. 
    1313 
     14require_once('common/php-asmanager.php'); 
    1415require_once('functions.inc.php'); 
    1516 
     
    2021$amp_conf      = parse_amportal_conf("/etc/amportal.conf"); 
    2122$asterisk_conf = parse_asterisk_conf("/etc/asterisk/asterisk.conf"); 
     23$astman   = new AGI_AsteriskManager(); 
     24if (! $res = $astman->connect("127.0.0.1", $amp_conf["AMPMGRUSER"] , $amp_conf["AMPMGRPASS"])) { 
     25  unset( $astman ); 
     26} 
    2227 
    2328// connect to database