Hi Michael, Great it works for you. Thanks for the feedback.
If "a little annoying during build" means while testing when no internet connection, you could define your own variable, ex. IPCSOLUTIONS_TARGET_HOST Updated script by sourcing /etc/rc.conf and using IPCSOLUTIONS_TARGET_HOST if it is defined: https://gist.github.com/abelbeck/5f2b6e0c23ffc0394826cd4681a35879 In this case if IPCSOLUTIONS_TARGET_HOST is not defined, the value 8.8.4.4 (or whatever you set as the default) will be used. During setup you could define in your /mnt/kd/rc.conf.d/users.conf file to point to localhost or some internal IP address -- IPCSOLUTIONS_TARGET_HOST="127.0.0.1" -- Track revisions here: (missed a dollar-sign in revision #2) Click "View" for any revision. https://gist.github.com/abelbeck/5f2b6e0c23ffc0394826cd4681a35879/revisions OR, just add the rc.elocal script as the last step in your build, OR leave the "chmod 755 /mnt/kd/rc.elocal" to the very end or push to install time. Lonnie On Sep 21, 2017, at 7:05 PM, Michael Knill <michael.kn...@ipcsolutions.com.au> wrote: > Thanks Lonnie this script works perfectly. > Its going to be a little annoying during build but its worth it! > > 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. > > ------------------------------------------------------------------------------ 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.