[Asterisk-code-review] app queue: new variable set when abandoned (asterisk[13])

scgm11 asteriskteam at digium.com
Sun Nov 6 06:07:21 CST 2016


scgm11 has uploaded a new change for review. ( https://gerrit.asterisk.org/4323 )

Change subject: app_queue: new variable set when abandoned
......................................................................

app_queue: new variable set when abandoned

sets the variable ABANDONED to TRUE if the call was not answered.

ASTERISK-26558

Change-Id: I4729af9bff4eba436d8a776afd3374065d0036d3
---
M apps/app_queue.c
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/23/4323/1

diff --git a/apps/app_queue.c b/apps/app_queue.c
index 5fe9324..c9fd373 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -4593,6 +4593,7 @@
 static void record_abandoned(struct queue_ent *qe)
 {
 	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);
 	ao2_lock(qe->parent);

-- 
To view, visit https://gerrit.asterisk.org/4323
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4729af9bff4eba436d8a776afd3374065d0036d3
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: scgm11 <scgm11 at gmail.com>



More information about the asterisk-code-review mailing list