<p>N A has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/16476">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">app_stack: Include current location if branch fails<br><br>Previously, the error emitted when app_stack tries<br>to branch to a dialplan location that doesn't exist<br>has included only the information about the attempted<br>branch in the error log. This adds the current location<br>as well so users can see where the branch failed in<br>the logs.<br><br>ASTERISK-29626<br><br>Change-Id: Ia23502ab2ad21485a1ac74295063a8f25a6df5ce<br>---<br>M apps/app_stack.c<br>1 file changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/76/16476/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/apps/app_stack.c b/apps/app_stack.c</span><br><span>index 179694b..3c857a9 100644</span><br><span>--- a/apps/app_stack.c</span><br><span>+++ b/apps/app_stack.c</span><br><span>@@ -590,8 +590,8 @@</span><br><span> ast_channel_unlock(chan);</span><br><span> </span><br><span> if (!ast_exists_extension(chan, dest_context, dest_exten, dest_priority, caller_id)) {</span><br><span style="color: hsl(0, 100%, 40%);">- ast_log(LOG_ERROR, "Attempt to reach a non-existent destination for %s: (Context:%s, Extension:%s, Priority:%d)\n",</span><br><span style="color: hsl(0, 100%, 40%);">- app_gosub, dest_context, dest_exten, dest_priority);</span><br><span style="color: hsl(120, 100%, 40%);">+ ast_log(LOG_ERROR, "%s attempted to reach non-existent destination '%s,%s,%d' from '%s,%s,%d'",</span><br><span style="color: hsl(120, 100%, 40%);">+ app_gosub, dest_context, dest_exten, dest_priority, orig_context, orig_exten, orig_priority);</span><br><span> goto error_exit;</span><br><span> }</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/16476">change 16476</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/+/16476"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 19 </div>
<div style="display:none"> Gerrit-Change-Id: Ia23502ab2ad21485a1ac74295063a8f25a6df5ce </div>
<div style="display:none"> Gerrit-Change-Number: 16476 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: N A <mail@interlinked.x10host.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>