[asterisk-users] DNS reload on trunks for outgoing calls

Olle E. Johansson oej at edvina.net
Tue Jan 5 02:56:49 CST 2010


4 jan 2010 kl. 09.34 skrev Remco Barendse:

> Is there any fix or workaround for the DNS problem (old standing bug that 
> when the box starts and domain names do not resolve quickly enough from 
> DNS then asterisk stops using the outgoing trunks.
> 
> I read on the list before that it is considered a huge and unacceptable 
> load for asterisk servers to try and resolve the domain names again 
> after some time but it is rather annoying. I don't know about 
> resources of other people but on my boxes i have some cpu cycles that 
> could be used for that :)
> 
> I now do nightly restarts of asterisk but it still means that at least for 
> one day calls are flowing through expensive PSTN.
> 
> If anybody knows of a workaround, would be most welcome
> 
The real fix is to change Asterisk to use an asynchronus DNS library, like C-ARES, so we don't lock when these issues happen. A few years ago I tried to get funding for fixing it, but it seemed like it was not a critical issue enough...

Note that Kamailio/OpenSER still has the same issue. Use a local DNS resolver to avoid the issue.

Regards,
/O




More information about the asterisk-users mailing list