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

11,020 views
Skip to first unread message

Avichai Taylor

unread,
May 2, 2017, 4:42:06 AM5/2/17
to BigBlueButton-Setup
Hi, 

I'm getting the following error: "Error: Unable to connect to the FreeSWITCH Event Socket Layer on port 8021."  I have an internal IP (I believe) and I followed the "radio not working instructions."  Then, while searching for an answer someone said I could check if there was a connection using telnet my.domain.com 5066. " Well, I did that and it came back with telnet: Unable to connect to remote host: Connection refused."

So, I'm guessing that's the issue, but can anyone tell me how to fix it?

Thank you!
AT

Fred Dixon

unread,
May 2, 2017, 12:20:04 PM5/2/17
to bigbluebu...@googlegroups.com
Hi Avichai,

That error message occurs when `bbb-conf --check` is unable to send a command to FreeSWITCH.

if ! echo "/quit" | /opt/freeswitch/bin/fs_cli - > /dev/null 2>&1; then
echo
                echo "#"
                echo "# Error: Unable to connect to the FreeSWITCH Event Socket Layer on port 8021"
                echo "#"
fi

Can you check if FreeSWITCH is running using the command

  systemctl status freeswitch

and let us know the output.  Also, if you are installing BigBlueButton under Linux Containers (LXD), see



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

Avichai Tzvi

unread,
May 2, 2017, 12:33:15 PM5/2/17
to bigbluebu...@googlegroups.com
Hi,
I don't believe I am using Linux Containers and I don't believe free switch is running systemctl status freeswitch (based on last bbb-conf --check).  BUT, I'm not absolutely sure how to check either.  Unfortunately, I'm a novice.

Can you tell me how to check?  And, if it isn't running (which I assume), how can I cause it to run?

Thank you for your help!  

2017-05-02 12:19 GMT-04:00 Fred Dixon <ffd...@gmail.com>:
Hi Avichai,

That error message occurs when `bbb-conf --check` is unable to send a command to FreeSWITCH.

if ! echo "/quit" | /opt/freeswitch/bin/fs_cli - > /dev/null 2>&1; then
echo
                echo "#"
                echo "# Error: Unable to connect to the FreeSWITCH Event Socket Layer on port 8021"
                echo "#"
fi

Can you check if FreeSWITCH is running using the command

  systemctl status freeswitch

and let us know the output.  Also, if you are installing BigBlueButton under Linux Containers (LXD), see



Regards,... Fred

On Tue, May 2, 2017 at 4:42 AM, Avichai Taylor <ttay...@gmail.com> wrote:
Hi, 

I'm getting the following error: "Error: Unable to connect to the FreeSWITCH Event Socket Layer on port 8021."  I have an internal IP (I believe) and I followed the "radio not working instructions."  Then, while searching for an answer someone said I could check if there was a connection using telnet my.domain.com 5066. " Well, I did that and it came back with telnet: Unable to connect to remote host: Connection refused."

So, I'm guessing that's the issue, but can anyone tell me how to fix it?

Thank you!
AT

--
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+unsubscribe...@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

--
You received this message because you are subscribed to a topic in the Google Groups "BigBlueButton-Setup" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bigbluebutton-setup/JdMuu8p8DbA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bigbluebutton-setup+unsub...@googlegroups.com.

Fred Dixon

unread,
May 2, 2017, 12:34:44 PM5/2/17
to bigbluebu...@googlegroups.com
Hi Avichai,

Try doing

  sudo bbb-conf --restart

and that should restart FreeSWITCH.  You can check that FreeSWITCH is running with the command

  sudo systemctl status freeswitch

and the logs with

 sudo journalctl -u freeswitch


Regards,... Fred

To unsubscribe from this group and all its topics, send an email to bigbluebutton-setup+unsubscribe...@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.

--
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.

Richard Alam

unread,
May 2, 2017, 12:35:58 PM5/2/17
to bigbluebu...@googlegroups.com
you can telnet to port 8021

> telnet 127.0.0.1 8021

If you can connect, then FS is running and accepting ESL connections.

Richard

Richard Alam

unread,
May 2, 2017, 12:37:01 PM5/2/17
to bigbluebu...@googlegroups.com
On Tue, May 2, 2017 at 12:35 PM, Richard Alam <ritz...@gmail.com> wrote:
you can telnet to port 8021

