[asterisk-users] [FIXED] Asterisk calls between 2 private networks

Frank frank at efirehouse.com
Thu Feb 7 22:07:19 CST 2013


Got it to work tonight.

So once again this is my network:

Network A: 192.168.1.x
Network B: 192.168.1.x

In between, the internet.

Asterisk is in Network A.
1 Digium phone is in network A.
Router from network A does NAT and forward (for now):
- 5060 TCP/UDP to internal IP of asterisk
- 10k-20k TCP/UDP to internal IP of asterisk -I know TCP is not needed, 
but I will remove little by little options tomorrow, since nothing was 
working before-

Network B has 1 Digium phone, that registers to the public IP of network A.





My SIP.CONF looks like that for now:

[general]
context=unauthenticated
allowguest=no
transport=udp
dtmfmode=auto
nat=yes
localnet=192.168.1.0/255.255.255.0
externaddr=network_a_public_ip_address
directmedia=no



[100]
type=friend
context=LocalSets
host=dynamic
disallow=all
allow=ulaw
host=dynamic
secret=xxx
mailbox=100 at default


[200]
type=friend
context=LocalSets
host=dynamic
disallow=all
allow=ulaw
secret=xxx
mailbox=200 at default
nat=yes
qualify=yes
directmedia=no




I added a file rtp.conf:
[general]
rtpstart=10000
rtpend=10200



that's all folks !



More information about the asterisk-users mailing list