<p>N A has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/19742">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">pbx_app: Update outdated channel pbx_exec snapshots.<br><br>pbx_exec makes a channel snapshot before executing applications.<br>This doesn't cause an issue during normal dialplan execution<br>where pbx_exec is called over and over again in succession.<br>However, if pbx_exec is called "one off", e.g. using<br>ast_pbx_exec_application, then a channel snapshot never ends<br>up getting made after the executed application returns, and<br>inaccurate snapshot information will linger for a while, causing<br>"core show channels", etc. to show erroneous info.<br><br>This is fixed by manually making a channel snapshot at the end<br>of ast_pbx_exec_application, since we anticipate that pbx_exec<br>might not get called again immediately.<br><br>ASTERISK-30367 #close<br><br>Change-Id: I42b6bddc81028abe02a8071aa0f34719fb675803<br>---<br>M main/pbx_app.c<br>1 file changed, 27 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/42/19742/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/main/pbx_app.c b/main/pbx_app.c</span><br><span>index 5879d73..0d74573 100644</span><br><span>--- a/main/pbx_app.c</span><br><span>+++ b/main/pbx_app.c</span><br><span>@@ -519,6 +519,9 @@</span><br><span> }</span><br><span> res = pbx_exec(chan, app, app_args);</span><br><span> }</span><br><span style="color: hsl(120, 100%, 40%);">+ /* Since pbx_exec isn't necessarily going to be called again immediately, manually update</span><br><span style="color: hsl(120, 100%, 40%);">+ * the channel snapshot so it doesn't contain stale data. */</span><br><span style="color: hsl(120, 100%, 40%);">+ ast_channel_publish_snapshot(chan);</span><br><span> }</span><br><span> return res;</span><br><span> }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/19742">change 19742</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/+/19742"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I42b6bddc81028abe02a8071aa0f34719fb675803 </div>
<div style="display:none"> Gerrit-Change-Number: 19742 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: N A <asterisk@phreaknet.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>