[asterisk-users] Asterisk and NAT ?

Noc Phibee noc at phibee.net
Thu Sep 7 10:46:33 MST 2006


yusuf a écrit :
>
> Hi,
>
> you dont have to/should'nt be using different SIP ports for each 
> phone.  Its completely not needed.  Also, you dont have/need to port 
> forward.  Just open ports 5060 and 1000-20000, on the box that 
> asterisk is running, and on your NAT router. Dont port forward.
>
> Then in sip.conf
>
>
>  [202]
>  username=202
>  secret=X
>  type=friend
>  host=dynamic
>  disallow=all
>  allow=g729
>  allow=alaw
>  allow=ulaw
>  context=interne
>  nat=yes
>  canreinvite=no   
>
>
>  [200]
>  username=200
>  secret=X
>  type=friend
>  host=dynamic
>  disallow=all
>  allow=g729
>  allow=alaw
>  allow=ulaw
>  context=interne
>  nat=yes
>  canreinvite=no   
>
>
> then restart linksys and thomson, and you will see that they both 
> register on asterisk cli.  Now you will be able to call/receive on both.
>



Thanks for your answer, but if i don't put a port forward, i have :

200/200                    83.167.122.119   D   N      5060     UNREACHABLE

On the thomson, i have "SIP Unregister", it's a important option  ?

Thanks bye




More information about the asterisk-users mailing list