如何在使用phpagi拨号期间设置闹钟?
如何在5分钟后设置闹钟?
function felan(){
file_put_contents("test.txt","jigsaw9017");
}
$manager = new AGI_AsteriskManager();
$manager->connect("localhost","admin","P@ssword");
$manager->add_event_handler('Link', 'felan');
$channel = "SIP/SIP_DAG/$stu_phone";
$exten= "s";
$context="sdare";
$priority=1;
$application=NULL;
$data=NULL;
$timeout= 3000;
$callerid= NULL;
$variable= "VAR1=$stu_phone";
$account=NULL;
$async=true;
$actionid=NULL;
$manager->Originate($channel,$exten,$context,$priority, $application, $data, $timeout, $callerid,$variable, $account, $async, $actionid);
此代码无效