]> git.ipfire.org Git - thirdparty/asterisk.git/commit
file.c: Add ability to search custom dir for sounds
authorGeorge Joseph <gjoseph@sangoma.com>
Mon, 11 Sep 2023 14:27:41 +0000 (08:27 -0600)
committerGeorge Joseph <gjoseph@sangoma.com>
Wed, 20 Sep 2023 19:14:50 +0000 (19:14 +0000)
commitc8a97d5f8c358842f1e219003d12147823aac780
tree0c10e929b817b6b0379119abe898a311a7bf1c37
parent201d554b4e98764f95de4ccdab824c3ce3ce308d
file.c: Add ability to search custom dir for sounds

To better co-exist with sounds files that may be managed by
packages, custom sound files may now be placed in
AST_DATA_DIR/sounds/custom instead of the standard
AST_DATA_DIR/sounds/<lang> directory.  If the new
"sounds_search_custom_dir" option in asterisk.conf is set
to "true", asterisk will search the custom directory for sounds
files before searching the standard directory.  For performance
reasons, the "sounds_search_custom_dir" defaults to "false".

Resolves: #315

UserNote: A new option "sounds_search_custom_dir" has been added to
asterisk.conf that allows asterisk to search
AST_DATA_DIR/sounds/custom for sounds files before searching the
standard AST_DATA_DIR/sounds/<lang> directory.
configs/samples/asterisk.conf.sample
include/asterisk/options.h
main/asterisk.c
main/file.c
main/manager.c
main/options.c