diff options
author | Matt Jordan <mjordan@digium.com> | 2015-09-19 16:26:33 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2015-09-19 16:26:33 -0500 |
commit | 9a4498a11287fcf51ab89effa864a1bac2cb39f9 (patch) | |
tree | 4e6e7f8a51419c1b81065c4bdaadf42a125d2ff3 /apps | |
parent | 93447c95c443f23ff631dde58a4a909b3981cf4a (diff) | |
parent | 729a4325da9a79086c8e8551b089b3e167df3172 (diff) |
Merge "app_queue: AgentComplete event has wrong reason"
Diffstat (limited to 'apps')
-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 cd9f5b01b..23f69853d 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -6033,7 +6033,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 */ |