Freeswitch cannot bind to 8021 in BBB 1.1

271 views
Skip to first unread message

Qiu Bo

unread,
Mar 28, 2018, 12:43:55 PM3/28/18
to BigBlueButton-Setup
Dear all,

I followed the installation instructions here exact

I was able to install BBB almost successfully, except my server doesn't support IPv6 so there is error on Freeswitch cannot bind to 8021. 

I then followed the below steps:
==============================================================

 First, edit /opt/freeswitch/etc/freeswitch/autoload_configs/event_socket.conf.xml and change the line

    <param name="listen-ip" value="::"/>

to

    <param name="listen-ip" value="127.0.0.1"/>

This tells FreeSWITCH that instead of binding port 8021 to the local IPV6 address, bind to the IPV4 address 127.0.0.1. Next, execute the following two commands

$ 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_

and then restart BigBlueButton with the commands

sudo bbb-conf --clean
============================================
However, it didn't resolve the problem. I still got:
# Error: Found text in freeswitch.log:
#
#    Thread ended for mod_event_socket
#
# FreeSWITCH may not be responding to requests on port 8021 (event socket layer)
# and users may have errors joining audio.
#
......
Could you please advise what else I need to do? Thanks!

Best,
Bo

Fred Dixon

unread,
Mar 28, 2018, 12:55:00 PM3/28/18
to BigBlueButton-.
Hi Qui,

Can you check the FreeSWITCH log at

  /opt/freeswitch/log/freeswitch.log

and see if there is any error messages that can give you clues about the failure to bind to port 8021.


Regards,... Fred

--
You received this message because you are subscribed to the Google Groups "BigBlueButton-Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-setup+unsub...@googlegroups.com.
To post to this group, send email to bigbluebutton-setup@googlegroups.com.
Visit this group at https://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/d/optout.



--
BigBlueButton Developer
@bigbluebutton

Qiu Bo

unread,
Mar 28, 2018, 12:59:23 PM3/28/18
to BigBlueButton-Setup
Hi Fred,

grep 8021 /opt/freeswitch/log/freeswitch.log
2018-03-29 00:38:10.206532 [DEBUG] mod_event_socket.c:2943 Socket up listening on 127.0.0.1:8021

grep error /opt/freeswitch/log/freeswitch.log
2018-03-28 15:22:28.012189 [NOTICE] switch_loadable_module.c:162 Adding Endpoint 'error'
2018-03-29 00:11:15.878195 [NOTICE] switch_event.c:457 Subclass reservation deleted for mod_sofia.c:sofia::error
2018-03-29 00:11:22.895693 [NOTICE] switch_loadable_module.c:162 Adding Endpoint 'error'
2018-03-29 00:12:10.819807 [NOTICE] switch_event.c:457 Subclass reservation deleted for mod_sofia.c:sofia::error
2018-03-29 00:12:17.953673 [NOTICE] switch_loadable_module.c:162 Adding Endpoint 'error'
2018-03-29 00:38:03.776674 [NOTICE] switch_event.c:457 Subclass reservation deleted for mod_sofia.c:sofia::error
2018-03-29 00:38:10.042643 [NOTICE] switch_loadable_module.c:162 Adding Endpoint 'error'

Should I look for something else? Thanks!

Best,
Bo
To post to this group, send email to bigbluebu...@googlegroups.com.

Fred Dixon

unread,
Mar 28, 2018, 1:03:06 PM3/28/18
to BigBlueButton-.
Hmm,

Your encountering the same errors that were posted in this previous thread


Can you post the output of

  sudo netstat -antp | grep freeswitch

Also, double check that the correct files were edited and copied (see above link).



Regards,... Fred

Hi Fred,

To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-setup+unsubscribe...@googlegroups.com.
To post to this group, send email to bigbluebu...@googlegroups.com.
Visit this group at https://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/d/optout.



--
BigBlueButton Developer
@bigbluebutton

--
You received this message because you are subscribed to the Google Groups "BigBlueButton-Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-setup+unsub...@googlegroups.com.
To post to this group, send email to bigbluebutton-setup@googlegroups.com.

Qiu Bo

unread,
Mar 28, 2018, 1:10:22 PM3/28/18
to BigBlueButton-Setup
Here is the output

sudo netstat -antp | grep freeswitch
tcp        0      0 172.18.95.74:5090       0.0.0.0:*               LISTEN      26641/freeswitch
tcp        0      0 172.18.95.74:5060       0.0.0.0:*               LISTEN      26641/freeswitch
tcp        0      0 172.18.95.74:5066       0.0.0.0:*               LISTEN      26641/freeswitch
tcp        0      0 172.18.95.74:8081       0.0.0.0:*               LISTEN      26641/freeswitch
tcp        0      0 172.18.95.74:8082       0.0.0.0:*               LISTEN      26641/freeswitch
tcp        0      0 127.0.0.1:8021          0.0.0.0:*               LISTEN      26641/freeswitch
tcp        0      0 127.0.0.1:8021          127.0.0.1:38370         ESTABLISHED 26641/freeswitch

172.18.95.74 is the internal IP address

I'll read into the other post as well. Thanks!

Best,
Bo
Hi Fred,

To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-setup+unsub...@googlegroups.com.
To post to this group, send email to bigbluebu...@googlegroups.com.
Visit this group at https://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/d/optout.



--
BigBlueButton Developer
@bigbluebutton

--
You received this message because you are subscribed to the Google Groups "BigBlueButton-Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-setup+unsub...@googlegroups.com.
To post to this group, send email to bigbluebu...@googlegroups.com.
Visit this group at https://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/d/optout.

Qiu Bo

unread,
Mar 29, 2018, 12:12:18 AM3/29/18
to BigBlueButton-Setup
Hi Fred,

I'm still seeing these errors:

# Error: Found text in freeswitch.log:
#
#    Thread ended for mod_event_socket
#
# FreeSWITCH may not be responding to requests on port 8021 (event socket layer)
# and users may have errors joining audio.
#

#
# Error: Unable to connect to the FreeSWITCH Event Socket Layer on port 8021

I followed your link and saw in the postings your response came back to this link

I followed this link exactly but still got above error.

I was able to do bbb demo calls with video and audio though. Only thing I see missing is the microphone indicator in Users panel and the banner on top of the cam video didn't light up as I talk -- not sure if this relates to the error I saw above. Please advise. Thanks!

Best,
Bo
Reply all
Reply to author
Forward
0 new messages