[asterisk-users] Problems with 2 Asterisk servers on same LAN
Gordon Henderson
gordon+asterisk at drogon.net
Sun Sep 7 02:38:11 CDT 2008
On Sat, 6 Sep 2008, hugolivude wrote:
> OS = CentOS 5
> Asterisk = 1.4.21
> Router = WhiteRussian 0.9
>
> Not sure whether I have a problem w/ Asterisk or White Russian config,
> so I'm posting to both lists.
>
> I have 2 Asterisk servers running behind a Linux router w/ White
> Russian. I'm having a lot of trouble with REGISTER. The servers are
> set up this way:
>
> 192.168.2.160, SIP 5060, RTP 10000-20000
> 192.168.2.170, SIP 5070 RTP 21000-25000
>
> On the 192.168.2.170 server I set rtp.conf, with the 21000-25000 ports
> and I set bindport=5070 in sip.conf.
>
> I _think_ I have the ports forwarded correctly on my router. I set
> DESTINATION ports for the SIP & RTP ports above such that ports 5060 &
> 10000-20000 go to 192.168.2.160 while ports 5070 & 21000-25000 got to
> 192.168.2.170. Frankly I find the Firewall GUI a little unintuitive ?
> here's what /etc/config/firewall looks like:
>
> forward:proto=udp dport=5060:192.168.2.160
> forward:proto=udp dport=10000-20000:192.168.2.160
>
> forward:proto=udp dport=5070:192.168.2.170
> forward:proto=udp dport=20001-25000:192.168.2.170
>
> This doesn't work though. I cannot get DIDs on the 192.168.2.170 to
> register. Ethereal indicates that the message gets sent and the
> server responds. The server seems to be responding on the right port
> 5070, but it gets a 401 from (one of) my machine(s)!
>
> Here's the weirdest part for me. While trouble shooting, I tried port
> forwarding everything to 192.168.2.170:
>
> forward:proto=udp dport=5060:192.168.2.170
> forward:proto=udp dport=10000-20000:192.168.2.170
>
> forward:proto=udp dport=5070:192.168.2.170
> forward:proto=udp dport=20001-25000:192.168.2.170
>
> The DiDs on 192.168.2.170 still don't register, but the one on
> 192.168.2.160 continues to work. How's that possible if the ports
> aren't forwarding there?!!
Do the remote devices know to contact you on port 5070 rather than the
default of 5060?
Gordon
More information about the asterisk-users
mailing list