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.



git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@397921 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Michelson
2013-08-29 15:42:10 +00:00
parent 948934fb76
commit 70ffc1550c
3 changed files with 31 additions and 7 deletions

View File

@@ -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;
}