freeswitch 会议创建命令

参考资料 https://freeswitch.org/confluence/display/FREESWITCH/mod_conference

转载  https://www.jianshu.com/p/00031e4c8ea6

 

查询已经存在的会议

```
conference <conf name> list [delim <string>]|[count]
conference <conf name> xml_list
```

邀请用户加入会议

  • API bgapi originate user/1003 &conference(test@default)
    呼叫分机1003,分机应答后加入会议test.会议名字字母数字都可以。FreeSWITCH会自动创建会议。

  • API conference <confname> bgdial <dial-string> [<callerid_number> [<callerid_name>]]。 例子:conference 8000@default bgdial user/1003 8000 conference,呼叫分机1003加入会议,分机1003的来电显示为conference<1003>。

成员加入会议标志

例子confname++flags{endconf|moderator}.

  • mute (静音)Enter conference muted
  • deaf (不听会议声音)Enter conference deafed (can not hear conference); will also mute the mic
  • mute-detect (成员静音时说话播放提示)Play the mute_detect_sound when talking detected by this conferee while *muted
  • dist-dtmf Send any DTMF from this member to all participants
  • moderator (主席)Flag member as a moderator
  • nomoh (只有一个成员时不播放背景音乐)Disable music on hold when this member is the only member in the conference
  • endconf Ends conference when all members with this flag leave the conference after profile param endconf-grace-time has expired
  • mintwo End conference when it drops below 2 participants after a member enters with this flag
  • ghost Do not count member in conference tally
  • join-only (只允许加入已经存在的会议)Only allow joining a conference that already exists
  • positional Process this member for positional audio on stereo outputs 1.4
  • no-positional Do not process this member for positional audio on stereo outputs 1.4
  • join-vid-floor Locks member as the video floor holder 1.6
  • no-minimize-encoding Bypass the video transcode minimizer and encode the video individually for this member 1.6
  • vmute Enter conference video muted 1.6
  • second-screen Open a 'view only' connection to the conference, without impacting the conference count or data. 1.6


剔出成员

kick 和 hup 区别,hup不播放提示音。
conference <confname> kick <member_id>|all|last|non_moderator conference <confname> hup <member_id>|all|last|non_moderator

会议密码

  1. 呼出的通话加入会议,默认不需要密码。如果要禁用这个特性,需要设置通道变量conference_enforce_security为true。
  2. 会议密码(pin),可以在配置文件中设置,也可以在APP参数中指定密码,也可以通过API来设置密码,APP参数中指定的密码具有最高优先级。
APP中设置密码
<action application="conference" data="confname@profilename+pin"> 
API设置密码

设置成员密码

conference <confname> pin <pin-number>

设置主席密码

conference <confname> pin mod <pin-number>

清除密码

conference <confname> nopin
配置文件设置密码
    <profiles>
        <profile name="default"> <param name="pin" value="12345"/> <param name="moderator-pin" value="54321"/> </profile> </profiles> 
  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值