[Asterisk-Users] NAT and SIP.conf update.

Jens Vagelpohl jens at dataflake.org
Tue Sep 13 01:35:28 MST 2005


> I've found a novel work-a-round:  I have a server on the Internet  
> in a data centre that maps a real static address to the dynamic IP  
> address of the computer connected via. the ISP.  I've got a script  
> that runs on the client ISP connected machine (its running Linux an  
> the script is in the ppp-up.d directory so runs automatically  
> everytime the pc reconnects and gets a new dynamic IP) - this  
> client script (perl) talks to the server daemon (also perl) and  
> then the data centre server re-maps the static IP to the dynamic IP  
> - it redirects (using socat - excellent software!) to redirect the  
> IAX2 port and the RTP ports between the IP addresses so that the  
> normally dynamic IP addressed asterisk server now always has a real  
> live static IP address.
>
> This solution is working very well between two remote offices  
> passing calls between the central data server computer.
>
> I wonder would this solution help many people? I now couldn't live  
> without it. If other people are interested I could have a little  
> business renting people static mapped IP addresses.

Who needs that when there's dyndns and similar free services which  
are even supported by many routers? I have a dyndns hostname and my  
router is configured to contact the dyndns site whenever the IP on  
the public side changes. Works very well for my Asterisk setup at home.

jens




More information about the asterisk-users mailing list