> telnet 127.0.0.1 8021

If you can connect, then FS is running and accepting ESL connections.


root@ubuntu:~# telnet 127.0.0.1 8021
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Content-Type: auth/request

^]
telnet> quit
Connection closed.
root@ubuntu:~#


 

Richard
--

Avichai Tzvi

unread,
May 2, 2017, 7:10:04 PM5/2/17
to bigbluebu...@googlegroups.com
It is loaded, but dead.   Here is full report after...
during installation, I never saw to the screens pop up where I had to agree to terms of service.  Is this the issue maybe?


Starting BigBlueButton
Job for freeswitch.service failed because the control process exited with error code. See "systemctl status freeswitch.service" and "journalctl -xe" for details.
....


** Potential problems described below **
# Warning: API URL IPs do not match host:
#
#                                IP from ifconfig: 207.38.82.248
#  /var/lib/tomcat7/webapps/demo/bbb_api_conf.jsp: meetings.envisioncme.net

grep: /opt/freeswitch/var/log/freeswitch/freeswitch.log: No such file or directory

#
# Error: Unable to connect to the FreeSWITCH Event Socket Layer on port 8021
#
.......
/usr/bin/bbb-conf: line 1271: [: too many arguments
# Warning: The setting of  for local_ip_v4 in
#
#    /opt/freeswitch/etc/freeswitch/vars.xml
#
# does not match the local IP address (207.38.82.248).
# (This is OK if you've manually changed the values)

# Warning: The API demos are installed and accessible from:
#
#
# These API demos allow anyone to access your server without authentication
# to create/manage meetings and recordings. They are for testing purposes only.
# If you are running a production system, remove them by running:
#
#    sudo apt-get purge bbb-demo

# Warning: The client self check is installed and accessible from:
#
#


To unsubscribe from this group and all its topics, send an email to bigbluebutton-setup+unsub...@googlegroups.com.

Richard Alam

unread,
May 2, 2017, 9:11:05 PM5/2/17
to bigbluebu...@googlegroups.com
On Tue, May 2, 2017 at 7:10 PM, Avichai Tzvi <ttay...@gmail.com> wrote:
It is loaded, but dead.   Here is full report after...
during installation, I never saw to the screens pop up where I had to agree to terms of service.  Is this the issue maybe?


Starting BigBlueButton
Job for freeswitch.service failed because the control process exited with error code. See "systemctl status freeswitch.service" and "journalctl -xe" for details.
....

Try running freeswith on the command line.

sudo su -l
cd /opt/freeswitch/bin
./freeswitch

what's the output?
 
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.

Avichai Tzvi

unread,
May 2, 2017, 9:27:32 PM5/2/17
to bigbluebu...@googlegroups.com
2017-05-03 01:26:40.367643 [ERR] sofia.c:3146 Error Creating SIP UA for profile: external-ipv6 (sip:mod_sofia@[::1]:5060;transport=udp,tcp) ATTEMPT 2 (RETRY IN 5 SEC)
2017-05-03 01:26:40.867631 [ERR] sofia.c:3146 Error Creating SIP UA for profile: internal-ipv6 (sip:mod_sofia@[::1]:5090;transport=udp,tcp) ATTEMPT 2 (RETRY IN 5 SEC)
2017-05-03 01:26:45.367587 [ERR] sofia.c:3146 Error Creating SIP UA for profile: external-ipv6 (sip:mod_sofia@[::1]:5060;transport=udp,tcp) ATTEMPT 3 (RETRY IN 5 SEC)
2017-05-03 01:26:45.367587 [ERR] sofia.c:3156 Error Creating SIP UA for profile: external-ipv6 (sip:mod_sofia@[::1]:5060;transport=udp,tcp)
The likely causes for this are:
1) Another application is already listening on the specified address.
2) The IP the profile is attempting to bind to is not local to this system.
2017-05-03 01:26:45.867619 [ERR] sofia.c:3146 Error Creating SIP UA for profile: internal-ipv6 (sip:mod_sofia@[::1]:5090;transport=udp,tcp) ATTEMPT 3 (RETRY IN 5 SEC)
2017-05-03 01:26:45.867619 [ERR] sofia.c:3156 Error Creating SIP UA for profile: internal-ipv6 (sip:mod_sofia@[::1]:5090;transport=udp,tcp)
The likely causes for this are:
1) Another application is already listening on the specified address.
2) The IP the profile is attempting to bind to is not local to this system.



