Answer the line when hangup received and callwait is up
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2450 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
ddd8ca31cd
commit
175ff111f4
|
@ -1769,6 +1769,8 @@ static int zt_hangup(struct ast_channel *ast)
|
|||
swap_subs(p, SUB_CALLWAIT, SUB_REAL);
|
||||
unalloc_sub(p, SUB_CALLWAIT);
|
||||
p->owner = p->subs[SUB_REAL].owner;
|
||||
if (p->owner->_state != AST_STATE_UP)
|
||||
p->subs[SUB_REAL].needanswer = 1;
|
||||
if (p->subs[SUB_REAL].owner->bridge)
|
||||
ast_moh_stop(p->subs[SUB_REAL].owner->bridge);
|
||||
} else if (p->subs[SUB_THREEWAY].zfd > -1) {
|
||||
|
|
Reference in New Issue