Thanks Paul. The following works.. ----------------------------------cli.conf ------------------------------------------------------- [startup_commands] ; ; Any commands listed in this section will get automatically executed ; when Asterisk starts as a daemon or foreground process (-c). ; ;sip set debug on = yes ;core set verbose 3 = yes ;core set debug 1 = yes
database deltree example = yes ----------------------------------------------------------------------------------------------- Matt > Date: Mon, 21 Nov 2011 16:33:47 -0500 > From: [email protected] > To: [email protected] > Subject: Re: [asterisk-users] Deleting AstDB family at start > > On 11-11-21 03:46 PM, Steve Edwards wrote: > > On Sun, 20 Nov 2011, Matt Hamilton wrote: > > > >> Is it possible to delete the keys belonging to a family in AstDB at > >> Asterisk startup? I would like to repopulate it from another source > >> each time Asterisk is restarted. > > > > How about: > > > > [sudo] /usr/sbin/asterisk -r -x 'database deltree example' > > > > in /etc/init.d/asterisk or safe_asterisk? > > > Easier to use cli.conf > > -- > Paul Belanger > Digium, Inc. | Software Developer > twitter: pabelanger | IRC: pabelanger (Freenode) > Check us out at: http://digium.com & http://asterisk.org >
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
