<p>Mark Petersen has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/17685">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">app_queue.c: added DIALEDPEERNUMBER on outgoing channel<br><br>added that we set DIALEDPEERNUMBER on the outgoing channels<br>so it is avalible in b(content^extension^line)<br>this add the same behaviour as Dial<br><br>ASTERISK-29795<br><br>Change-Id: Icbc589ea2066f0c401a892bf478f6b2fd44e62f6<br>---<br>M apps/app_queue.c<br>A doc/CHANGES-staging/app_queue_DIALEDPEERNUMBER.txt<br>2 files changed, 12 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/85/17685/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 acd0ace..d03d9f0 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>@@ -4644,6 +4647,9 @@</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%);">+  /* location is tmp->interface where tech/ has been stripped, so it follow the same syntax as DIALEDPEERNUMBER in app_dial.c */</span><br><span style="color: hsl(120, 100%, 40%);">+     pbx_builtin_setvar_helper(tmp->chan, "DIALEDPEERNUMBER", strlen(location) ? location : 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>diff --git a/doc/CHANGES-staging/app_queue_DIALEDPEERNUMBER.txt b/doc/CHANGES-staging/app_queue_DIALEDPEERNUMBER.txt</span><br><span>new file mode 100644</span><br><span>index 0000000..ef15e9e</span><br><span>--- /dev/null</span><br><span>+++ b/doc/CHANGES-staging/app_queue_DIALEDPEERNUMBER.txt</span><br><span>@@ -0,0 +1,6 @@</span><br><span style="color: hsl(120, 100%, 40%);">+Subject: app_queue</span><br><span style="color: hsl(120, 100%, 40%);">+Subject: Applications</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+added that we set DIALEDPEERNUMBER on the outgoing channels</span><br><span style="color: hsl(120, 100%, 40%);">+so it is avalible in b(content^extension^line)</span><br><span style="color: hsl(120, 100%, 40%);">+this add the same behaviour as Dial</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/17685">change 17685</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/+/17685"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 18 </div>
<div style="display:none"> Gerrit-Change-Id: Icbc589ea2066f0c401a892bf478f6b2fd44e62f6 </div>
<div style="display:none"> Gerrit-Change-Number: 17685 </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>