mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
app_queue.c: added DIALEDPEERNUMBER on outgoing channel
added that we set DIALEDPEERNUMBER on the outgoing channels so it is avalible in b(content^extension^line) this add the same behaviour as Dial ASTERISK-29795 Change-Id: Icbc589ea2066f0c401a892bf478f6b2fd44e62f6
This commit is contained in:
committed by
Friendly Automation
parent
b37fd02201
commit
0dbf313a76
@@ -295,6 +295,9 @@
|
|||||||
<para>If the call was not answered by an agent this variable will be TRUE.</para>
|
<para>If the call was not answered by an agent this variable will be TRUE.</para>
|
||||||
<value name="TRUE" />
|
<value name="TRUE" />
|
||||||
</variable>
|
</variable>
|
||||||
|
<variable name="DIALEDPEERNUMBER">
|
||||||
|
<para>Resource of the agent that was dialed set on the outbound channel.</para>
|
||||||
|
</variable>
|
||||||
</variablelist>
|
</variablelist>
|
||||||
</description>
|
</description>
|
||||||
<see-also>
|
<see-also>
|
||||||
@@ -4647,6 +4650,9 @@ static int ring_entry(struct queue_ent *qe, struct callattempt *tmp, int *busies
|
|||||||
ast_channel_unlock(tmp->chan);
|
ast_channel_unlock(tmp->chan);
|
||||||
ast_channel_unlock(qe->chan);
|
ast_channel_unlock(qe->chan);
|
||||||
|
|
||||||
|
/* location is tmp->interface where tech/ has been stripped, so it follow the same syntax as DIALEDPEERNUMBER in app_dial.c */
|
||||||
|
pbx_builtin_setvar_helper(tmp->chan, "DIALEDPEERNUMBER", strlen(location) ? location : tmp->interface);
|
||||||
|
|
||||||
/* PREDIAL: Run gosub on the callee's channel */
|
/* PREDIAL: Run gosub on the callee's channel */
|
||||||
if (qe->predial_callee) {
|
if (qe->predial_callee) {
|
||||||
ast_pre_call(tmp->chan, qe->predial_callee);
|
ast_pre_call(tmp->chan, qe->predial_callee);
|
||||||
|
6
doc/CHANGES-staging/app_queue_DIALEDPEERNUMBER.txt
Normal file
6
doc/CHANGES-staging/app_queue_DIALEDPEERNUMBER.txt
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
Subject: app_queue
|
||||||
|
Subject: Applications
|
||||||
|
|
||||||
|
added that we set DIALEDPEERNUMBER on the outgoing channels
|
||||||
|
so it is avalible in b(content^extension^line)
|
||||||
|
this add the same behaviour as Dial
|
Reference in New Issue
Block a user