Can not invite participant – no bridge available” since last update

WebRTC中文社区是一个为大家解决在使用WebRTC当中遇到问题所建立的社区,欢迎更多学习和使用WebRTC的人加入进来,一起建设。

当第二个人加入房间时候崩溃
第一个人进入房间后正常,第二个人进入房间后崩溃
查看jicofo日志发现

Jicofo 2020-08-06 10:57:30.711 WARNING: [83] org.jitsi.jicofo.bridge.BridgeSelectionStrategy.log() Failed to select initial bridge for participantRegion=null
Jicofo 2020-08-06 10:57:30.711 SEVERE: [83] org.jitsi.jicofo.JitsiMeetConferenceImpl.log() Can not invite participant -- no bridge available.
Jicofo 2020-08-06 10:57:30.712 WARNING: [83] org.jitsi.jicofo.bridge.BridgeSelectionStrategy.log() Failed to select initial bridge for participantRegion=null
Jicofo 2020-08-06 10:57:30.712 SEVERE: [83] org.jitsi.jicofo.JitsiMeetConferenceImpl.log() Can not invite participant -- no bridge available.

浏览器控制报错

2020-08-07T02:49:49.687Z [conference.js] :  CONFERENCE FAILED: conference.videobridgeNotAvailable

从日志上看来其根本原因是jicofo没有发现jvb

解决办法很多,大家可以自行试一下那个对自己有用

  1. 去掉jicofo的健康检查
org.jitsi.jicofo.HEALTH_CHECK_INTERVAL = -1

1.1重启jicofo

  1. DNS解析问题
    清除DNS缓存
systemd-resolve --flush-caches
hostnamectl set-hostname jitsi.example.org
cat /etc/hosts

3.jvb密码不一致导致,要保证这三个密码一致

grep JVB_SECRET /etc/jitsi/videobridge/config 
grep ‘user.shard.PASSWORD’ /etc/jitsi/videobridge/sip-communicator.properties  
grep password /var/lib/prosody/auth%2evideoconf%2dtest%2emydomain%2eorg/accounts/jvb.dat

如果不一致可以参考我这篇文章进行修改jvb的密码
https://webrtcsample.ink/t/how-to-use-ec-only/76

  1. 确保XMPP里jvb属于管理员用户
Component “internal.auth.videoconf-test.meet.org” “muc”
storage = “memory”
modules_enabled = { “ping”; }
admins = { “[email protected]”, “[email protected]” }

5.有可能你没有jvb这个用户,你可以手动创建

prosodyctl register jvb auth.meet.test.com i2AhIKMh

所有更改都需要重启相关服务
在这里插入图片描述

你可能感兴趣的:(prosody,jitsi,WebRTC)