I have a build of Asterisk on a PC Engine’s ALIX board using FreeBSD. It is all good, apart from the location of the AstDB. I see in version 10 it has changed from Berkley to SQLite, and this is a good thing in my view.
When I try to start Asterisk it errors saying it cannot find “/var/db/asterisk/astdb.sqlite3”. If I create the directory “/var/db/asterisk” then it all works. But… my /var is on a memory file system and I do not want the astdb there. I have a USB pen drive mounted and have a directory created on it at “/mnt/kd/var/db/asterisk”. I have edited the asterisk.conf line to show…
astdbdir => “/mnt/kd/var/db/asterisk”
… but Asterisk just doesn’t seem to care, it still works with “/var/db/asterisk” only. Is this hardcoded in to Asterisk and can it indeed be changed?