summaryrefslogtreecommitdiff
path: root/channels/chan_zap.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2005-09-11 17:01:10 +0000
committerMark Spencer <markster@digium.com>2005-09-11 17:01:10 +0000
commit961cd50bba9621982c6876c06d96278e514b3de2 (patch)
tree9734d2efc1ea75daa18aa6c92acf23d25f3802f0 /channels/chan_zap.c
parent1541e97afed51ab6e9f5271d15e52a6322150d28 (diff)
Don't allow callwait to happen during initial ringdown (bug #5188)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6561 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_zap.c')
-rwxr-xr-xchannels/chan_zap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 2709b02d9..aae045549 100755
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -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;
}