Don't allow callwait to happen during initial ringdown (bug #5188)
authorMark Spencer <markster@digium.com>
Sun, 11 Sep 2005 17:01:10 +0000 (17:01 +0000)
committerMark Spencer <markster@digium.com>
Sun, 11 Sep 2005 17:01:10 +0000 (17:01 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6561 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 2709b02..aae0455 100755 (executable)
@@ -7239,7 +7239,7 @@ static inline int available(struct zt_pvt *p, int channelmatch, int groupmatch,
        }
        
        if ((p->owner->_state != AST_STATE_UP) &&
-               (p->owner->_state != AST_STATE_RINGING)) {
+               ((p->owner->_state != AST_STATE_RINGING) || p->outgoing)) {
                /* If the current call is not up, then don't allow the call */
                return 0;
        }