Hi again,
After upgrading from 2.5 to 2.7 (yes, I’m having quite a few issues), my dialparties.agi fails to connect calls because it doesn’t seem to get the ampmgruser and password variables. My amportal.conf contains these variables.
If I add a debug instruction in dialparties.agi such as:
$ampmgruser = get_var( $AGI, "AMPMGRUSER" );
$ampmgrpass = get_var( $AGI, "AMPMGRPASS" );
$cwinusebusy = get_var( $AGI, "CWINUSEBUSY" );
$ast_version = get_var( $AGI, "ASTVERSION" );
$chan_dahdi = get_var( $AGI, "ASTCHANDAHDI" );
debug("DEBUG in Dialparties.agi: ampmgruser is ".$ampmgruser, 1);
then I get this in the asterisk log:
Apr 13 08:10:05 VERBOSE[19266] logger.c: dialparties.agi: Starting New Dialparties.agi
Apr 13 08:10:05 VERBOSE[19266] logger.c: dialparties.agi: DEBUG in Dialparties.agi: ampmgruser is
Similar log messages show up when trying to connect locally from other scripts:
Apr 13 08:10:05 DEBUG[19270] manager.c: Manager received command 'login'
Apr 13 08:10:05 VERBOSE[19270] logger.c: == Parsing '/etc/asterisk/manager.conf': Apr 13 08:10:05 VERBOSE[19270] logger.c: == Parsing '/etc/asterisk/manager
.conf': Found
Apr 13 08:10:05 VERBOSE[19270] logger.c: == Parsing '/etc/asterisk/manager_additional.conf': Apr 13 08:10:05 VERBOSE[19270] logger.c: == Parsing '/etc/aster
isk/manager_additional.conf': Found
Apr 13 08:10:05 VERBOSE[19270] logger.c: == Parsing '/etc/asterisk/manager_custom.conf': Apr 13 08:10:05 VERBOSE[19270] logger.c: == Parsing '/etc/asterisk/
manager_custom.conf': Found
Apr 13 08:10:05 NOTICE[19270] manager.c: 127.0.0.1 tried to authenticate with nonexistent user ''
The manager user is correctly defined in /etc/asterisk/manager.conf.
There may be something wrong with phpagi in the latest freepbx 2.7. See also http://www.freepbx.org/forum/freepbx/installation/phpagi-php-1658-undefined-index-phpagi