<p>Friendly Automation <strong>submitted</strong> this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/15371">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Sean Bright: Looks good to me, but someone else must approve
  Joshua Colp: Looks good to me, but someone else must approve
  George Joseph: Looks good to me, approved
  Friendly Automation: Approved for Submit

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_musiconhold: Add support of various URL-schemes by MoH.<br><br>Provided a support of variuos URL-schemes for res_musiconhold,<br>registered by ast_bucket_scheme_register().<br><br>ASTERISK-29262 #close<br><br>Change-Id: If0ea8697587353dce358a70035d82649fd4632b6<br>---<br>M res/res_musiconhold.c<br>1 file changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c</span><br><span>index 8ac3b92..736ddc6 100644</span><br><span>--- a/res/res_musiconhold.c</span><br><span>+++ b/res/res_musiconhold.c</span><br><span>@@ -1118,7 +1118,7 @@</span><br><span>                 } else if (!strcasecmp(var->name, "mode")) {</span><br><span>                    ast_copy_string(mohclass->mode, var->value, sizeof(mohclass->mode));</span><br><span>                } else if (!strcasecmp(var->name, "entry")) {</span><br><span style="color: hsl(0, 100%, 40%);">-                      if (ast_begins_with(var->value, "/") || ast_begins_with(var->value, "http://") || ast_begins_with(var->value, "https://")) {</span><br><span style="color: hsl(120, 100%, 40%);">+                   if (ast_begins_with(var->value, "/") || strstr(var->value, "://")) {</span><br><span>                               char *dup;</span><br><span> </span><br><span>                               if (!playlist_entries) {</span><br><span>@@ -1144,7 +1144,7 @@</span><br><span> </span><br><span>                                 AST_VECTOR_APPEND(playlist_entries, dup);</span><br><span>                    } else {</span><br><span style="color: hsl(0, 100%, 40%);">-                                ast_log(LOG_ERROR, "Playlist entries must be an HTTP(S) URL or absolute path, '%s' provided.\n", var->value);</span><br><span style="color: hsl(120, 100%, 40%);">+                            ast_log(LOG_ERROR, "Playlist entries must be a URL or an absolute path, '%s' provided.\n", var->value);</span><br><span>                         }</span><br><span>            } else if (!strcasecmp(var->name, "directory")) {</span><br><span>                       ast_copy_string(mohclass->dir, var->value, sizeof(mohclass->dir));</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/15371">change 15371</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/15371"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 16 </div>
<div style="display:none"> Gerrit-Change-Id: If0ea8697587353dce358a70035d82649fd4632b6 </div>
<div style="display:none"> Gerrit-Change-Number: 15371 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Boris P. Korzun <drtr0jan@yandex.ru> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-Reviewer: Sean Bright <sean.bright@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>