[asterisk-users] Deleting AstDB family at start

Matt Hamilton mistral9999 at hotmail.com
Mon Nov 21 20:28:47 CST 2011


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: pabelanger at digium.com
> To: asterisk-users at lists.digium.com
> 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
> 

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20111121/4c13b53b/attachment.htm>


More information about the asterisk-users mailing list