docker icon indicating copy to clipboard operation
docker copied to clipboard

[ERR] switch_core_media.c:9685 AUDIO RTP REPORTS ERROR: [Bind Error! <My_External_IP>:17830]

Open ralfi opened this issue 3 years ago • 7 comments

Hi guys,

first of all thanks a lot for bbb-docker, i am using this yesterday the first time and after a little bit of adjusting .env all container going up successfull. Connecting to Web-Interface and anything else - also my webcam video cams on different devices from inside or outside my LAN - works in conjunction with my local apache reverse proxy configuration and my own little COTURN TURN server from hetzner.

Note: On the same machine resides a little Matrix Server and a Nextcloud instances, both as docker container setup. Both works with my hetzner COTURN for VOIP with video and audio.

Only one issue exist: Connecting audio do not work with error above from freeswitch container log. There is only one error in all container logs, nothing else... I am looking around the docs and see only a hint if a kurento error appears. What could be wrong here? But if i understand this the error occurs if freeswitch try to connect the Audio RTP Stream to my External IP? Could it be related with the apache reverse proxy config or a setup VAR in the .env file?

And - see above - video works with my TURN server, see it in the logs...

ralfi avatar May 19 '21 11:05 ralfi

... my apache reverse proxy conf:

<VirtualHost *:443>

        ServerName bbb.FQDN.ddnss.de

        ProxyPreserveHost On

        RewriteEngine On
        RewriteCond %{HTTP:UPGRADE} ^Websocket$ [NC,OR]
        RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
        RewriteRule .* ws://127.0.0.1:8080%{REQUEST_URI} [P,QSA,L]


        <Location />
            Require all granted
            ProxyPass http://127.0.0.1:8080/
            ProxyPassReverse http://127.0.0.1:8080/
        </Location>


SSLCertificateFile /etc/letsencrypt/live/bbb.FQDN.ddnss.de/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/bbb.FQDN.ddnss.de/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf

ralfi avatar May 19 '21 12:05 ralfi

Screenshot 2021-05-19 154928-1

ralfi avatar May 19 '21 13:05 ralfi

It seems to me that is a freeswitch prob... I dont know how it works but binding to external ip cloud be wrong. IMHO freeswitch have to bind to 127.0.0.1, or?

ralfi avatar May 19 '21 15:05 ralfi

Related to my config behind apache reverse proxy because clean new install on hetzner cloud virtual box works well.

ralfi avatar May 21 '21 07:05 ralfi

[Bind Error! <My_External_IP>:17830] This is because, your server is behind the NAT, your external IP address is not your network card ip address, freeswitch can not bind to a address that not exist.

the first method is: follow th docs/behind-nat.md add your External IP address to your Loopback or network card ip addr add External-IP-addrss/32 dev lo

The second Method is: you can change the file bbb-docker/mod/freeswitch/conf/sip_profiles/external.xml change param name="rtp-ip" value="$${external_ip_v4}" to param name="rtp-ip" value="$${local_ip_v4}" But I do not understand why bigbluebuttong set the rtp-ip to external_ip_v4.

longshuai avatar Sep 03 '21 09:09 longshuai

Thanks a lot! I will try it asap...

ralfi avatar Sep 04 '21 17:09 ralfi

you can change the file bbb-docker/mod/freeswitch/conf/sip_profiles/external.xml change param name="rtp-ip" value="$${external_ip_v4}" to param name="rtp-ip" value="$${local_ip_v4}"

Still does not work.

rocheston avatar May 04 '23 12:05 rocheston