<?php
set_time_limit(30);
require('/var/www/html/project1/phpagi-2.20/phpagi.php');
error_reporting(E_ALL);
$agi = new AGI();
$agi->answer();
//http://php.net/manual/en/function.date.php
$time=date('a');
$agi->stream_file("welcome");
$cid = $agi->parse_callerid();
$agi->verbose($cid[username]);
$agi->verbose($time);
$agi->set_variable("CONFBRIDGE(user,pin)",1212);
$agi->set_variable("CONFBRIDGE(bridge,max_members)",2);
//ConfBridge(conference[,bridge_profile[,user_profile[,menu]]])
$agi->exec("ConfBridge","111");
//$agi->exec_goto('from-internal',$value,1);
?>
[outboundtest]
exten=>100,1,answer()
;same=>n,Set(CONFBRIDGE(user,pin)=1111)
;same=>n,Set(CONFBRIDGE(bridge,max_members)=2)
exten=>100,n,agi(/var/www/html/conference/conf.php)
same=>n,hangup()
No hay comentarios:
Publicar un comentario