[Home]

Summary:ASTERISK-29136: config: Sample features.conf incorrectly includes " around sound files
Reporter:Benjamin M. (devnullzero)Labels:
Date Opened:2020-10-20 12:46:53Date Closed:2020-10-27 06:28:21
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Documentation
Versions:17.7.0 Frequency of
Occurrence
Constant
Related
Issues:
Environment:Attachments:
Description:"transferretrysound" / "transferinvalidsound" require absolute paths to work.

If, as per the documentation / configuration example, only the filenames are used a warning is generated and no sound is played.

[general]
transferretrysound = "beep"
transferinvalidsound = "beeperr"

[Oct 20 13:12:46] WARNING[3190][C-00000042]: file.c:789 ast_openstream_full: File "/var/lib/asterisk/sounds/en/beep" does not exist in any format
[Oct 20 13:12:46] WARNING[3190][C-00000042]: file.c:1262 ast_streamfile: Unable to open "/var/lib/asterisk/sounds/en/beep" (format (ulaw)): No such file or directory
   -- Channel PJSIP/4030-00000072: Dialed no digits.
[Oct 20 13:12:49] WARNING[3190][C-00000042]: file.c:789 ast_openstream_full: File "/var/lib/asterisk/sounds/en/beep" does not exist in any format
[Oct 20 13:12:49] WARNING[3190][C-00000042]: file.c:1262 ast_streamfile: Unable to open "/var/lib/asterisk/sounds/en/beep" (format (ulaw)): No such file or directory
   -- Channel PJSIP/4030-00000072: Dialed no digits.
[Oct 20 13:12:52] WARNING[3190][C-00000042]: file.c:789 ast_openstream_full: File "/var/lib/asterisk/sounds/en/beeperr" does not exist in any format
[Oct 20 13:12:52] WARNING[3190][C-00000042]: file.c:1262 ast_streamfile: Unable to open "/var/lib/asterisk/sounds/en/beeperr" (format (ulaw)): No such file or directory
[Oct 20 13:12:52] WARNING[3190][C-00000042]: bridge_basic.c:3361 feature_attended_transfer: Channel PJSIP/4030-00000072: Unable to acquire target extension for attended transfer.

***

Absolute paths are working:

[general]
transferretrysound = "/var/lib/asterisk/sounds/en/beep.ulaw"
transferinvalidsound = "/var/lib/asterisk/sounds/en/beeperr.ulaw"

***

Remarks:
 - Bug was present in 15.x as well.
 - pickupsound / pickupfailsound could also be affected
Comments:By: Asterisk Team (asteriskteam) 2020-10-20 12:46:54.230-0500

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. Please note that log messages and other files should not be sent to the Sangoma Asterisk Team unless explicitly asked for. All files should be placed on this issue in a sanitized fashion as needed.

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.

Please note that by submitting data, code, or documentation to Sangoma through JIRA, you accept the Terms of Use present at [https://www.asterisk.org/terms-of-use/|https://www.asterisk.org/terms-of-use/].

By: Kris Shaw (shawkris) 2020-10-20 17:05:29.029-0500

Try removing the quote marks from the file names in the config. e.g. beep instead of "beep". I think that allows it to work without needing the full path.

By: Benjamin M. (devnullzero) 2020-10-20 19:16:57.011-0500

Kris, you are right: Removing the quote marks prevents the error. Minimally the features.conf.sample file should be fixed in that case, the lack of consistency is obvious:

;xfersound = beep               ; to indicate an attended transfer is complete
;xferfailsound = beeperr        ; to indicate a failed transfer

;transferretrysound = "beep"    ; Sound to play when a transferer fails to dial a valid extension.
;transferinvalidsound = "beeperr" ; Sound to play when a transferer fails to dial a valid extension and is out of retries.


By: Friendly Automation (friendly-automation) 2020-10-27 06:28:22.463-0500

Change 15068 merged by Friendly Automation:
features.conf.sample: Sample sound files incorrectly quoted

[https://gerrit.asterisk.org/c/asterisk/+/15068|https://gerrit.asterisk.org/c/asterisk/+/15068]

By: Friendly Automation (friendly-automation) 2020-10-27 06:28:42.917-0500

Change 15087 merged by Friendly Automation:
features.conf.sample: Sample sound files incorrectly quoted

[https://gerrit.asterisk.org/c/asterisk/+/15087|https://gerrit.asterisk.org/c/asterisk/+/15087]

By: Friendly Automation (friendly-automation) 2020-10-27 06:30:17.207-0500

Change 15086 merged by Joshua Colp:
features.conf.sample: Sample sound files incorrectly quoted

[https://gerrit.asterisk.org/c/asterisk/+/15086|https://gerrit.asterisk.org/c/asterisk/+/15086]