[Asterisk-code-review] res_musiconhold: Clarify that playlist mode only supports HTTP(S) URLs (asterisk[16])

Sean Bright asteriskteam at digium.com
Thu Sep 24 11:48:59 CDT 2020


Sean Bright has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/14938 )


Change subject: res_musiconhold: Clarify that playlist mode only supports HTTP(S) URLs
......................................................................

res_musiconhold: Clarify that playlist mode only supports HTTP(S) URLs

Change-Id: I41e77a04e4a523f4ed61a7a20b738ffd42be441e
---
M configs/samples/musiconhold.conf.sample
M res/res_musiconhold.c
2 files changed, 3 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/38/14938/1

diff --git a/configs/samples/musiconhold.conf.sample b/configs/samples/musiconhold.conf.sample
index 1090bbe..2f60108 100644
--- a/configs/samples/musiconhold.conf.sample
+++ b/configs/samples/musiconhold.conf.sample
@@ -13,7 +13,7 @@
 ; valid mode options:
 ; files		-- read files from a directory in any Asterisk supported
 ;		   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
 ; mp3 		-- loud
 ; mp3nb		-- unbuffered
@@ -56,7 +56,7 @@
 ; Each entry must be one of:
 ;
 ;   * 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
 ; configuration. The 'sort' option is not used for this mode.
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index 46bc4b9..8d1ab2a 100644
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -1144,7 +1144,7 @@
 
 				AST_VECTOR_APPEND(playlist_entries, dup);
 			} 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")) {
 			ast_copy_string(mohclass->dir, var->value, sizeof(mohclass->dir));

-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/14938
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: I41e77a04e4a523f4ed61a7a20b738ffd42be441e
Gerrit-Change-Number: 14938
Gerrit-PatchSet: 1
Gerrit-Owner: Sean Bright <sean.bright at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200924/d42b1c24/attachment.html>


More information about the asterisk-code-review mailing list