Cool I love it! Instead of a WAN Delay which is very changeable, it waits until connectivity is established with a max delay of 2 minutes. Looks like the wonderful ping responder of 8.8.8.8 will be the test IP (. If this is indeed the problem then I think this may just be the fix.
Regards Michael Knill -----Original Message----- From: Lonnie Abelbeck <li...@lonnie.abelbeck.com> Reply-To: AstLinux List <astlinux-users@lists.sourceforge.net> Date: Tuesday, 19 September 2017 at 11:02 am To: AstLinux List <astlinux-users@lists.sourceforge.net> Subject: Re: [Astlinux-users] Power outages and SIP Trunks Hi Michael, I'm not sure if this will help, but here is a rc.elocal script that waits until a target host can be pinged ... Startup delay using /mnt/kd/rc.elocal https://gist.github.com/abelbeck/5f2b6e0c23ffc0394826cd4681a35879 Make the file executable, test in your lab, ideally change the IPv4 address to your SIP provider or such. Note you can't use DNS names since the resolver is not configured at this point. Probably disable WANDELAY when using this. Lonnie On Sep 17, 2017, at 5:55 PM, Michael Knill <michael.kn...@ipcsolutions.com.au> wrote: > Hi All > > Im starting to see a number of issues on my SIP Trunks when there is a power > outage at the site. I assume the issues is when both the modem and Astlinux > appliance are power reset, if the modem does not come up as fast as Astlinux, > the PPPoE interface will not be available for Asterisk and for some reason > the SIP Trunk stays down until you do a reload. > > Yes there is a WAN delay parameter for this but is there something else I can > do to make this a bit more robust? > Does anyone know what actually causes this? Why does it not keep trying? Does > it just give up when there is no route? > Should I maybe have a static default route with a high metric pointing to > null or something else? > > Regards > Michael Knill ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Astlinux-users mailing list Astlinux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/astlinux-users Donations to support AstLinux are graciously accepted via PayPal to pay...@krisk.org. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Astlinux-users mailing list Astlinux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/astlinux-users Donations to support AstLinux are graciously accepted via PayPal to pay...@krisk.org.