]> 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 Development Team <asteriskteam@digium.com>
Fri, 12 Jan 2024 18:21:32 +0000 (18:21 +0000)
commit0cde4e7216c64dabdc00f2ecf8dce72b7ef3cb6b
treed93f884975d1553358fc43ab848f53b3525e552d
parent59bc6ceb61cacd4f751b0c6b44c28277e6251298
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.

(cherry picked from commit c8a97d5f8c358842f1e219003d12147823aac780)
configs/samples/asterisk.conf.sample
include/asterisk/options.h
main/asterisk.c
main/file.c
main/manager.c
main/options.c