NAT Issue

Hello,

I have one problem in Asterisk.

I have created one SIP extension using FreePBX.
I am using Xlite Soft phone.
My Asterisk server is on another nework and Xlite phone is on another network.

SIP Detail

[2001]
type=friend
secret=2001
record_out=Adhoc
record_in=Adhoc
qualify=yes
port=5060
pickupgroup=
nat=yes
mailbox=2001@device
host=dynamic
dtmfmode=rfc2833
disallow=
dial=SIP/2001
context=from-internal
canreinvite=no
callgroup=
callerid=device <2001>
allow=ulaw
accountcode=

I am using username 2001 and password 2001 and my asterisk server domain in my Xlite Phone configuration.

But I am not able to register it. I am getting Call Fail : Service Unavailable.

when crossing multiple networks you need to look into setting up the sip_nat.conf so that the server knows what local networks are versus non-local.

If you are traversing firewalls on these networks then it is Manditory. You’ll also need to open up firewall ports and do forwarding. Remember google.com is your friend and this is covered in hundreds of places on the net.

Also see http://www.freepbx.org/support/documentation/howtos/howto-setup-a-remote-sip-extension