Hi all, Has anyone already written something which allows saving and loading the internal DB settings? All users CFWD and speeldial settings are stored in the DB in my setup which makes it a pain to restart Asterisk.... Looking at showtree in db.c (why isn't that exposed in the CLI?) It shouldn't be too difficult, but I don't want to reinvent the wheel. On the same track, I am also looking at exposing DBput & DBget to the manager interface, thus making it easy to st global stuff like nightsettings... Michiel Betel Consultancy Abelenlaan 19 T: +31 20 640 3018 1185 RT Amstelveen E: <mailto:info@betel.nl> info@betel.nl The Netherlands W: <http://www.betel.nl/> www.betel.nl Confidentiality Notice - The information contained in this e-mail is intended for the named recipient(s) only. It may contain privileged and confidential information, and if you are not the addressee or the person responsible for delivering this to the Addressee, you may not copy, distribute or take action in reliance on it. If you have received this e-mail in error, please notify us immediately by returning the original message to the sender by e-mail! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20030831/365a1eec/attachment.htm
On Sun, 31 Aug 2003, Michiel Betel wrote:> Has anyone already written something which allows saving and loading the > internal DB settings? All users CFWD and speeldial settings are stored in > the DB in my setup which makes it a pain to restart Asterisk.... > Looking at showtree in db.c (why isn't that exposed in the CLI?) It > shouldn't be too difficult, but I don't want to reinvent the wheel.Doesn't the db stuff persist on disk during reloads?> On the same track, I am also looking at exposing DBput & DBget to the > manager interface, thus making it easy to st global stuff like > nightsettings...I will be doing that if you don't get to it within the next week or so. dave -- Dave Weis "I believe there are more instances of the abridgment djweis@sjdjweis.com of the freedom of the people by gradual and silent encroachments of those in power than by violent and sudden usurpations."- James Madison
OOOPS.... Indeed! My fault... They do persist if you the system it correctly..... Sorry, Michiel -----Original Message----- From: asterisk-users-admin@lists.digium.com [mailto:asterisk-users-admin@lists.digium.com] On Behalf Of Tilghman Lesher Sent: maandag 1 september 2003 5:12 To: asterisk-users@lists.digium.com Subject: Re: [Asterisk-Users] DBSaveTree & DBLoadTree On Sunday 31 August 2003 16:49, Michiel Betel wrote:> The db entries persist on reload, on a restart (or crash...) they are > gone...Are you perhaps running Asterisk as a user other than root? Sounds like you might not have permission to write to /var/lib/asterisk/. -Tilghman _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users