Если ваш Web-MeetMe не вызывает одновременно несколько абонентов :
1. В файле phpagi/phpagi-asmanager.php правим функцию Originate добавив параметр Async
Например
Код: Выделить всё
function Originate($channel, $exten, $context, $priority, $timeout, $callerid, $variable, $account, $application, $data, $async)
{
$parameters = array();
if($channel) $parameters['Channel'] = $channel;
if($exten) $parameters['Exten'] = $exten;
if($context) $parameters['Context'] = $context;
if($priority) $parameters['Priority'] = $priority;
if($timeout) $parameters['Timeout'] = $timeout;
if($callerid) $parameters['CallerID'] = $callerid;
if($variable) $parameters['Variable'] = $variable;
if($account) $parameters['Account'] = $account;
if($application) $parameters['Application'] = $application;
if($data) $parameters['Data'] = $data;
if($async) $parameters['Async'] = $async;
return $this->send_request('Originate', $parameters);
}
Как пример
Код: Выделить всё
$application = "MeetMe";
$data = $data;
$async = true;
$priority = 1;
$context = OUT_CONTEXT;
$timeout = 60000;
$callerid = OUT_CALL_CID;
//$variable = "CDR(bookId)=$bookid,CDR(CIDnum)=$invite_num,CDR(CIDname)=$name";
$variable = "CDR(userfield)=$bookid,VOLRX=$rx,VOLTX=$tx,VOLUME(RX)=$rx,VOLUME(TX)=$tx"; //,DYNAMIC_FEATURES=volumerxdec#volumetxinc";
#echo $callerid;
#echo $channel;
//echo $variable;
$res = $as->Originate ($channel, $exten, $context, $priority, $timeout, $callerid, $variable, $account, $application, $data, $async);
$actiondone=0;
// && DISCONNECTING
$as->disconnect();