问题
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