将所有频道从confbridge中踢出来

时间:2012-08-07 07:49:57

标签: asterisk

在confbrdige中是否有任何命令我可以从会议中踢出所有频道?我可以看到我一次只能踢一个频道的命令,但如果我想一次性从会议室踢出所有频道怎么办?

3 个答案:

答案 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");