Kick all user from confbridge when one user left

北战南征 提交于 2019-12-23 05:19:06

问题


I have a problem,if a single user left the confbridge or disconnect his call... I want to hangup calls of all other users who are in that particular conference room...Any idea regarding this???

Basically I want to disconnect all channels if any of the channel hangup the call.Any guidance? Many thanks.


回答1:


There are no simple way do that. Reason is simple. Anyway at some moment in conference will be single user(at start)

You can use marked user(and close on marked user exist) or you can use AMI to monitor conference events and kick last user by external request.

http://www.voip-info.org/wiki/view/asterisk+manager+events




回答2:


Late reply but this might be useful for someone. I am using this in my dialplan. 1000 is the conference bridge name.

exten => h,1,NoOp()
same => n,ExecIf($[0${CONFBRIDGE_INFO(parties, 1000)} <=1]?    System(/usr/sbin/asterisk -rx "confbridge kick 1000 all")


来源:https://stackoverflow.com/questions/25723322/kick-all-user-from-confbridge-when-one-user-left

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!