mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-19 03:08:45 +00:00
Set normal clearing for answered calls (bug #3165)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4577 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -352,6 +352,9 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct localu
|
|||||||
*allowdisconnect_in = o->allowdisconnect_in;
|
*allowdisconnect_in = o->allowdisconnect_in;
|
||||||
*allowdisconnect_out = o->allowdisconnect_out;
|
*allowdisconnect_out = o->allowdisconnect_out;
|
||||||
}
|
}
|
||||||
|
/* If call has been answered, then the eventual hangup is likely to be normal hangup */
|
||||||
|
in->hangupcause = AST_CAUSE_NORMAL_CLEARING;
|
||||||
|
o->chan->hangupcause = AST_CAUSE_NORMAL_CLEARING;
|
||||||
break;
|
break;
|
||||||
case AST_CONTROL_BUSY:
|
case AST_CONTROL_BUSY:
|
||||||
if (option_verbose > 2)
|
if (option_verbose > 2)
|
||||||
|
Reference in New Issue
Block a user