[Asterisk-code-review] app_queue.c: added DIALEDPEERNUMBER on outhoing channel (asterisk[16])
Mark Petersen
asteriskteam at digium.com
Wed Dec 8 05:31:45 CST 2021
Mark Petersen has uploaded this change for review. ( https://gerrit.asterisk.org/c/asterisk/+/17598 )
Change subject: app_queue.c: added DIALEDPEERNUMBER on outhoing channel
......................................................................
app_queue.c: added DIALEDPEERNUMBER on outhoing channel
added that we set DIALEDPEERNUMBER on the outgoing channels
so it is avalible in b(content^extension^line)
this is add the same behaviour as Dial
ASTERISK-29795
Change-Id: Icbc589ea2066f0c401a892bf478f6b2fd44e62f6
---
M apps/app_queue.c
1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/98/17598/1
diff --git a/apps/app_queue.c b/apps/app_queue.c
index ca8fc6f..994d6f1 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -295,6 +295,9 @@
<para>If the call was not answered by an agent this variable will be TRUE.</para>
<value name="TRUE" />
</variable>
+ <variable name="DIALEDPEERNUMBER">
+ <para>Resource of the agent that was dialed set on the outbound channel.</para>
+ </variable>
</variablelist>
</description>
<see-also>
@@ -4647,6 +4650,8 @@
ast_channel_unlock(tmp->chan);
ast_channel_unlock(qe->chan);
+ pbx_builtin_setvar_helper(tmp->chan, "DIALEDPEERNUMBER", strlen(tech) ? 1 + strlen(tech) + tmp->interface : tmp->interface);
+
/* PREDIAL: Run gosub on the callee's channel */
if (qe->predial_callee) {
ast_pre_call(tmp->chan, qe->predial_callee);
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/17598
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: Icbc589ea2066f0c401a892bf478f6b2fd44e62f6
Gerrit-Change-Number: 17598
Gerrit-PatchSet: 1
Gerrit-Owner: Mark Petersen <bugs.digium.com at zombie.dk>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20211208/85f52487/attachment.html>
More information about the asterisk-code-review
mailing list