[asterisk-users] Cannot change astdatadir?

Joshua C. Colp jcolp at digium.com
Tue Mar 5 07:13:58 CST 2019

On Mon, Mar 4, 2019, at 12:10 PM, Michael Munger wrote:
> I’ve installed asterisk from the debian repo, but, despite changing 
> `astdatadir` in asterisk.conf, it insists on using 
> `/usr/share/asterisk` instead of `/var/lib/asterisk`, which creates 
> user permission problems since it’s running as the user `asterisk`. The 
> Record() application instantly fails due to permissions problems.
> Instead of giving the asterisk user read / write permissions for 
> /usr/share/asterisk, I was trying to change it to /var/lib/asterisk/, 
> but it continuously ignores my changes.
> Is this a Debian issue or am I changing the wrong thing in 
> asterisk.conf? (I normally compile from source, which uses 
> /var/lib/asterisk by default. First time using a repo package)

Did you change the configuration section in asterisk.conf to not be a template? The (!) has to be removed from the end of [directories] or else it won't take effect.

Joshua C. Colp
Digium - A Sangoma Company | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org

More information about the asterisk-users mailing list