dect
/
asterisk
Archived
13
0
Fork 0

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:
markster 2004-03-16 23:42:41 +00:00
parent ddd8ca31cd
commit 175ff111f4
1 changed files with 2 additions and 0 deletions

View File

@ -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) {