net.bind.interface problem with Multi-tenant

Discuss any topic about Brekeke PBX.

Moderator: Brekeke Support Team

Post Reply
abhoffmann
Posts: 12
Joined: Wed Feb 09, 2011 2:01 pm
Location: Montreal

net.bind.interface problem with Multi-tenant

Post by abhoffmann »

1. Brekeke Product Name and version: Brekeke PBX, Version 2.4.9.0 , Multi-Tenant

2. Java version: 1.6.0_14

3. OS type and the version: Linux/Cent OS 5.5

4. UA (phone), gateway or other hardware/software involved: Asterisk

5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/ ... terns.html : Pattern 5

6. Your problem:

Our server has 5 different IPs, I would like to bind the SIP server to only one of those IPs.

When I set: net.bind.interface=(my IP) and restart Brekeke, next time I log-in it shows the SIP server as stopped, BUT,
at the same time, netstat -lptu shows it listening to the right interface and in logs it shows as started normally.

I tried at Brekeke PBX Configuration to set SIP Proxy address to the binded IP (and not 127.0.0.1 as it was), but didn't work.

Any ideas why this happens? Has this anything to do with the Multi-Tenant version?

Thanks.
Harold
Posts: 289
Joined: Sun Sep 21, 2008 10:31 pm
Location: Japan

Post by Harold »

You also need to set "net.net1.interface" and "net.net1.interface-restrict" variables.

Follow the this wiki page.
http://wiki.brekeke.com/wiki/Bind-Breke ... IP-address
abhoffmann
Posts: 12
Joined: Wed Feb 09, 2011 2:01 pm
Location: Montreal

no change

Post by abhoffmann »

It happens the same thing.
SIP Server loads and is binded to the right interface but at the web-interface it says:
Status Inactive
Interface 0.0.0.0
Listen-Port 0


I'm guessing the web-interface is trying to connect to 127.0.0.1 like that and is not able to.

Here is the configuration I set at the SIP Server:
## Network
net.bind.interface=184.107.164.178
net.net1.interface=184.107.164.178
net.net1.interface-restrict=184.107.164.179
net.net2.interface-restrict=184.107.164.180
net.net3.interface-restrict=184.107.164.181
net.net4.interface-restrict=184.107.164.182
net.net5.interface-restrict=10.224.126.130

At the PBX I set:
SIP Proxy address: 184.107.164.178
Harold
Posts: 289
Joined: Sun Sep 21, 2008 10:31 pm
Location: Japan

Post by Harold »

Did you set these variables in the "sv.properties" file?

The [Configuration]>[Advanced] page can not manage the BIND correctly.
so you should modify the "sv.properties" file.
abhoffmann
Posts: 12
Joined: Wed Feb 09, 2011 2:01 pm
Location: Montreal

Works!

Post by abhoffmann »

Thank you. It works.
I didn't consider that could be a difference between setting it at "[Configuration]>[Advanced]" and "sv.properties".
Thanks again.
Harold
Posts: 289
Joined: Sun Sep 21, 2008 10:31 pm
Location: Japan

Post by Harold »

Nice :-)

The BIND setting must be initialized before the GUI (the web-interface) starts.

That's why [Advanced] setting doesn't effect to the GUI.
Post Reply