<p>Mark Petersen has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/17598">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">app_queue.c: added DIALEDPEERNUMBER on outhoing channel<br><br>added that we set DIALEDPEERNUMBER on the outgoing channels<br>so it is avalible in b(content^extension^line)<br>this is add the same behaviour as Dial<br><br>ASTERISK-29795<br><br>Change-Id: Icbc589ea2066f0c401a892bf478f6b2fd44e62f6<br>---<br>M apps/app_queue.c<br>1 file changed, 5 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/98/17598/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/apps/app_queue.c b/apps/app_queue.c</span><br><span>index ca8fc6f..994d6f1 100644</span><br><span>--- a/apps/app_queue.c</span><br><span>+++ b/apps/app_queue.c</span><br><span>@@ -295,6 +295,9 @@</span><br><span> <para>If the call was not answered by an agent this variable will be TRUE.</para></span><br><span> <value name="TRUE" /></span><br><span> </variable></span><br><span style="color: hsl(120, 100%, 40%);">+ <variable name="DIALEDPEERNUMBER"></span><br><span style="color: hsl(120, 100%, 40%);">+ <para>Resource of the agent that was dialed set on the outbound channel.</para></span><br><span style="color: hsl(120, 100%, 40%);">+ </variable></span><br><span> </variablelist></span><br><span> </description></span><br><span> <see-also></span><br><span>@@ -4647,6 +4650,8 @@</span><br><span> ast_channel_unlock(tmp->chan);</span><br><span> ast_channel_unlock(qe->chan);</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+ pbx_builtin_setvar_helper(tmp->chan, "DIALEDPEERNUMBER", strlen(tech) ? 1 + strlen(tech) + tmp->interface : tmp->interface);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> /* PREDIAL: Run gosub on the callee's channel */</span><br><span> if (qe->predial_callee) {</span><br><span> ast_pre_call(tmp->chan, qe->predial_callee);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/17598">change 17598</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/+/17598"/><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: Icbc589ea2066f0c401a892bf478f6b2fd44e62f6 </div>
<div style="display:none"> Gerrit-Change-Number: 17598 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Mark Petersen <bugs.digium.com@zombie.dk> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>