[Home]

Summary:ASTERISK-09926: [patch] Allow the astdb in a userconfigurable directory
Reporter:Michiel van Baak (mvanbaak)Labels:
Date Opened:2007-07-22 14:29:24Date Closed:2007-09-24 16:47:49
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/Configuration
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 20070904__bug10267.diff.txt
( 1) astdb_dir.diff
( 2) astdbv2_dir.diff
Description:This patch introduces a new configuration variable in asterisk.conf: astdbdir
This is the directory where we want the asterisk database.

As a sidequest put the database in the correct place by default on non-linux systems. *BSD has /var/db for files like this.
Comments:By: Donny Kavanagh (donnyk) 2007-07-22 18:09:26

You may want to include in the makefile the ability to move the openbsd astdb from the old folder to the new folder if the old folder is detected, given that you are changing the default location.

By: Michiel van Baak (mvanbaak) 2007-07-23 18:40:14

I dont think we should do that. We have no idea where the user put that stuff.
We cant check every possibility of symlinks/mountpoints/whatever

Maybe I can add a warning in the makefile somewhere, but I think CHANGES is the best place to mention this. We already tell people to read that file before installing their brand new compiled tree ;)

By: Michiel van Baak (mvanbaak) 2007-08-04 13:01:05

added new patch that also states the new location in the UPGRADE.txt file.

By: Tilghman Lesher (tilghman) 2007-08-15 17:22:25

This may actually collide with Josh Colp's work, to implement a change to transition from using db1 files to sqlite.  Since db1 will likely become deprecated with that work, this patch becomes irrelevant.

By: Michiel van Baak (mvanbaak) 2007-08-15 17:30:39

not really.
I asked jcolp on #asterisk-dev and the location of the sqlite file is handled the same as the current db1 file.
If jcolp is using the same name and vars for the astdb location this patch can be used in his work.

By: Tilghman Lesher (tilghman) 2007-09-04 13:32:44

How about this, instead?  It's a little less invasive and accomplishes the same thing.

By: Michiel van Baak (mvanbaak) 2007-09-04 15:59:26

It's better then it was, but you still cannot configure it in your installed system. What if I want it in /shared/drbd1/asterisk/data/ ?
I know you can handle this with symlinks but that will make my clustered setup harder to maintain

By: Michiel van Baak (mvanbaak) 2007-09-23 05:21:59

Corydon76: can you commit this one please ?

By: Digium Subversion (svnbot) 2007-09-24 16:47:49

Repository: asterisk
Revision: 83726

------------------------------------------------------------------------
r83726 | tilghman | 2007-09-24 16:47:48 -0500 (Mon, 24 Sep 2007) | 2 lines

Permit custom locations for astdb and the keys directory (though default to the current locations) (Closes issue ASTERISK-9926)

------------------------------------------------------------------------