SomeTime User gets “Failure on call (reason=ICE error) error 1004” notification as a error message while trying to join audio with microphone in bigbluebutton, also if you notice it takes little extra time to respond this 1004 error message. This may happen only for few of users and may be for everyone and many times it could be because of user’s network but let’s get into the deep of this issue and try to fix issue of ICE Error 1004.
It happens when you join a bigbluebutton meeting and try to join audio as microphone and sometime it works but sometimes it doesn’t work and in most of the cases user try 3-4 times and they get successfully connected but in same cases it doesn’t work.
Table of Contents
Why ICE Error 1004 :
Sometimes because of network or stun server doesn’t provide the ICE candidate to webrtc call between freeswitch in the sdp offer and it wait for around 5 seconds for ICE candidate and if it doesn’t get any ICE candidate which is responsible to transmit the media stream because of this it fails to establish a ice connection and this cause to terminate the audio connection between server and client and finally you see – “Failure on call (reason=ICE error) error 1004”.
Another Reason could be your current server doesn’t support the ipv6 and freeswitch doesn support both ipv4 and well as ipv6 and when it try to make connection via ipv6 it get failed. Before checking any other solution first make sure you have correctly SSL is installed.
ICE Error 1004 – Failure On Call BigBlueButton
Let’s follow these solutions to get rid of this ICE Error 1004 :
Solution – Answer 1:
- Please login to your server either vis ssh or ftp
- Run below command in terminal
cd /usr/share/bbb-web/WEB-INF/classes/spring/turn-stun-servers.xml
- If it doesn’t have stun and turn server configured then please configure a coturn server
- https://docs.bigbluebutton.org/admin/setup-turn-server.html
- Please make sure to follow all the steps of coturn server (specially change the default stun server)
- Restart the bigbluebutton server and you will see audio started working fine
- If you are still facing an isssue consider hiring a bigbluebutton developer
- But in case if it doesn’t work then please try solution 2
Solution 2 – BigBlueButton ICE Error 1004:
- First check you server if ipv6 doesn’t support please disable use of ipv6 in freeswitch
- run
sudo ip addr | grep inet6
- if you don’t see this line
inet6 ::1/128 scope host
it means ipv6 is not supported - To Disable ipv6 binding in freeswitch do below steps
- edit
/opt/freeswitch/etc/freeswitch/autoload_configs/event_socket.conf.xml
via vim or nano editor - change this line
<param name="listen-ip" value="::"/>
to this<param name="listen-ip" value="127.0.0.1"/>
- Run below commands and then test it should work for sure
sudo mv /opt/freeswitch/etc/freeswitch/sip_profiles/internal-ipv6.xml /opt/freeswitch/etc/freeswitch/sip_profiles/internal-ipv6.xml_
sudo mv /opt/freeswitch/etc/freeswitch/sip_profiles/external-ipv6.xml /opt/freeswitch/etc/freeswitch/sip_profiles/external-ipv6.xml_
sudo bbb-conf --restart
sudo bbb-conf --clean
sudo bbb-conf --check
Solution 3 – Failure on call:
In case both of the above solutions are not working then it could be because of firewall issue, make sure that your internet is not behind a configured firewall. In that case you can install stun and turn coturn server. Once you correctly cofigure it. Your audio will start working and bigbluebutton error 1004 will be gone.
Solution 4 – Audio is not working:
If none of the above work (in most of the case solution 2 should work) then it could be because you are not using the latest version of bigbluebutton and sipjs , so you should upgrade to latest version and it should fix your microphone ice error 1004
For Some other troubleshooting error. visit bigbluebutton troubleshoot official documentation.
Still if you need any help in regards of bigbluebutton errors, bigbluebutton customization, new functionality enhancement, greenlight customization, installation or setup , scalelite installation and setup, custom admin panel , support and maintenance for long term or any other customization, you can directly hire an developer here
3 thoughts on “Solved – Error 1004 (ICE Error) Failure on call- BigBlueButton Audio”
Thanks for this answer, For me adding stun and turn server worked ( solution 1) to solve the bigbluebutton ice error 1004
Solved – Error 1004 (ICE Error) Failure on call- BigBlueButton Audio
– very interesting,Admin – please read!
Bigbluebutton Error 1004 ICE Error , Failure on Call, audio is not working , Please Check
web development, web designing , Bigbluebutton, NodeJs, ReactJS, Python, Html, Css, JavaScript, MeteorJS, Ruby On Rails, Admin Panel, User Panel, Dashboard, Stripe, Paypal Payment Getway Integration , APIs development, API Integration, Shopify, Shopify App Development, Theme Development, Video Application Development,