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:
parent
e6af878273
commit
f834829747
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Reference in a new issue