]> 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)
committerasterisk-org-access-app[bot] <120671045+asterisk-org-access-app[bot]@users.noreply.github.com>
Wed, 20 Sep 2023 19:15:07 +0000 (19:15 +0000)
commit67fd66e2fef597ef534bf3ee445aee82e7e22dcd
treea5e353cc9aa4e212576d241e43cb1dd5b1de4433
parent7ce0d96fce0be5383d15dcf55556689d17522c3d
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