[asterisk-users] Sound through NAT issue

Gordon Henderson gordon+asterisk at drogon.net
Thu Jul 30 11:29:13 CDT 2009


On Thu, 30 Jul 2009, Paulo Santos wrote:

> Hello everyone,
>
> I'm having a hard time configuring my router to forward asterisk traffic
> correctly. I have the following ports being forwarded to asterisk:
>
> 5060, 10000-20000
>
> Now, I can register the accounts when outside the network and I can call
> every extension that is inside the network. The problem is that I can't
> ear anything nor can the phones inside the network phone the outside phone.
>
> Is there any port I'm forgetting to forward?

I don't think so, but have you tried

   nat=yes
   externip=w.x.y.z
   localnet=q.w.e.r/m.a.s.k

in sip.conf ?

(Where w.x.y.z is your external IP address, and q.w.e.r/m.a.s.k is the 
network and netmask of your internal network - e.g. 
192.168.1.0/255.255.255.0 or whtever your LAN is using)

Gordon



More information about the asterisk-users mailing list