bigbluebutton / docker

Docker files for BigBlueButton
GNU Lesser General Public License v3.0
359 stars 240 forks source link

Connection error Audio (ICE error 1004) with Docker BBB #228

Open olivier-vailleau opened 1 year ago

olivier-vailleau commented 1 year ago

Hello, I'm trying to use bbb with Docker. I did 3 differents installations that doesn't work, on differents datacenter. I suspected Firewall issue, but finally, with "all opened", it is still not working.

I'm using bbb via docker ( as https://github.com/bigbluebutton/docker ) I encountered the webrtc sfu error as described here : https://github.com/bigbluebutton/docker/issues/226 So I changed mediasoup version to 3.10.3

When opening a room, when choice the audio method, it cannot connect with (raison=ICE error) (erreur 1004)

On server side I got this log on webrtc_sfu:

EXECUTE [depth=0] sofia/external/w_1oq2qkv5wafd_6-bbbID-Administrator@webinaire.maskeddomain.fr transfer(echo82612 XML default)
2022-08-24 15:40:43.198322 97.43% [NOTICE] switch_ivr.c:2296 Transfer sofia/external/w_1oq2qkv5wafd_6-bbbID-Administrator@webinaire.maskeddomain.fr to XML[echo82612@default]
2022-08-24 15:40:43.198322 97.43% [INFO] mod_dialplan_xml.c:639 Processing w_1oq2qkv5wafd_6-bbbID-Administrator <w_1oq2qkv5wafd_6-bbbID-Administrator>->echo82612 in context default
EXECUTE [depth=0] sofia/external/w_1oq2qkv5wafd_6-bbbID-Administrator@webinaire.maskeddomain.fr set(vbridge=82612)
EXECUTE [depth=0] sofia/external/w_1oq2qkv5wafd_6-bbbID-Administrator@webinaire.maskeddomain.fr answer()
2022-08-24 15:40:43.198322 97.43% [ERR] switch_core_media.c:9785 AUDIO RTP REPORTS ERROR: [Bind Error! (10.20.30.40masked.ip) :20306]
2022-08-24 15:40:43.198322 97.43% [NOTICE] switch_core_media.c:9786 Hangup sofia/external/w_1oq2qkv5wafd_6-bbbID-Administrator@webinaire.maskeddomain.fr [CS_EXECUTE] [INCOMPATIBLE_DESTINATION]
2022-08-24 15:40:43.198322 97.43% [NOTICE] switch_core_session.c:1771 Session 6 (sofia/external/w_1oq2qkv5wafd_6-bbbID-Administrator@webinaire.maskeddomain.fr) Ended

BTW, when using docker-compose I got : WARNING: Some services (jodconverter) use the 'deploy' key, which will be ignored. Compose does not support 'deploy' configuration - usedocker stack deployto deploy to a swarm. Maybe, i'ts not a relevant ?..

Using up to date server Debian (tried with ubuntu), client is firefox or chrome.

If some one have an idea.. thanks by advance.

olivier-vailleau commented 1 year ago

hello, Is somebody have a solution for this issue ?

mricim commented 1 year ago

Same problem, same error... With the camera I get the error 2200

leonidas-o commented 1 year ago

Same issue with the microphone and webcam share here. This issue is open since August 2022 and has no reply yet, is someone actually even taking care of all the open issues here?

mathben commented 1 year ago

Me too same Issue with the microphone and webcam. I found this error in the log : [ERR] switch_core_media.c:9795 AUDIO RTP REPORTS ERROR: [Bind Error! PUBLIC_IP:19146] I disable Firewall and I redirect port in router. How can we diagnostic this?

leonidas-o commented 1 year ago

Couldn't make BigBlueButton work behind a NAT, with opnsense/pfsense 1:1 NAT + Reflection etc., so I gave up on that approach. I still found a solution assigning the second public IP to the BBB VM, which I documented here: https://serverfault.com/questions/1121061/assigned-second-public-ip-to-vm-from-outside-not-reachable/1121266#1121266

ffdixon commented 1 year ago

Thanks for sharing this @leonidas-o.

pkolmann commented 1 year ago

I have the same issue and see in the network trace of my browser in the websocket to the PBX (/ws?sessionToken=XXX) the following error:

SIP/2.0 488 Not Acceptable Here
Via: SIP/2.0/WSS 07b4q2ksh7h9.invalid;branch=z9hG4bK664515;received=10.x.x.x;rport=44150
Max-Forwards: 69
From: "w_fhgpjaetd8p7_1-bbbID-phk" <sip:w_fhgpjaetd8p7_1-bbbID-phk@xxx>;tag=m1jsupb9nv
To: <sip:37478@xxx>;tag=Umy2mDy1FHHmB
Call-ID: 946j23md1rr9u1spsg08
CSeq: 1 INVITE
User-Agent: FreeSWITCH-mod_sofia/1.10.9-release+git~20230203T200730Z~a615e85afc~64bit
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, refer
Reason: Q.850;cause=88;text="INCOMPATIBLE_DESTINATION"
Content-Length: 0
Remote-Party-ID: "37478" <sip:37478@xxx>;party=calling;privacy=off;screen=no

Digging into the freeswitch log with

docker compose logs freeswitch -f

I got the following error:

bbb-freeswitch  | [ERR] switch_core_media.c:9638 AUDIO RTP REPORTS ERROR: [Bind Error! x.x.x.x:22112]

update: I have now added the reserved ports as suggested in https://github.com/signalwire/freeswitch/issues/1987 but it didn't help :-(

Anyone else having this issue?

pkolmann commented 1 year ago

I just fixed this issue for me.

I saw in the freeswitch log, that freeswitch wants to bind to the external NATed IP address, but this IP was not available.

So I followed https://github.com/bigbluebutton/docker/blob/develop/docs/behind-nat.md and added the external NATed IP to my server as second IP and now freeswitch can bind and is happy and I have audio!

Hope this helps others as well...