<p>Karsten Wemheuer has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/14731">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">app_voicemail: Fix broken subscription<br><br>In the function "handle_subscribe" "mailbox" and "context" are stored in<br>mwi_sub->mailbox as "mailbox@context". The mailbox was overwritten, so that<br>only the context was saved. This patch restores the old behavior (as in 16.11)<br><br>Change-Id: I8be59d175b2b48e4d5b806df5581ac01a01531a3<br>---<br>M apps/app_voicemail.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/31/14731/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c</span><br><span>index ada7382..f50b7b0 100644</span><br><span>--- a/apps/app_voicemail.c</span><br><span>+++ b/apps/app_voicemail.c</span><br><span>@@ -13371,7 +13371,7 @@</span><br><span> </span><br><span>      if (!ast_strlen_zero(p->context)) {</span><br><span>               strcat(mwi_sub->mailbox, "@");</span><br><span style="color: hsl(0, 100%, 40%);">-             ast_copy_string(mwi_sub->mailbox, p->context, context_len);</span><br><span style="color: hsl(120, 100%, 40%);">+             ast_copy_string(mwi_sub->mailbox + strlen(p->mailbox)+1, p->context, context_len);</span><br><span>  }</span><br><span> </span><br><span>        AST_RWLIST_WRLOCK(&mwi_subs);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/14731">change 14731</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/+/14731"/><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: I8be59d175b2b48e4d5b806df5581ac01a01531a3 </div>
<div style="display:none"> Gerrit-Change-Number: 14731 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Karsten Wemheuer <kwe-digium@iptam.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>