[asterisk-users] Asterisk calls between 2 private networks

A J Stiles asterisk_list at earthshod.co.uk
Thu Feb 7 09:46:24 CST 2013


On Thursday 07 February 2013, Frank wrote:
> My apologies if this topic was already discussed in the past.
> 
> Here is my scenario:
> Network A - 192.168.1.0
> 1 Asterisk
> 1 Digium phone
> Router does NAT from the public IP to asterisk, and forward ports
> 5060tcp/udp and 10k-20k udp
> 
> Network B - 192.168.1.0
> 1 Digium phone, registering to the public IP of network A
> 
> 
> My SIP.CONF has:
> nat=yes
> localnet=192.168.1.0/255.255.255.0
> externaddr=public_ip_of_network_a
> directmedia=no

My  (lazy)  solution to this problem was to throw hardware at it .....

Bearing in mind that Asterisk will run on just about any old scrapper  (or 
even a Raspberry Pi, if you feel so inclined),  there's little point even 
trying to send SIP over the Internet.  Just have an Asterisk box at each end, 
and then you only need a much simpler-to-configure IAX trunk between the two.  
The routers at each end then just need one port -- UDP 4569 -- forwarded to 
the Asterisk box  (if it isn't configured as the default DMZ machine).


-- 
AJS

Answers come *after* questions.



More information about the asterisk-users mailing list