#! /usr/bin/php -q
<?
require_once "phpagi";
require_once "phpagi-asmanager.php";
$AGI = new AGI( );
$astman = new AGI_AsteriskManager( );
$ampmgruser=get_var("$AGI","$AMPMGRUSER");
$ampmgrpass=get_var("$AGI","$AMPMGRPASS");
$astman->connect("localhost",$AMPMGRUSER,$AMPMGRPASS);
function get_var($agi,$value)
{
$r= $agi->get_variable($value);
}
?>