PHP批量發起呼叫--呼叫中心性能測試

call.php

<?php
include("phpagi-asmanager.php");
$i=isset($argv[1]) && intval($argv[1])?$argv[1]:'1';
$mix=new AGI_AsteriskManager;
$mix->connect('localhost', 'admin', 'amp111');
for($j=1; $j<=$i; $j++){
	$mix->send_request('originate', array('channel'=>'Local/90@from-internal', 'context'=>'from-internal', 'exten'=>'91', 'priority'=>'1'));
}

運行php call.php 100時系統就會發起100路呼叫,先呼叫90隊列,電話進入90隊列後立即再進入91隊列。


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章