mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-24 14:56:58 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user