|Summary:||ASTERISK-04258: problem with dynamic ip-address|
|Reporter:||Dieter Ferdinand (dferdi)||Labels:|
|Date Opened:||2005-05-23 15:35:49||Date Closed:||2011-06-07 14:05:17|
there is one problem with dynamic ip-adress if asterisk register by a provider.
only at program-start and sip-reload the external-ip (i used a dyndns-name) is checked with dns.
my line will disconnect after 24 hours, so that i must check this change with a script to reload the sip-module from asterisk.
a simply way, to solve this problem, is a dns-query for every register-request or if the last dns-request was for more then 60 seconds.
i have a dns-server on the same system to speed up dns-querys and as local dns.
if asterisk make a query for every register-request, the local dns send only one query to the internet and for the liftime of the dns-entry it give answer from the cache.
this make using asterisk simple if the system is connected with a dynamic ip to the internet and the systemload is less then the check with a cron-job.
|Comments:||By: Michael Jerris (mikej) 2005-05-23 16:38:57|
dferdi, can you please verify if this is also an issue in head? There were some significant changes to how dns is managed and we have to see if that fixes this issue.
By: Russell Bryant (russell) 2005-05-23 18:03:44
This feature is not supported in the 1.0 branch of Asterisk, but you can use the 'externhost' option in CVS HEAD, and the eventual 1.2 release branch.
If you need a workaround for now, you can use a periodic sip reload, but you really should try to get a static ip.