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:
Mark Spencer
2004-12-28 23:18:31 +00:00
parent 0255d5805f
commit 526fc0afe9

View File

@@ -352,6 +352,9 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct localu
*allowdisconnect_in = o->allowdisconnect_in;
*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;
case AST_CONTROL_BUSY:
if (option_verbose > 2)