mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
res_musiconhold: Clarify that playlist mode only supports HTTP(S) URLs
Change-Id: I41e77a04e4a523f4ed61a7a20b738ffd42be441e
This commit is contained in:
committed by
Friendly Automation
parent
cba132a797
commit
fccf360fcb
@@ -13,7 +13,7 @@
|
|||||||
; valid mode options:
|
; valid mode options:
|
||||||
; files -- read files from a directory in any Asterisk supported
|
; files -- read files from a directory in any Asterisk supported
|
||||||
; media format
|
; media format
|
||||||
; playlist -- provide a fixed list of filenames or URLs to play
|
; playlist -- provide a fixed list of filenames or HTTP(S) URLs to play
|
||||||
; quietmp3 -- default
|
; quietmp3 -- default
|
||||||
; mp3 -- loud
|
; mp3 -- loud
|
||||||
; mp3nb -- unbuffered
|
; mp3nb -- unbuffered
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
; Each entry must be one of:
|
; Each entry must be one of:
|
||||||
;
|
;
|
||||||
; * An absolute path to the file to be played, without an extension.
|
; * An absolute path to the file to be played, without an extension.
|
||||||
; * A URL
|
; * An HTTP(S) URL
|
||||||
;
|
;
|
||||||
; The entries are played in the order in which they appear in the
|
; The entries are played in the order in which they appear in the
|
||||||
; configuration. The 'sort' option is not used for this mode.
|
; configuration. The 'sort' option is not used for this mode.
|
||||||
|
@@ -1144,7 +1144,7 @@ static void moh_parse_options(struct ast_variable *var, struct mohclass *mohclas
|
|||||||
|
|
||||||
AST_VECTOR_APPEND(playlist_entries, dup);
|
AST_VECTOR_APPEND(playlist_entries, dup);
|
||||||
} else {
|
} else {
|
||||||
ast_log(LOG_ERROR, "Playlist entries must be a URL or absolute path, '%s' provided.\n", var->value);
|
ast_log(LOG_ERROR, "Playlist entries must be an HTTP(S) URL or absolute path, '%s' provided.\n", var->value);
|
||||||
}
|
}
|
||||||
} else if (!strcasecmp(var->name, "directory")) {
|
} else if (!strcasecmp(var->name, "directory")) {
|
||||||
ast_copy_string(mohclass->dir, var->value, sizeof(mohclass->dir));
|
ast_copy_string(mohclass->dir, var->value, sizeof(mohclass->dir));
|
||||||
|
Reference in New Issue
Block a user