Archived
14
0
Fork 0

Set normal clearing for answered calls (bug #3165)

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4577 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
markster 2004-12-28 23:18:31 +00:00
parent e6af878273
commit f834829747

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)