Here is the my config to allow X-Lite outside network to connect asterisk server behind NAT:
sip.conf
externip = external_ip
[xlite]
;Turn off silence suppression in X-Lite ("Transmit Silence"=YES)!
;Note that Xlite sends NAT keep-alive packets, so qualify=yes is not needed
type=friend
regexten=401 ; When they register, create extension 401
username=xlite
secret=password
context=default
callerid="Vincent Li" <401>
host=dynamic
nat=no ; X-Lite is behind a NAT router
canreinvite=yes ; Typically set to NO if behind NAT
disallow=all
allow=ulaw
allow=gsm ; GSM consumes far less bandwidth than ulaw
mailbox=401@default
Then port forwarding sip controling 5060 and rtp port range 8000-20000 from my linksys router to my internal asterisk server
also see http://www.voip-info.org/wiki-Asterisk+ ... +solutions
sip.conf
externip = external_ip
[xlite]
;Turn off silence suppression in X-Lite ("Transmit Silence"=YES)!
;Note that Xlite sends NAT keep-alive packets, so qualify=yes is not needed
type=friend
regexten=401 ; When they register, create extension 401
username=xlite
secret=password
context=default
callerid="Vincent Li" <401>
host=dynamic
nat=no ; X-Lite is behind a NAT router
canreinvite=yes ; Typically set to NO if behind NAT
disallow=all
allow=ulaw
allow=gsm ; GSM consumes far less bandwidth than ulaw
mailbox=401@default
Then port forwarding sip controling 5060 and rtp port range 8000-20000 from my linksys router to my internal asterisk server
also see http://www.voip-info.org/wiki-Asterisk+ ... +solutions