To unsubscribe from this group and all its topics, send an email to bigbluebutton-setup+unsub...@googlegroups.com.

Avichai Tzvi

unread,
May 4, 2017, 2:08:44 PM5/4/17
to bigbluebu...@googlegroups.com
Thanks everyone for responding thus far! 

I'm still working on resolving this issue... And, I'm having problems with the following things so I'm wondering if they are all caused from this root issue (described above).

1.) I can't connect with audio when using Internet Explorer (I can with Chrome).
2.) My wordpress plugin returns this error : Unable to display the meetings. Please check the url of the bigbluebutton server AND check to see if the bigbluebutton server is running.
3.) I can't connect via phone to the conference room (this may be caused by incorrect configuration or something on my end as I'm not sure what I'm doing or how to set that up properly).

I'm just wonder if these are the same issue because I think I'm going to have to hire someone... I'm not doing so well on finding a solution.

Thank you for your input!

To unsubscribe from this group and all its topics, send an email to bigbluebutton-setup+unsubscribe...@googlegroups.com.

Fred Dixon

unread,
May 5, 2017, 8:32:41 AM5/5/17
to bigbluebu...@googlegroups.com
Hi Avichai,

> The likely causes for this are:
> 1) Another application is already listening on the specified address.
> 2) The IP the profile is attempting to bind to is not local to this system.

Check that other FreeSWITCH processes are not running.  In other words, stop BigBlueButton with
 
  sudo bbb-conf --stop

and check the list of running processes (ps -aef) to ensure there are no FreeSWITCH processes running.  
Then try starting BigBlueButton again and see if you can connect to FreeSWITCH using the FreeSWITCH command line interface

  sudo /opt/freeswitch/bin/fs_esl

you can also check the FreeSWITCH logs in

  /opt/freeswitch/log/freeswitch.log

for any errors.  If FreeSWITCH is running correctly, try the audio again.

> 1.) I can't connect with audio when using Internet Explorer (I can with Chrome).

Are you able to connect to our demo server at https://demo.bigbluebutton.org/?

> 2.) My wordpress plugin returns this error : Unable to display the meetings. Please check the url of the bigbluebutton server AND check to see if the bigbluebutton server is running.

Try using the default credentials (they should be visible in the hint text) for the test-install server.  Let us know if your WordPress installation works with test-install.

> 3.) I can't connect via phone to the conference room (this may be caused by incorrect configuration or something on my end as I'm not sure what I'm doing or how to set that up properly).

For steps to integration a phone number to the conference bridge (there is some assembly required here), see



Regards,... 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 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.

Avichai Tzvi

unread,
May 5, 2017, 10:55:51 AM5/5/17
to bigbluebu...@googlegroups.com
THANK YOU so much for you time Fred!  I will look at these again for greater understanding Last night (before I received this email), I wiped the server to start all over again.  I don't know that that will fix anything, but I will try.

Thank you again so much for taking the time to send this email!  I'll let you know what happens next.

To unsubscribe from this group and all its topics, send an email to bigbluebutton-setup+unsub...@googlegroups.com.

Avichai Tzvi

unread,
May 8, 2017, 11:46:08 PM5/8/17
to bigbluebu...@googlegroups.com
Hi,
I'm back again and pretty much in the same place.  I hired someone to help me, but it was to no avail. We wiped the server and then went for a complete fresh install.  There are no other programs, etc. working on the server, just BBB.  After the install, we came back with the same issue.  When I do bbb-conf --check, it looks like the only error now register (besides the ones about demos) is this one "Error: Unable to connect to the FreeSWITCH Event Socket Layer on port 8021."  

So... I started to try the suggestions give... here's the feed back 


root@usve254541:~# sudo /opt/freeswitch/bin/fs_esl
sudo: /opt/freeswitch/bin/fs_esl: command not found
root@usve254541:~# /opt/freeswitch/log/freeswitch.log
-bash: /opt/freeswitch/log/freeswitch.log: Permission denied





To unsubscribe from this group and all its topics, send an email to bigbluebutton-setup+unsubscribe...@googlegroups.com.

