FreePBX upgrade to 2.7: Dialparties.agi fails to get ampmgruser, ampmgrpass variables

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

I also get another error in the log:

Apr 12 13:01:01 VERBOSE[30989] logger.c:     -- Executing Dial("SIP/7114-b4fe1ef0", "/6035|300|") in new stack
Apr 12 13:01:01 WARNING[30989] channel.c: No channel type registered for ''
Apr 12 13:01:01 NOTICE[30989] app_dial.c: Unable to create channel of type '' (cause 66 - Channel not implemented)
Apr 12 13:01:01 VERBOSE[30989] logger.c:   == Everyone is busy/congested at this time (1:0/0/1)

I guess that my dialparties.agi is messed up somehow but I don’t know where.