Error: Could not detect FreeSWITCH listening on port 5060

3,932 views
Skip to first unread message

Muhammad Umair

unread,
Jan 20, 2016, 11:06:46 AM1/20/16
to BigBlueButton-Setup
I have installed BBB server and I am now building the client
I have run ant -locales 
and ant

its worked fine.
Now I use command bbb-conf --clean it is giving out error 

    Error: Could not detect FreeSWITCH listening on port 5060

bbb-conf --check command also giving out the error

    Error :The voice application failed to register with the sip server.
             Try running:

            sudo bbb-conf --clean



also it is giving the same error as --clean gave

Fred Dixon

unread,
Jan 20, 2016, 11:11:25 AM1/20/16
to bigbluebu...@googlegroups.com
Hi Muhammad,

If you back out the changes you've made to the client and restart BigBlueButton, does the audio work correctly?

This will help you confirm whether FreeSWITCH is working correctly.

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.
Visit this group at https://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/d/optout.



--
BigBlueButton Developer
@bigbluebutton

Muhammad Umair

unread,
Jan 20, 2016, 11:30:39 AM1/20/16
to BigBlueButton-Setup
Dear Sir,
I have switch back back to nginx.client 

But error remain the same

Muhammad Umair

unread,
Jan 20, 2016, 11:36:31 AM1/20/16
to BigBlueButton-Setup
After switching back I am also getting

Warning : The setting of (192.168.1.11) for bbb.sip.ip in 
   /usr/share/red5/webapps/sip/WEB-INF/bigbluebutton-sip.properties

does not match the local IP address (192.168.1.10)

Fred Dixon

unread,
Jan 20, 2016, 11:38:47 AM1/20/16
to bigbluebu...@googlegroups.com
Hi Muhammad,

Did the WebRTC audio work before on your server (after you installed but before you made any custom changes)?

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.
Visit this group at https://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/d/optout.

Muhammad Umair

unread,
Jan 20, 2016, 11:40:11 AM1/20/16
to BigBlueButton-Setup
When I installed the server and test with demo API it worked fine but when I linked it to client_dev  it gave an error

Fred Dixon

unread,
Jan 20, 2016, 11:44:01 AM1/20/16
to bigbluebu...@googlegroups.com
Hi Muhammad,

The error 

    Error: Could not detect FreeSWITCH listening on port 5060

means there isn't anything listening on port 5060.  Did you make any other changes besides the client?  Did you make changes to FreeSWITCH?

We recommend starting FreeSWITCH on the command line and see if it gives you an error.

Regards,... Fred


On Wed, Jan 20, 2016 at 11:40 AM, Muhammad Umair <umairmuh...@gmail.com> wrote:
When I installed the server and test with demo API it worked fine but when I linked it to client_dev  it gave an error

--
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.
Visit this group at https://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/d/optout.

Muhammad Umair

unread,
Jan 20, 2016, 11:44:18 AM1/20/16
to BigBlueButton-Setup
Also I have manually checked 
 $ cat/usr/share/red5/webapps/sip/WEB-INF/bigbluebutton-sip.properties

freeswitch.ip=192.168.1.11
while my bbb server is on 192.168.1.10

Fred Dixon

unread,
Jan 20, 2016, 11:46:30 AM1/20/16
to bigbluebu...@googlegroups.com
Hi Muhammad,

> freeswitch.ip=192.168.1.11
> while my bbb server is on 192.168.1.10

As you may expect, those values need to match; otherwise red5 will attempt to connect to 192.168.1.11.

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.
Visit this group at https://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/d/optout.

Muhammad Umair

unread,
Jan 20, 2016, 11:46:58 AM1/20/16
to BigBlueButton-Setup
No Sir, I didnt make any change I just follow the steps as given in the link http://docs.bigbluebutton.org/dev/setup.html
and Sir I didnt understand the command line FreeSwitch.
 I am sorry if I am too much disturbing . I am newbee to Bigbluebutton 

Fred Dixon

unread,
Jan 20, 2016, 11:50:20 AM1/20/16
to bigbluebu...@googlegroups.com
Hi Muhammad,

Google is your friend.  Do a search for 

  debugging freeswitch

and the first result will help you.



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.
Visit this group at https://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/d/optout.

Muhammad Umair

unread,
Jan 27, 2016, 11:15:30 AM1/27/16
to BigBlueButton-Setup

Dear Sir,
I have now no error while I run the command bbb-conf --clean and bbb-conf --check 
it says"  The  API demos are installed and accessible through :
           http://192.168.1.11/
But when I run the URL in browser it is not working

Fred Dixon

unread,
Jan 27, 2016, 11:25:30 AM1/27/16
to bigbluebu...@googlegroups.com
Hi Muhammad,

> freeswitch.ip=192.168.1.11
> while my bbb server is on 192.168.1.10