Avichai Tzvi

unread,
May 8, 2017, 11:47:42 PM5/8/17
to bigbluebu...@googlegroups.com
also.. the test install for the bbb-wordpress plugin did work... just not mine. :-(

Fred Dixon

unread,
May 9, 2017, 12:24:45 AM5/9/17
to bigbluebu...@googlegroups.com
Hi Avichai,

> root@usve254541:~# sudo /opt/freeswitch/bin/fs_esl
sudo: /opt/freeswitch/bin/fs_esl: command not found

Your getting an error because the correct command is fs_cli
 
  /opt/freeswitch/bin/fs_cli 

That's how to connect to the FreeSWITCH command line interface.  

> root@usve254541:~# /opt/freeswitch/log/freeswitch.log
> -bash: /opt/freeswitch/log/freeswitch.log: Permission denied

Your getting an error because your trying to execute a text file.  Instead, you would examine it's contents using tail, such as

  tail -f /opt/freeswitch/log/freeswitch.log


Regards,... 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 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.

Harald Kastner

unread,
May 25, 2017, 12:10:34 PM5/25/17
to BigBlueButton-Setup
I get the error message "Error: Unable to connect to the FreeSWITCH Event Socket Layer on port 8021." too, my bbb-server runs in a VZ-container (had to follow the LXD-instructions ;-), but changed freeswitch argument -ncwait to -nc because of runtime problems - same startup argument as in ubuntu 14.04./bbb 1.0).

Arguing that Freeswitch really failed I did

