[asterisk-users] astdbdir in asterisk.conf has no effect

Joshua C. Colp jcolp at sangoma.com
Thu Oct 29 13:10:13 CDT 2020


On Thu, Oct 29, 2020 at 3:05 PM Jeff Pyle <jeff at ugnd.org> wrote:

> Hello,
>
> On Asterisk 13.19 I'm trying to set astdbdir in /etc/asterisk.conf, but
> it's not having any effect.  For example:
>
> # grep astdbdir /etc/asterisk/asterisk.conf
> astdbdir => /tmp/asterisk
>
> /tmp/asterisk exists and is owned by asterisk:asterisk, as the asterisk
> processing is running as asterisk:asterisk with the config file forced:
>
> # ps aux | grep asterisk
> asterisk  3389 13.1  3.5 4295146504 214004 ?   S<sl 13:56   0:24
> /usr/sbin/asterisk -mqC /etc/asterisk/asterisk.conf
>
> Yet it's still running in the old place:
>
> # lsof -n | grep astdb.sqlite | awk '{print $11}' | sort | uniq
> /var/lib/asterisk/astdb.sqlite3
>
> I see default.h defines the path with the astdb:
>   #define DEFAULT_DB         "/var/lib/asterisk/astdb"
> so I tried astdbdir => /tmp/asterisk/astdb, but no change.  It's still
> running in /var/lib/asterisk.
>
> I feel like I'm missing something.  Any suggestions?
>

Have you removed the (!) beside [ general] in asterisk.conf?

-- 
Joshua C. Colp
Asterisk Technical Lead
Sangoma Technologies
Check us out at www.sangoma.com and www.asterisk.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20201029/bdbc4be9/attachment.html>


More information about the asterisk-users mailing list