According to the above, BigBlueButton is configured to use the wrong IP address.  You need to configure it to use the IP address of the host; otherwise, it wont' work.  See

 sudo bbb-conf --setip 192.168.1.10
 sudo bbb-conf --enablewebrtc

 sudo bbb-conf --clean
 sudo bbb-conf --check

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

Muhammad Umair

unread,
Jan 28, 2016, 10:21:47 AM1/28/16
to BigBlueButton-Setup
Dear Sir, 
Now I have set the IP address and now it is on the same IP address
I then use 
bbb-conf --clean
bbb-conf --check
everything works fine but when I am trying to get demo API using URL in the browser its not working

Fred Dixon

unread,
Jan 28, 2016, 11:37:01 AM1/28/16
to bigbluebu...@googlegroups.com
Hi Muhammad,

> everything works fine but when I am trying to get demo API using URL in the browser its not working

Can you be more specific -- are you getting a 404 not found error, are you getting an error when loading, are you getting an error after loading, etc...?

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.
Visit this group at https://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/d/optout.

Andrei B.

unread,
Jan 28, 2016, 11:48:12 AM1/28/16
to BigBlueButton-Setup
hi all,

i ran into the same problem today. everithing worked fine, until i change the server ip. after this action i receive the marvelous "error could not detect freeswitch listening on port 5060" error when i ran "sudo bbb-conf --check"  command.

only the command: "sudo bbb-conf --setip 192.168.1.10" isn't enough to fix this problem.
you need to change ip in at least other 2 locations:
  • in freeswitch config file at: /opt/freeswitch/conf/vars.xml
  • in sip.properties at: /usr/share/red5/webapps/sip/WEB-INF/bigbluebutton-sip.properties
also check the config.xml file (/var/www/bigbluebutton/client/conf/config.xml) to see if there are some reminescence of old ip.

kind regards,
Andrei B.

Andrei B.

unread,
Jan 28, 2016, 11:52:46 AM1/28/16
to BigBlueButton-Setup
i forgot to add that when you're done with all the editing, reboot the server and after reboot run "sudo bbb-conf --clean" command.

kind regards,
Andrei B.

Muhammad Umair

unread,
Jan 28, 2016, 12:01:37 PM1/28/16
to BigBlueButton-Setup

Dear Sir, 
I am getting error "The webpage is not available"



Fred Dixon

unread,
Jan 28, 2016, 12:14:55 PM1/28/16
to bigbluebu...@googlegroups.com
Hi Muhammad,

Did you install the API demos?  See


Regards,... Fred


On Thu, Jan 28, 2016 at 12:01 PM, Muhammad Umair <umairmuh...@gmail.com> wrote:

Dear Sir, 
I am getting error "The webpage is not available"



--
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.
Visit this group at https://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/d/optout.

Muhammad Umair

unread,
Feb 1, 2016, 1:10:04 AM2/1/16
to BigBlueButton-Setup


Yes Sir I have installed API demos.
And i think it shows, you can access API demo at 192.168.1.10 only when API demos installed

Fred Dixon

unread,
Feb 1, 2016, 5:20:11 AM2/1/16
to bigbluebu...@googlegroups.com
Hi Muhammad,

> And i think it shows, you can access API demo at 192.168.1.10 only when API demos installed

Hmm .. can you restate your problem.  Earlier you said, 

> > everything works fine but when I am trying to get demo API using URL in the browser its not working

Are you able to login to the API demos when you access


or a specific demo, such as 



Regards,... Fred


On Mon, Feb 1, 2016 at 1:10 AM, Muhammad Umair <umairmuh...@gmail.com> wrote:


Yes Sir I have installed API demos.
And i think it shows, you can access API demo at 192.168.1.10 only when API demos installed

--
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.
Visit this group at https://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/d/optout.

Muhammad Umair

unread,
Feb 1, 2016, 10:29:02 AM2/1/16
to BigBlueButton-Setup
Dear Sir,


Right I have installed API demos by 
sudo apt-get install bbb-demo
and I have now getting no error  when I run the command 
sudo bbb-conf --clean
sudo bbb-conf --check

and gets no error and it says 
Warning: The API demos are installed and accessible from:
 http://192.168.1.10/
but when I type this URL in browser I get no response and it says 

This webpage is not available

Fred Dixon

unread,
Feb 1, 2016, 11:01:56 AM2/1/16
to bigbluebu...@googlegroups.com
Hi Muhammad,

Can you post a screen shot of the error message.  Thanks.

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.
Visit this group at https://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/d/optout.

Muhammad Umair

unread,
Feb 1, 2016, 11:15:00 AM2/1/16
to BigBlueButton-Setup

I am getting the error in the screen shot while open in browser
Error In BBB.png

Fred Dixon

unread,
Feb 1, 2016, 11:18:59 AM2/1/16
to bigbluebu...@googlegroups.com
Hi Muhammad,

