How to forward to Asterisk

General discussions about AsteriskNOW.

Moderators: Moderator, Support

How to forward to Asterisk

Postby Almatrodi » Thu Oct 02, 2008 2:17 am

Hi

I installed Asterisk@Now and it is working fine inisde my network. But I need to know how to log on from outside through Internet.
I have Asterisk server connected to internet.
I tried to forward port 5060 and 8000 to 8005 to Asterisk server. But did not work when I tried to connect to it with X-Lite.

Thanks
Almatrodi
Newsterisk
 
Posts: 6
Joined: Sat Apr 15, 2006 1:23 pm

Postby Almatrodi » Fri Oct 03, 2008 2:13 am

is it that difficult? or i did not explain it well?
Almatrodi
Newsterisk
 
Posts: 6
Joined: Sat Apr 15, 2006 1:23 pm

Postby Almatrodi » Tue Oct 07, 2008 6:49 am

Hi ppl!.
Almatrodi
Newsterisk
 
Posts: 6
Joined: Sat Apr 15, 2006 1:23 pm

Postby bkruse » Wed Oct 15, 2008 3:01 pm

Forward 5060 and 10000-20000 (unless you restrict your rtp ports)

-bk
bkruse
Site Admin
 
Posts: 878
Joined: Mon Dec 04, 2006 3:20 pm
Location: Huntsville, Alabama

Postby leemason » Sat Nov 08, 2008 5:52 am

bkruse is correct. You need to allow traffic though your router on port 5060 (assuming that you use this port of SIP signalling) and the rtp ports that you use. Have a look in /etc/asterisk/rtp.conf to find the port range for RTP. Also any extension that you logon to externally will have to be set to NAT=YES. In addition you will need to tell Asterisk what the real external IP address of you router is an what the IP address range of your internal LAN is by putting the following into your sip.conf file:

nat=1
externip=xxx.xxx.xxx.xxx (external Internet address of router)
localnet=xxx.xxx.xxx.xxx/yyy.yyy.yyy.yyy (where the first part is the subnet and the second is the address mask i.e. 192.168.1.0/255.255.255.0).
leemason
Oldsterisk
 
Posts: 384
Joined: Fri Jan 06, 2006 8:34 am
Location: London, UK


Return to AsteriskNOW General

Who is online

Users browsing this forum: No registered users and 1 guest