Kick all user from confbridge when one user left

2019-06-09 12:44发布

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.

标签: asterisk ivr
2条回答
在下西门庆
2楼-- · 2019-06-09 13:09

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")
查看更多
Deceive 欺骗
3楼-- · 2019-06-09 13:28

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

查看更多
登录 后发表回答