[Asterisk-Users] Dynamic DNS causes problems

Christoph Rothe asterisk-users at christophrothe.de
Thu Nov 4 13:42:57 MST 2004


On Thu, 4 Nov 2004, Seth Remington wrote:

> > The only remaining problem comes from the fact that I have an ADSL
> > connection at my home and the pppoe changes my IP address every once in
> > a while.  I have set my sip.conf 'host=' command up with a dyndns
> > hostname and everything works when I start *.  The moment the IP address
[...]

> > As an ugly hack, I am tempted to have a cron job check for changes in
> > the ip address and restart *.  The problem with this (or one of them) is
> > that I have to somehow make sure that it isn't in the middle of a phone
> > call when it does this.  Is there a more elegant way of doing this?
> 
> I'm not sure about more elegant, but...
> 
> Have your cron job issue an "asterisk -rx 'restart when convenient'"
> command instead of a hard restart. That will wait until there are no
> active channels to restart. Also, issuing a 'sip reload' instead of
> restarting * is probably sufficient to re-register with Broadvoice.

Unfortunately not. I have the same problem and the same solution here. 
You really have to do a restart of asterisk. I think the reason that 
asterisk does not always lookup the IP Adress for the DDNS-Hostname is 
performance. But it would be nice if a sip reload could do so. 
Has anybody contacts to the developers ;-) ?

Christoph
 



More information about the asterisk-users mailing list