是否有任何命令可以让我从会议中踢出所有频道?我可以看到一次只能踢一个频道的命令,但是如果我想一次性踢出会议室中的所有频道怎么办?
我提交了补丁
confbridge kick <conference> all
它目前在Asterisk V11中继中可用
您可以使用以下命令踢所有用户:
MeetMe 踢 [confno] all
CONTROLLER:
function kickallconference(){
$conf= $this->uri->segment(3);
$data = $this->confmodel->kickall_conf($conf);
$i = 0;
while($i < count($data)){
$result['conf']= $conf;
$result['channel']= $data[$i]['channel'];
$this->load->view('hangup',$result);
$i++;
}
}
MODEL:
function kickall_conf($cno){
$sql = "SELECT channel from confnumber where confno='$cno' and status='ACTIVE'";
$query = $this->db->query($sql);
return $query->result_array();
}
VIEW:
fputs($socket, "Action: ConfbridgeKickrn");
fputs($socket, "Conference: $confrn");
fputs($socket, "Channel: $channelrnrn");