> > Sometimes the internet connection is dropped and asterisk doesn't do a dns > > lookup and provider re-rest quickly enough so all calls are going out via > > expensive ISDN. > > So detect a connection change and then restart, by the way of 'asterisk > -rx restart now' (or 'restart when convinient', depending on whether you > care about local calls or remote calls). Assuming a restart is really > needed, rather than a reload. > > A simple nightly restart means that on the avarage you'll be half a day > too late. > > How can you detect that both (a) DNS lookup failed with Asterisk and (b) > DNS lookup is already OK elsewhere?
I don't but asterisk is a little impatient resolving server names. Even when the box is rebooting and someone is trying to dial out when asterisk has just started the resolve will be too slow and all calls will go out via PSTN. I wish I could force asterisk to keep trying to resolve every 5 minutes or so. > > I don't think so, asterisk -r will throw me an error that * is not > > running. If * would be running I would get console I guess? > > Maybe asterisk is in some sort of restart loop? I'll do some further testing over the weekend, for some reason i cannot immediately remember i prefer to do that outside business hours :) Thanks!! _______________________________________________ --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
