Freeswitch Not Listening on External IP

5,094 views
Skip to first unread message

Romeo

unread,
Jun 9, 2014, 5:39:55 AM6/9/14
to bigbluebu...@googlegroups.com
Dear BigBlueButton Friends,

For some odd reason, I cannot get Freeswitch to listen to the external IP address of our BBB Server.  I've followed the instructions outlined in this issue:
http://code.google.com/p/bigbluebutton/issues/detail?id=1133

/opt/freeswitch/conf/vars.xml

  • <X-PRE-PROCESS cmd="set" data="domain=${local_ip_v4}"/> (is already there)
  • local_ip_v4 I comment out since in the issue 1133 it says that there is no definition for local_ip_v4

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

  • <param name="rtp-ip" value="${local_ip_v4}"/>   (left unchanged)
  • <param name="sip-ip" value="${local_ip_v4}"/>   (left unchanged)
  • <param name="ext-rtp-ip" value="auto-nat"/>
  • <param name="ext-sip-ip" value="auto-nat"/>

I've also tried a dozen other combinations.  However, after rebooting bbb with bbb-conf --clean Freeswitch still binds to 127.0.0.1:5060 and does't respond to external SIP calls.

Is there anything I am missing here?

As a side note, the only workaround which works for me, is by adjusting the variable local_ip_v4 in vars.xml to our public IP and then adjusting all of the dependencies:
  • /opt/freeswitch/conf/autoload_configs/event_socket.conf.xml -> set listen-ip to external IP
  • /usr/share/red5/webapps/bigbluebutton/WEB-INF/bigbluebutton.properties -> set freeswitch.esl.host to external IP
  • /usr/share/red5/webapps/sip/WEB-INF/bigbluebuton-sip.properties -> set bbb.sip.app.ip and freeswitch.ip to external IP
The firewall (iptables) is configured to only accept TCP/UDP traffic on port 5060 from the ip addresses of our sip provider.

So far this works, Freeswitch listens on the external IP and accepts calls from our SIP provider. Except that when rebooting the server, Freeswitch doesn't start automatically.  We have to run bbb-conf --clean manually after every reboot.

Thank you for your appreciated feedback!

Kind regards,
Romeo

Romeo

unread,
Jun 9, 2014, 8:40:51 AM6/9/14
to bigbluebu...@googlegroups.com

Our server is not behind a router/firewall, it is located in a data center and directly connected to the internet, the wan IP is assigned to eth0.  Could that be causing the issues?

Richard Alam

unread,
Jun 9, 2014, 1:36:10 PM6/9/14
to bigbluebu...@googlegroups.com
On Mon, Jun 9, 2014 at 5:39 AM, Romeo <r...@its.sc> wrote:
Dear BigBlueButton Friends,

For some odd reason, I cannot get Freeswitch to listen to the external IP address of our BBB Server.  I've followed the instructions outlined in this issue:
http://code.google.com/p/bigbluebutton/issues/detail?id=1133

/opt/freeswitch/conf/vars.xml

  • <X-PRE-PROCESS cmd="set" data="domain=${local_ip_v4}"/> (is already there)
  • local_ip_v4 I comment out since in the issue 1133 it says that there is no definition for local_ip_v4

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

  • <param name="rtp-ip" value="${local_ip_v4}"/>   (left unchanged)
  • <param name="sip-ip" value="${local_ip_v4}"/>   (left unchanged)
  • <param name="ext-rtp-ip" value="auto-nat"/>
  • <param name="ext-sip-ip" value="auto-nat"/>

I've also tried a dozen other combinations.  However, after rebooting bbb with bbb-conf --clean Freeswitch still binds to 127.0.0.1:5060 and does't respond to external SIP calls.

Is there anything I am missing here?

As a side note, the only workaround which works for me, is by adjusting the variable local_ip_v4 in vars.xml to our public IP and then adjusting all of the dependencies:

That's how we do it. We assign our external IP to local_ip_v4 replacing 127.0.0.1
 
  • /opt/freeswitch/conf/autoload_configs/event_socket.conf.xml -> set listen-ip to external IP
  • /usr/share/red5/webapps/bigbluebutton/WEB-INF/bigbluebutton.properties -> set freeswitch.esl.host to external IP
You can leave this as 127.0.0.1 if your FS and BBB are on the same server.

 
  • /usr/share/red5/webapps/sip/WEB-INF/bigbluebuton-sip.properties -> set bbb.sip.app.ip and freeswitch.ip to external IP
Right, change these to use the external IP and add into you firewall to allow connection from your external IP and your VOIP provider.

Richard
 
The firewall (iptables) is configured to only accept TCP/UDP traffic on port 5060 from the ip addresses of our sip provider.

So far this works, Freeswitch listens on the external IP and accepts calls from our SIP provider. Except that when rebooting the server, Freeswitch doesn't start automatically.  We have to run bbb-conf --clean manually after every reboot.

Thank you for your appreciated feedback!

Kind regards,
Romeo

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



--
-----
BigBlueButton Developer
http://www.bigbluebutton.org
http://code.google.com/p/bigbluebutton

Romeo

unread,
Jun 9, 2014, 1:40:34 PM6/9/14
to bigbluebu...@googlegroups.com

Thanks for your confirmation Richard!   The reboot issue I resolved by setting eth0 from dhcp to static IP config.  Everything seems to work smoothly now.

Kind regards,
Romeo



On Monday, June 9, 2014 12:39:55 PM UTC+3, Romeo wrote:
Reply all
Reply to author
Forward
0 new messages