diff options
author | Matt Jordan <mjordan@digium.com> | 2015-09-19 16:26:27 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2015-09-19 16:26:27 -0500 |
commit | efbd0f5a9758bb1d8dbfde397553f83058453f97 (patch) | |
tree | ce0fadfddd205b80e04c5c28fdec7c288322b34a /apps/app_queue.c | |
parent | c7beb33ebb4f6fe164a144d1e64d0ea533151b36 (diff) | |
parent | 4fb95bbc4e4928dd3403a20d401c285a568f0d09 (diff) |
Merge "app_queue: AgentComplete event has wrong reason" into 13
Diffstat (limited to 'apps/app_queue.c')
-rw-r--r-- | apps/app_queue.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index e42bfad34..dbaa16718 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -6015,7 +6015,9 @@ static void handle_hangup(void *userdata, struct stasis_subscription *sub, } chan = ast_channel_get_by_name(channel_blob->snapshot->name); - if (chan && ast_channel_has_role(chan, AST_TRANSFERER_ROLE_NAME)) { + if (chan && (ast_channel_has_role(chan, AST_TRANSFERER_ROLE_NAME) || + !ast_strlen_zero(pbx_builtin_getvar_helper(chan, "ATTENDEDTRANSFER")) || + !ast_strlen_zero(pbx_builtin_getvar_helper(chan, "BLINDTRANSFER")))) { /* Channel that is hanging up is doing it as part of a transfer. * We'll get a transfer event later */ |