]> 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:58 +0000 (19:14 +0000)
commit0e0f99db1d62b7642a51d2552256eece5d435bc8
treed7b19c10661a9fe3068ae6be7b6fa128ecc12bcf
parentf93138bcad6f8f43611d210714d79cef4cefd75a
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