If you're experiencing the same issue I am, there's a less painful solution than restarting asterisk.

Asterisk resolves the externip (and, I think, externhost) parameters in sip.conf at startup. If the values are a domain name registered with dyndns.org, and the IP that these domain names point at changes, then you have a problem.

It turns out that sip reload will cause it to resolve externip (for sure, and I assume externhost as well) again. So I run a cron job to do a sip reload periodically.

(Ideally, I want to trigger this job from my dyndns ip-change script, but I haven't gotten around to that yet. Doing it every 5 minutes is a bit of an ugly hack, but it works for me.)

HTH.
john

Branko Samardzic wrote:
That's fine. But there is, obviously, situations where such situation is not
welcome. Is it possible to force Asterisk to refresh cache every in a while.
Regards,
Branko

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to