在confbrdige中是否有任何命令我可以从会议中踢出所有频道?我可以看到我一次只能踢一个频道的命令,但如果我想一次性从会议室踢出所有频道怎么办?
答案 0 :(得分:1)
您可以使用此命令踢开所有用户:
MeetMe kick [confno] all
答案 1 :(得分:1)
我提交了
的补丁confbridge kick <conference> all
目前可在Asterisk V11主干中使用
答案 2 :(得分:-1)
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: ConfbridgeKick\r\n");
fputs($socket, "Conference: $conf\r\n");
fputs($socket, "Channel: $channel\r\n\r\n");