root@c7735:/# systemctl status freeswitch.service
● freeswitch.service - freeswitch
Loaded: loaded (/lib/systemd/system/freeswitch.service; enabled; vendor prese
Active: active (running) since Thu 2017-05-25 13:20:56 CEST; 1min 56s ago
Process: 2862 ExecStart=/opt/freeswitch/bin/freeswitch -u freeswitch -g daemon
Main PID: 2880 (freeswitch)
Memory: 42.1M
CGroup: /system.slice/freeswitch.service
└─2880 /opt/freeswitch/bin/freeswitch -u freeswitch -g daemon -nc -no

May 25 13:20:55 c7735 systemd[1]: Starting freeswitch...
May 25 13:20:55 c7735 systemd[1]: freeswitch.service: PID file /opt/freeswitch/v
May 25 13:20:56 c7735 systemd[1]: Started freeswitch.

The bbb-server itself runs w/o any other complaints, all functions available, client-check https://x.x.x.x/check/ works perfectly.

So I digged into the source of bbb-conf and found at line 1129:


    if ! echo "/quit" | /opt/freeswitch/bin/fs_cli - > /dev/null 2>&1; then
        echo
                echo "#"
                echo "# Error: Unable to connect to the FreeSWITCH Event Socket Layer on port 8021"
                echo "#"
    fi

which I read as: check if fs_cli runs and write STDERR to STDOUT ------ but ! inverted in if clause ------ so if there is an error no warning occurs, if there is no error a warning appears.

Please prove me, I'm not sure about my reading.

Cheers, Harald

Fred Dixon

unread,
May 25, 2017, 2:21:58 PM5/25/17
to bigbluebu...@googlegroups.com
Hi Harald,

The existing logic is correct.  You can try this command on the command line

  echo "/quit" | /opt/freeswitch/bin/fs_cli - > /dev/null 2>&1;  echo $?

and it should output '0' (which is the previous command exited without an error code).  If FreeSWITCH is running correctly, then the following will print out "yes"

  if echo "/quit" | /opt/freeswitch/bin/fs_cli - > /dev/null 2>&1; then echo "yes"; fi

If FreeSWITCH is not running correctly, then the '!' is needed to invert the logic. 

Are you able to so the following

   sudo su - root
   cd /opt/freeswitch/bin
   ./fs_cli

and connect to the FreeSWITCH command line interface?  (You can type '/quit' to quit if you did).

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.

Harald Kastner

unread,
May 25, 2017, 3:25:39 PM5/25/17
to BigBlueButton-Setup
Thank you, Fred, for the prompt answer!

I tested both the logic as well as the fs_cli-connection.
Both are working either with "yes" or switching to freeswitch's cli interface.

As I stated before the server is up and running normally. Only during start/restart "Error: Unable to connect to the FreeSWITCH Event Socket Layer on port 8021" is showing up despite the fact that freeswitch starts normaly without any complaints in it's logs. But there is a second warning during startup "Warning: The voice application may not have registered with the sip server." which is reflected in /usr/share/red5/log/sip.log.

2017-05-25 15:41:13,811+02:00 [0.0.0.0-startStop-1] INFO  ROOT - Starting up context: sip
2017-05-25 15:41:29,574+02:00 [Loader:/sip] DEBUG o.b.voiceconf.red5.Application - start: Scope [name=sip, path=/default, type=APPLICATION, autoStart=true, creationTime=1495719689060, depth=1, enabled=true, running=false]
2017-05-25 15:41:29,575+02:00 [Loader:/sip] DEBUG o.b.voiceconf.red5.Application - VoiceConferenceApplication appStart[sip]
2017-05-25 15:41:29,762+02:00 [Loader:/sip] DEBUG o.b.voiceconf.sip.SipPeer - SIPUser register
2017-05-25 15:41:29,770+02:00 [Loader:/sip] DEBUG o.b.voiceconf.sip.SipPeer - SIPUser register : "bbbuser" <sip:bbb...@81.16.32.54>
2017-05-25 15:41:29,770+02:00 [Loader:/sip] DEBUG o.b.voiceconf.sip.SipPeer - SIPUser register : sip:bbb...@81.16.32.54:5070
2017-05-25 15:41:29,974+02:00 [Loader:/sip] DEBUG o.b.voiceconf.red5.Application - appStart: Scope [name=sip, path=/default, type=APPLICATION, autoStart=true, creationTime=1495719689060, depth=1, enabled=true, running=false]
2017-05-25 15:41:30,043+02:00 [pool-28-thread-1] INFO  o.b.voiceconf.sip.SipRegisterAgent - Registering contact <sip:bbb...@81.16.32.54:5070> (it expires in 3600 secs)
2017-05-25 15:41:41,902+02:00 [Thread-9] ERROR o.b.voiceconf.sip.SipPeer - Failed to register with Sip Server.

But after startup everything is working as it should (here the client check):

2017-05-25 15:47:15,698+02:00 [RTMPConnectionExecutor-1] DEBUG o.b.voiceconf.red5.Application - connect: RTMPMinaConnection from 213.47.155.17 (in: 3481 out: 3073) session: YLMJWSDUAXFP4 state: connected > Scope [name=sip, path=/default, type=APPLICATION, autoStart=true, creationTime=1495719689060, depth=1, enabled=true, running=true]
2017-05-25 15:47:15,698+02:00 [RTMPConnectionExecutor-1] INFO  o.b.voiceconf.red5.Application - W3C x-category:session x-event:connect c-ip:213.47.155.17 c-client-id:3
2017-05-25 15:47:15,699+02:00 [RTMPConnectionExecutor-1] INFO  o.b.voiceconf.red5.Application - Test User[uid=123456] [clientid=3] has connected to the voice conf app.
2017-05-25 15:47:15,699+02:00 [RTMPConnectionExecutor-1] INFO  o.b.voiceconf.red5.Application - [clientid=3] connected from 213.47.155.17:3987.
2017-05-25 15:47:16,296+02:00 [RTMPConnectionExecutor-1] INFO  o.b.voiceconf.red5.Application - User joining bbb-voice: data={"connType":"RTMP","connId":"YLMJWSDUAXFP4","description":"User joining BBB Voice.","meetingId":"room-mock-default","event":"user_joining_bbb_voice","userId":"123456","username":"Test User"}
2017-05-25 15:47:16,302+02:00 [RTMPConnectionExecutor-1] DEBUG o.b.voiceconf.red5.Application - appConnect: RTMPMinaConnection from 213.47.155.17 (in: 3481 out: 3073) session: YLMJWSDUAXFP4 state: connected
2017-05-25 15:47:16,302+02:00 [RTMPConnectionExecutor-1] DEBUG o.b.voiceconf.red5.Application - appJoin: Client: 3 >> Scope [name=sip, path=/default, type=APPLICATION, autoStart=true, creationTime=1495719689060, depth=1, enabled=true, running=true]
2017-05-25 15:47:17,000+02:00 [RTMPConnectionExecutor-3] DEBUG o.b.voiceconf.red5.Application - connect: RTMPTConnection from 127.0.0.1 (in: 3484 out: 3074) session: LNLAJAPEIJ0X4 state: connected > Scope [name=sip, path=/default, type=APPLICATION, autoStart=true, creationTime=1495719689060, depth=1, enabled=true, running=true]
2017-05-25 15:47:17,000+02:00 [RTMPConnectionExecutor-3] INFO  o.b.voiceconf.red5.Application - W3C x-category:session x-event:connect c-ip:127.0.0.1 c-client-id:LNLAJAPEIJ0X4
2017-05-25 15:47:17,000+02:00 [RTMPConnectionExecutor-3] INFO  o.b.voiceconf.red5.Application - Test User[uid=123456] [clientid=LNLAJAPEIJ0X4] has connected to the voice conf app.
2017-05-25 15:47:17,000+02:00 [RTMPConnectionExecutor-3] INFO  o.b.voiceconf.red5.Application - [clientid=LNLAJAPEIJ0X4] connected from 127.0.0.1:57156.
2017-05-25 15:47:17,001+02:00 [RTMPConnectionExecutor-3] INFO  o.b.voiceconf.red5.Application - User joining bbb-voice: data={"connType":"RTMPT","connId":"LNLAJAPEIJ0X4","description":"User joining BBB Voice.","meetingId":"room-mock-default","event":"user_joining_bbb_voice","userId":"123456","username":"Test User"}
2017-05-25 15:47:17,001+02:00 [RTMPConnectionExecutor-3] DEBUG o.b.voiceconf.red5.Application - appConnect: RTMPTConnection from 127.0.0.1 (in: 3484 out: 3074) session: LNLAJAPEIJ0X4 state: connected
2017-05-25 15:47:17,001+02:00 [RTMPConnectionExecutor-3] DEBUG o.b.voiceconf.red5.Application - appJoin: Client: LNLAJAPEIJ0X4 >> Scope [name=sip, path=/default, type=APPLICATION, autoStart=true, creationTime=1495719689060, depth=1, enabled=true, running=true]
2017-05-25 16:53:33,292+02:00 [http-nio-0.0.0.0-5080-exec-1] DEBUG o.b.voiceconf.red5.Application - disconnect: RTMPTConnection from 127.0.0.1 (in: 10884 out: 3264) session: LNLAJAPEIJ0X4 state: disconnecting < Scope [name=sip, path=/default, type=APPLICATION, autoStart=true, creationTime=1495719689060, depth=1, enabled=true, running=true]
2017-05-25 16:53:33,293+02:00 [http-nio-0.0.0.0-5080-exec-1] INFO  o.b.voiceconf.red5.Application - W3C x-category:session x-event:disconnect c-ip:127.0.0.1 c-client-id:LNLAJAPEIJ0X4
2017-05-25 16:53:33,293+02:00 [http-nio-0.0.0.0-5080-exec-1] INFO  o.b.voiceconf.red5.Application - [clientid=LNLAJAPEIJ0X4] disconnnected from 127.0.0.1:57156.
2017-05-25 16:53:33,293+02:00 [http-nio-0.0.0.0-5080-exec-1] DEBUG o.b.voiceconf.red5.Application - Test User[uid=123456] [clientid=LNLAJAPEIJ0X4] is leaving the voice conf app. Removing from ConnectionManager.
2017-05-25 16:53:33,294+02:00 [http-nio-0.0.0.0-5080-exec-1] INFO  o.b.voiceconf.red5.Application - User leaving bbb-voice: data={"connType":"RTMPT","connId":"LNLAJAPEIJ0X4","description":"User leaving BBB Voice.","meetingId":"room-mock-default","event":"user_leaving_bbb_voice","userId":"123456","username":"Test User"}
2017-05-25 16:53:33,294+02:00 [http-nio-0.0.0.0-5080-exec-1] DEBUG o.b.v.red5.ClientConnectionManager - Removed client LNLAJAPEIJ0X4 from ConnectionManager.
2017-05-25 16:53:33,294+02:00 [http-nio-0.0.0.0-5080-exec-1] DEBUG o.b.voiceconf.red5.Application - appDisconnect: RTMPTConnection from 127.0.0.1 (in: 10884 out: 3264) session: LNLAJAPEIJ0X4 state: disconnecting
2017-05-25 16:53:33,294+02:00 [http-nio-0.0.0.0-5080-exec-1] DEBUG o.b.voiceconf.red5.Application - leave: Client: LNLAJAPEIJ0X4 << Scope [name=sip, path=/default, type=APPLICATION, autoStart=true, creationTime=1495719689060, depth=1, enabled=true, running=true]
2017-05-25 16:53:33,294+02:00 [http-nio-0.0.0.0-5080-exec-1] DEBUG o.b.voiceconf.red5.Application - appLeave: Client: LNLAJAPEIJ0X4 << Scope [name=sip, path=/default, type=APPLICATION, autoStart=true, creationTime=1495719689060, depth=1, enabled=true, running=true]

Just to compare timestamps freeswitch starts this way:

● freeswitch.service - freeswitch
   Loaded: loaded (/lib/systemd/system/freeswitch.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2017-05-25 15:40:29 CEST; 5h 25min ago
  Process: 7779 ExecStart=/opt/freeswitch/bin/freeswitch -u freeswitch -g daemon -nc $DAEMON_OPTS (code=exited, status=0/SUCCESS)
 Main PID: 7796 (freeswitch)
   Memory: 48.1M
   CGroup: /system.slice/freeswitch.service
           └─7796 /opt/freeswitch/bin/freeswitch -u freeswitch -g daemon -nc -nonat

May 25 15:40:28 c7735 systemd[1]: Starting freeswitch...
May 25 15:40:28 c7735 systemd[1]: freeswitch.service: PID file /opt/freeswitch/var/run/freeswitch/freeswitch.pid not readable (yet?) after start: No such file or directory
May 25 15:40:29 c7735 systemd[1]: Started freeswitch.

So FreeSwitch finished startup (15:40:29) 44 seconds before SIP even starts (
15:41:13).

Weird ... and I have no clue. I read all the matching issues around in bbb-users and bbb-setup,

Thank you again and cheers, Harald

Btw: no firewall is running,
ps aux and top show freeswitch running

Fred Dixon

unread,
May 25, 2017, 5:02:27 PM5/25/17
to bigbluebu...@googlegroups.com
Hi Harlad,

> As I stated before the server is up and running normally!

Got it.  As it's working, I wouldn't worry too much about the message.

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+unsubscribe...@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.

tom

unread,
May 26, 2017, 8:30:49 PM5/26/17
to BigBlueButton-Setup
Hi, 

I tried to install bbb 1.1 on two VM (on Hyper-V).
On both machines, I faced the same error ("Error: Unable to connect to the FreeSWITCH Event Socket Layer on port 8021.").
But a demo meeting by bbb-demo seems to work.  Strange...

bin tom

unread,
Jun 2, 2017, 3:38:40 AM6/2/17
to BigBlueButton-Setup
Hi Fred Dixon

In bigbluebutton.properties  i set:

freeswitch.esl.host=127.0.0.1
freeswitch.esl.port=8021
freeswitch.esl.password=ClueCon

and in event_socket.conf.xml

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

Then bigbluebutton working well. 

But if i set to ip: 192.168.1.81  that is local computer IP

freeswitch.esl.host=192.168.1.81
freeswitch.esl.port=8021
freeswitch.esl.password=ClueCon

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

 it show "Error: Unable to connect to the FreeSWITCH Event Socket Layer on port 8021"

I  can telnet to that ip and port 8021:

root@S1:~# telnet 192.168.1.81 8021
Trying 192.168.1.81...
Connected to 192.168.1.81.
Escape character is '^]'.
Content-Type: auth/request

quit
Content-Type: text/disconnect-notice
Content-Length: 67

Disconnected, goodbye.
See you at ClueCon! http://www.cluecon.com/
Connection closed by foreign host.

Could you help me with that

Thanks 
Bin

Fred Dixon

unread,
Jun 2, 2017, 7:38:55 AM6/2/17
to bigbluebu...@googlegroups.com
Hi Tom,

> I set: <param name="listen-ip" value="127.0.0.1"/>
> Then bigbluebutton working well. 

These are the correct values -- you don't need to change them as these are the default values for a BigBlueButton server.

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-s...@googlegroups.com.
To post to this group, send email to bigbluebu...@googlegroups.com.

bin tom

unread,
Jun 3, 2017, 12:54:03 AM6/3/17
to BigBlueButton-Setup
Dear Fred!

if i want to connect to external Freeswitch, so how can i configure since i can not change the ip.

Please guide me for this.

Thanks and regards

Tom

Vào 18:38:55 UTC+7 Thứ Sáu, ngày 02 tháng 6 năm 2017, Fred Dixon đã viết:
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-setup+unsub...@googlegroups.com.

bin tom

unread,
Jun 8, 2017, 6:01:27 AM6/8/17
to BigBlueButton-Setup
Hi Fred!

I follow the instruction on http://docs.bigbluebutton.org/install/install.html#connect-bigbluebutton-to-an-external-freeswitch-server  to configure, but still get Error: Unable to connect to the FreeSWITCH Event Socket Layer on port 8021.

Here is my configure:

#On BBB server : 192.168.1.81

1. make change on /usr/share/red5/webapps/bigbluebutton/WEB-INF/bigbluebutton.properties

freeswitch.esl.host=192.168.1.82
freeswitch.esl.port=8021
freeswitch.esl.password=ClueCon


2. make change on /usr/share/red5/webapps/sip/WEB-INF/bigbluebutton-sip.properties

bbb.sip.app.ip=192.168.1.81
bbb.sip.app.port=5070

sip.server.username=bbbuser
sip.server.password=notsecret

freeswitch.ip=192.168.1.82
freeswitch.port=5060


3. make change on /opt/freeswitch/conf/autoload_configs/event_socket.conf.xml

<configuration name="event_socket.conf" description="Socket Client">
  <settings>
    <param name="nat-map" value="false"/>
    <param name="listen-ip" value="192.168.1.82"/>
    <param name="listen-port" value="8021"/>
    <param name="password" value="ClueCon"/>

   <param name="apply-inbound-acl" value="lan"/>
    <!-- <param name="apply-inbound-acl" value="loopback.auto"/>-->
    <!--<param name="stop-on-bind-error" value="true"/>-->
  </settings>
</configuration>

#On FREESWITCH server : 192.168.1.82

1. make change on /opt/freeswitch/conf/autoload_configs/event_socket.conf.xml.

<configuration name="event_socket.conf" description="Socket Client">
  <settings>
    <param name="nat-map" value="false"/>
    <param name="listen-ip" value="192.168.1.82"/>
    <param name="listen-port" value="8021"/>
    <param name="password" value="ClueCon"/>

    <param name="apply-inbound-acl" value="lan"/>
    <!--<param name="stop-on-bind-error" value="true"/>-->
  </settings>
</configuration>

2. make change on /opt/freeswitch/conf/directory/default/bbbuser.xml

  <user id="bbbuser">
    <params>
      <!-- omit password for authless registration -->
      <param name="password" value="notsecret"/>
      <!-- What this user is allowed to access -->
      <!--<param name="http-allowed-api" value="jsapi,voicemail,status"/> -->
    </params>

after configure :

#On Freeswitch:
 systemctl stop freeswitch
 systemctl start freeswitch
sudo systemctl status freeswitch ---> active

# On BBB
bbb-conf --clean

** Potential problems described below **
....
#
# Error: Unable to connect to the FreeSWITCH Event Socket Layer on port 8021
#


Please help

Thanks and regards

Bin

HostBBB.com

unread,
Jun 8, 2017, 8:21:13 AM6/8/17
to BigBlueButton-Setup
This thread talks about connecting to an external freeswitch earlier, and it looks like you have issues with audio not recording in another post.

Also I  see you have modified the dialplan for telephone dialing.

If freeswitch is on another server,  bbb wont find any wav filed to process audio.   Also,  if you join the telco bridge with DID, and the dialplan is not configured correctly you may go into an 8k standard conference, instead of cdquality 48K.  The first one in conference sets the sampling rate.  This may create an issue with record and archive not 100% sure.

regards,
Stephen

bin tom

unread,
Jun 9, 2017, 3:19:25 AM6/9/17
to BigBlueButton-Setup
Hi Stephen!

Could you see my previous post (8/6/2017) on configure external freeswitch. I need help on that.

Thanks and regards

Bin

Reply all
Reply to author
Forward
0 new messages