mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-25 07:01:09 +00:00
app_queue: new variable set when abandoned
sets the variable ABANDONED to TRUE if the call was not answered. ASTERISK-26558 Change-Id: I4729af9bff4eba436d8a776afd3374065d0036d3
This commit is contained in:
committed by
Sebastian Gutierrez
parent
0d85f1868d
commit
4e8ab6cda9
@@ -256,7 +256,7 @@
|
|||||||
any of the join options cause the caller to not enter the queue.</para>
|
any of the join options cause the caller to not enter the queue.</para>
|
||||||
<para>This application does not automatically answer and should be preceeded
|
<para>This application does not automatically answer and should be preceeded
|
||||||
by an application such as Answer(), Progress(), or Ringing().</para>
|
by an application such as Answer(), Progress(), or Ringing().</para>
|
||||||
<para>This application sets the following channel variable upon completion:</para>
|
<para>This application sets the following channel variables upon completion:</para>
|
||||||
<variablelist>
|
<variablelist>
|
||||||
<variable name="QUEUESTATUS">
|
<variable name="QUEUESTATUS">
|
||||||
<para>The status of the call as a text string.</para>
|
<para>The status of the call as a text string.</para>
|
||||||
@@ -268,6 +268,10 @@
|
|||||||
<value name="LEAVEUNAVAIL" />
|
<value name="LEAVEUNAVAIL" />
|
||||||
<value name="CONTINUE" />
|
<value name="CONTINUE" />
|
||||||
</variable>
|
</variable>
|
||||||
|
<variable name="ABANDONED">
|
||||||
|
<para>If the call was not answered by an agent this variable will be TRUE.</para>
|
||||||
|
<value name="TRUE" />
|
||||||
|
</variable>
|
||||||
</variablelist>
|
</variablelist>
|
||||||
</description>
|
</description>
|
||||||
<see-also>
|
<see-also>
|
||||||
@@ -4617,6 +4621,8 @@ static void record_abandoned(struct queue_ent *qe)
|
|||||||
{
|
{
|
||||||
RAII_VAR(struct ast_json *, blob, NULL, ast_json_unref);
|
RAII_VAR(struct ast_json *, blob, NULL, ast_json_unref);
|
||||||
|
|
||||||
|
pbx_builtin_setvar_helper(qe->chan, "ABANDONED", "TRUE");
|
||||||
|
|
||||||
set_queue_variables(qe->parent, qe->chan);
|
set_queue_variables(qe->parent, qe->chan);
|
||||||
ao2_lock(qe->parent);
|
ao2_lock(qe->parent);
|
||||||
blob = ast_json_pack("{s: s, s: i, s: i, s: i}",
|
blob = ast_json_pack("{s: s, s: i, s: i, s: i}",
|
||||||
@@ -7961,6 +7967,8 @@ static int queue_exec(struct ast_channel *chan, const char *data)
|
|||||||
/* Setup our queue entry */
|
/* Setup our queue entry */
|
||||||
qe.start = time(NULL);
|
qe.start = time(NULL);
|
||||||
|
|
||||||
|
pbx_builtin_setvar_helper(chan, "ABANDONED", NULL);
|
||||||
|
|
||||||
/* set the expire time based on the supplied timeout; */
|
/* set the expire time based on the supplied timeout; */
|
||||||
if (!ast_strlen_zero(args.queuetimeoutstr)) {
|
if (!ast_strlen_zero(args.queuetimeoutstr)) {
|
||||||
qe.expire = qe.start + atoi(args.queuetimeoutstr);
|
qe.expire = qe.start + atoi(args.queuetimeoutstr);
|
||||||
|
Reference in New Issue
Block a user