Answer the line when hangup received and callwait is up
authorMark Spencer <markster@digium.com>
Tue, 16 Mar 2004 23:42:41 +0000 (23:42 +0000)
committerMark Spencer <markster@digium.com>
Tue, 16 Mar 2004 23:42:41 +0000 (23:42 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2450 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 48675db..b7a22b9 100755 (executable)
@@ -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) {