Remco Barendse
2010-Jan-04 08:34 UTC
[asterisk-users] DNS reload on trunks for outgoing calls
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
Steve Howes
2010-Jan-04 14:42 UTC
[asterisk-users] DNS reload on trunks for outgoing calls
On 4 Jan 2010, at 08:34, Remco Barendse wrote:> 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 welcomeInstall a resolver locally.
Olle E. Johansson
2010-Jan-05 08:56 UTC
[asterisk-users] DNS reload on trunks for outgoing calls
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