mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 00:30:20 +00:00
Convert AST_FLAG_ANSWERED_ELSEWHERE usage to AST_CAUSE_ANSWERED_ELSEWHERE
This was essentially duplicated functionality where normal channels used AST_CAUSE_ANSWERED_ELSEWHERE while local channels and queues used AST_FLAG_ANSWERED_ELSEWHERE. This removes the flag and converts that usage into AST_CAUSE_ANSWERED_ELSEWHER usage. Review: https://reviewboard.asterisk.org/r/1944 (closes issue ASTERISK-19865) Patch-by: Birger Harzenetter git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@368519 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -6369,11 +6369,8 @@ static int sip_hangup(struct ast_channel *ast)
|
||||
ast_debug(1, "Asked to hangup channel that was not connected\n");
|
||||
return 0;
|
||||
}
|
||||
if (ast_test_flag(ast_channel_flags(ast), AST_FLAG_ANSWERED_ELSEWHERE) || ast_channel_hangupcause(ast) == AST_CAUSE_ANSWERED_ELSEWHERE) {
|
||||
if (ast_channel_hangupcause(ast) == AST_CAUSE_ANSWERED_ELSEWHERE) {
|
||||
ast_debug(1, "This call was answered elsewhere\n");
|
||||
if (ast_channel_hangupcause(ast) == AST_CAUSE_ANSWERED_ELSEWHERE) {
|
||||
ast_debug(1, "####### It's the cause code, buddy. The cause code!!!\n");
|
||||
}
|
||||
append_history(p, "Cancel", "Call answered elsewhere");
|
||||
p->answered_elsewhere = TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user