OK, there isn't currently a web server listening on port 80 at 192.168.1.10.  Check the output from

  sudo bbb-conf --check

and make sure you don't see any message related to nginx not running.  If you do, try looking at the nginx log files to see why it's not successfully starting and listening to port 80.

Regards,.. Fred

On Mon, Feb 1, 2016 at 11:14 AM, Muhammad Umair <umairmuh...@gmail.com> wrote:

I am getting the error in the screen shot while open in browser

--
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.
Visit this group at https://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/d/optout.

Muhammad Umair

unread,
Feb 1, 2016, 11:49:47 AM2/1/16
to BigBlueButton-Setup

Dear Sir,
I have try 

      bbb-conf --check

it says 
/etc/sites-available/bigbluebutton (nginx)

server name :192.168.1.10
             port:80
 bbb-client dir : /var/www/bigbluebutton

but when I try bbb-conf --clean 

it gives no error except a log say
 *nginx is not working

but I tried  
 $ sudo service nginx restart
 
it wont help 
I checked 
sudo nginx -t

it says status OK and 
successfull



Fred Dixon

unread,
Feb 1, 2016, 12:22:20 PM2/1/16
to bigbluebu...@googlegroups.com
Hi Muhammad,

> it gives no error except a log say
> *nginx is not working

Yes, that would be the cause of your error :-).

>  $ sudo service nginx restart
> it wont help 

Check the nginx log files for error messages -- it will give you details on why nginx was not able to complete its startup.

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.
Visit this group at https://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/d/optout.

Muhammad Umair

unread,
Feb 8, 2016, 9:59:16 AM2/8/16
to BigBlueButton-Setup

Dear Sir,
I have applied the command
            
            cat /var/log/nginx/error.log

and its giving nothing as output
I also checked the command 
 
           cat /var/log/nginx/bigbluebutton.access.log

its giving no error but giving out

      192.168.1.10 - - [08/Feb/2016:19:56:13  +0500] "GET /bigbluebutton/api/ HTTP/1.1" 200 86  "_"  Wget/1.15 (linux/gnu)"

Muhammad Umair

unread,
Feb 8, 2016, 10:03:16 AM2/8/16
to BigBlueButton-Setup
I have noticed one more thing now when I restart the machine.  an error occurred when restart machine

Apache2 cannot start

           Address already in use: make_sock: could not bind to address 0.0.0.0:80

          apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
... waiting apache2:

Fred Dixon

unread,
Feb 8, 2016, 10:33:35 AM2/8/16
to bigbluebu...@googlegroups.com
Hi Muhammad,

> Apache2 cannot start

You should not be running Apache2 (or any other application) that binds to port 80 on your BigBlueButton server.  For reasons why, 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-s...@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.

Muhammad Umair

unread,
Feb 8, 2016, 11:16:21 AM2/8/16
to BigBlueButton-Setup

Dear Sir 
I also have noticed that var/www/bigbluebutton/client/conf/config.xml

<bwMon server="192.168.1.11" application="video/bwtest">

this is different IP as mine IP is 192.168.1.10

when I tried to change it says permission denied cannot overwrite file

Muhammad Umair

unread,
Feb 8, 2016, 11:33:39 AM2/8/16
to BigBlueButton-Setup

Dear Sir I have uninstalled the apache2 now again by running the command 

      sudo bbb-conf --clean 

I again getting error

 Cleaning log files:
 
*nginx is not running 

Fred Dixon

unread,
Feb 8, 2016, 11:53:14 AM2/8/16
to bigbluebu...@googlegroups.com
Hi Muhammad,

> *nginx is not running 

Give yourself a chance to investigate this first before posting.  Have you searched the forums for 

  nginx is not running

Google is your friend.  Try Googling for

  nginx does not start

Take a look at the search results from the above (they will give you steps on how to look at nginx log files for startup errors).

If, after going through the startup logs it's still not clear, post enough information that someone can look at the same information (and a description of what changes you made).


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.
Visit this group at https://groups.google.com/group/bigbluebutton-setup.
For more options, visit https://groups.google.com/d/optout.

Jitesh

unread,
Jun 26, 2018, 8:33:10 AM6/26/18
to BigBlueButton-Setup
I was also getting this error => Error: Could not detect FreeSWITCH listening on port 5060.

I did following and it got fixed. By the way I'm on BBB 2.0

File:  /opt/freeswitch/conf/sip_profiles/external.xml

Changed value,
<param name="wss-binding"  value="A.B.C.D:7443"/>

To,
<param name="wss-binding"  value=":7443"/>

A.B.C.D was my VPS ip. I removed it, restarted BBB with bbb-conf --restart and the error disappeared.

If this helps anyone.

Take Care.
Reply all
Reply to author
Forward
0 new messages