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@default


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




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



that's all folks !

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to