[Home]

Summary:ASTERISK-28670: astspooldir setting in asterisk.conf isn't configurable
Reporter:Robin Leffmann (robleff)Labels:
Date Opened:2019-12-27 10:06:34.000-0600Date Closed:2019-12-27 11:10:23.000-0600
Priority:MinorRegression?
Status:Closed/CompleteComponents:PBX/pbx_spool
Versions:16.7.0 Frequency of
Occurrence
Constant
Related
Issues:
Environment:Linux 4.19.0-6-arm64 #1 SMP Debian 4.19.67-2+deb10u2 (2019-11-11) aarch64 GNU/Linux (Pine64 single-board computer)Attachments:
Description:While experimenting with using a RAM disk file system for the outgoing spool (to reduce writes to slow SD-card backed file system) I found that a change of the {{astspooldir}} setting in {{asterisk.conf}} is silently ignored by Asterisk, which will still use the {{/var/spool/asterisk}} default path despite it not being mentioned anywhere in the config files.

{code:title=asterisk.conf}
[directories](!)
...
astspooldir => /ramdisk/asterisk
...
{code}

The alternative spool path's file system is a basic tmpfs setup:

{code:title=/etc/fstab}
tmpfs    /ramdisk    tmpfs    rw,nodev,nosuid,size=250M    0    2
{code}

The directory tree, ownership and permissions of and within the /ramdisk path are all in order, and is identical to what's in var-spool-asterisk. Dropping call files into the new outgoing spool, {{/ramdisk/asterisk/outgoing/}}, obviously does nothing, as Asterisk is unaware of the path despite being reconfigured.
Comments:By: Asterisk Team (asteriskteam) 2019-12-27 10:06:35.595-0600

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

Please note that once your issue enters an open state it has been accepted. As Asterisk is an open source project there is no guarantee or timeframe on when your issue will be looked into. If you need expedient resolution you will need to find and pay a suitable developer. Asking for an update on your issue will not yield any progress on it and will not result in a response. All updates are posted to the issue when they occur.

By: Sean Bright (seanbright) 2019-12-27 10:30:34.206-0600

{{\[directories]\(!)}} is template syntax (I know it's in the default {{asterisk.conf}} file that way). I believe you have to remove the {{\(!)}} part for Asterisk to actually use those values.

By: Robin Leffmann (robleff) 2019-12-27 11:09:39.174-0600

D'oh, of course, the whole stanza is just a template. I didn't even pay attention to that. All is fine, will close issue :)