From 0bc2a773657fd2d3d8841e2421ca99b486311204 Mon Sep 17 00:00:00 2001 From: Mark Michelson Date: Thu, 29 Aug 2013 15:43:23 +0000 Subject: Multiple revisions 397921-397922 ........ r397921 | mmichelson | 2013-08-29 10:42:10 -0500 (Thu, 29 Aug 2013) | 6 lines Resolve assumptions that bridge snapshots would be non-NULL for transfer stasis events. Attempting to transfer an unbridged call would result in crashes in either CEL code or in the conversion to AMI messages. ........ r397922 | mmichelson | 2013-08-29 10:42:29 -0500 (Thu, 29 Aug 2013) | 3 lines Remove extra debug message. ........ Merged revisions 397921-397922 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@397923 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_queue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/app_queue.c') diff --git a/apps/app_queue.c b/apps/app_queue.c index 9471c6eca..694527e4f 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -5431,7 +5431,7 @@ static void handle_blind_transfer(void *userdata, struct stasis_subscription *su return; } - if (ast_json_integer_get(result_blob) == AST_BRIDGE_TRANSFER_FAIL) { + if (ast_json_integer_get(result_blob) != AST_BRIDGE_TRANSFER_SUCCESS) { return; } @@ -5490,7 +5490,7 @@ static void handle_attended_transfer(void *userdata, struct stasis_subscription return; } - if (atxfer_msg->result == AST_BRIDGE_TRANSFER_FAIL || + if (atxfer_msg->result != AST_BRIDGE_TRANSFER_SUCCESS || atxfer_msg->dest_type == AST_ATTENDED_TRANSFER_DEST_THREEWAY) { return; } -- cgit v1.2.3