Android studio 拨入android后的Jitsi呼叫断开

Android studio 拨入android后的Jitsi呼叫断开,android-studio,voip,openfire,jitsi,lib-jitsi-meet,Android Studio,Voip,Openfire,Jitsi,Lib Jitsi Meet,我正在使用openfire,我想在我的应用程序中添加语音和视频通话功能。 首先,我安装了两个插件meet.jar和offocus.jar 然后我在openfire中安装了lets加密通配符证书。 例: 通过管理仪表板面板在openfire中安装生成的证书 创建了一个子域openfire.example.com以指向VPS IP地址。 但是,我的FQDN是example.com 在android中添加了启动会议的代码 try { JitsiMeetConferenceOptions.Builder

我正在使用openfire,我想在我的应用程序中添加语音和视频通话功能。 首先,我安装了两个插件meet.jar和offocus.jar

然后我在openfire中安装了lets加密通配符证书。 例:

通过管理仪表板面板在openfire中安装生成的证书

创建了一个子域openfire.example.com以指向VPS IP地址。 但是,我的FQDN是example.com

在android中添加了启动会议的代码

try {
JitsiMeetConferenceOptions.Builder options = new JitsiMeetConferenceOptions.Builder()
.setServerURL(new URL(“https://openfire.example.com”))
.setRoom(“testroom”)
.setWelcomePageEnabled(false);

        JitsiMeetActivity.launch(OutGoingMeetingInvitation.this, options.build());
        finish();
    } catch (Exception ex) {
        ex.printStackTrace();
    }
我在android手机中遇到错误,几秒钟后断开并重新连接。 在android studio中,我遇到了一个错误

E/JitsiMeetSDK: [features/base/lib-jitsi-meet] Failed to load config from https://call.example.com/config.js?room=call_1606192562839 Error(AbortError){“message”:“Aborted”,“stack”:“Error: Aborted\n at anonymous (index.android.bundle:135:6514)\n at anonymous (index.android.bundle:135:7422)\n at call (native)\n at dispatchEvent (index.android.bundle:126:5676)\n at value (index.android.bundle:121:5993)\n at value (index.android.bundle:121:5621)\n at l (index.android.bundle:135:6840)\n at call (native)\n at dispatchEvent (index.android.bundle:144:5676)\n at value (index.android.bundle:143:1114)\n at anonymous (index.android.bundle:876:490)\n at anonymous (index.android.bundle:399:500)\n at apply (native)\n at value (index.android.bundle:50:1280)\n at apply (native)\n at value (index.android.bundle:37:3685)\n at anonymous (index.android.bundle:37:841)\n at value (index.android.bundle:37:2939)\n at value (index.android.bundle:37:813)”}
I/JitsiMeetSDK: [features/overlay] The conference will be reloaded after 11 seconds.

请帮助我解决此问题。

此问题可能是由于外部端口造成的。在服务器中启用UDP端口为我解决了这个问题,在您的服务器中,请确保以下端口已启用

  • 80/tcp for Web UI HTTP(实际上只是为了重定向,在取消注释ENABLE_HTTP_redirect=1 in.env之后)
  • 443/tcp用于Web UI HTTPS
  • 4443/tcp用于tcp上的RTP介质
  • 10000/udp用于udp上的RTP介质

使用Ubuntu

  • 80 TCP-用于SSL证书验证/使用Let's Encrypt更新
  • 443 TCP-用于一般访问Jitsi会议
  • 10000 UDP-用于一般网络视频/音频通信
  • 22 TCP-如果您使用SSH访问服务器(如果端口不是22,则相应地更改端口)
  • 3478 UDP-用于查询stun服务器(coturn,可选,需要config.js更改才能启用)
  • 5349 TCP-用于通过TCP的回退网络视频/音频通信(例如,当UDP被阻止时),由coturn提供服务
更多信息

E/JitsiMeetSDK: [features/base/lib-jitsi-meet] Failed to load config from https://call.example.com/config.js?room=call_1606192562839 Error(AbortError){“message”:“Aborted”,“stack”:“Error: Aborted\n at anonymous (index.android.bundle:135:6514)\n at anonymous (index.android.bundle:135:7422)\n at call (native)\n at dispatchEvent (index.android.bundle:126:5676)\n at value (index.android.bundle:121:5993)\n at value (index.android.bundle:121:5621)\n at l (index.android.bundle:135:6840)\n at call (native)\n at dispatchEvent (index.android.bundle:144:5676)\n at value (index.android.bundle:143:1114)\n at anonymous (index.android.bundle:876:490)\n at anonymous (index.android.bundle:399:500)\n at apply (native)\n at value (index.android.bundle:50:1280)\n at apply (native)\n at value (index.android.bundle:37:3685)\n at anonymous (index.android.bundle:37:841)\n at value (index.android.bundle:37:2939)\n at value (index.android.bundle:37:813)”}
I/JitsiMeetSDK: [features/overlay] The conference will be reloaded after 11 seconds.