mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-03 03:02:15 +00:00
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.
This commit is contained in:
committed by
asterisk-org-access-app[bot]
parent
7ce0d96fce
commit
67fd66e2fe
@@ -74,6 +74,8 @@ enum ast_option_flags {
|
||||
AST_OPT_FLAG_TRANSMIT_SILENCE = (1 << 17),
|
||||
/*! Suppress some warnings */
|
||||
AST_OPT_FLAG_DONT_WARN = (1 << 18),
|
||||
/*! Search custom directory for sounds first */
|
||||
AST_OPT_FLAG_SOUNDS_SEARCH_CUSTOM = (1 << 19),
|
||||
/*! Reference Debugging */
|
||||
AST_OPT_FLAG_REF_DEBUG = (1 << 20),
|
||||
/*! Always fork, even if verbose or debug settings are non-zero */
|
||||
@@ -133,6 +135,7 @@ enum ast_option_flags {
|
||||
#define ast_opt_ref_debug ast_test_flag(&ast_options, AST_OPT_FLAG_REF_DEBUG)
|
||||
#define ast_opt_generic_plc_on_equal_codecs ast_test_flag(&ast_options, AST_OPT_FLAG_GENERIC_PLC_ON_EQUAL_CODECS)
|
||||
#define ast_opt_hide_messaging_ami_events ast_test_flag(&ast_options, AST_OPT_FLAG_HIDE_MESSAGING_AMI_EVENTS)
|
||||
#define ast_opt_sounds_search_custom ast_test_flag(&ast_options, AST_OPT_FLAG_SOUNDS_SEARCH_CUSTOM)
|
||||
|
||||
/*! Maximum log level defined by PJPROJECT. */
|
||||
#define MAX_PJ_LOG_MAX_LEVEL 6
|
||||
|
Reference in New Issue
Block a user