aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_zap.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-11 17:01:10 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-11 17:01:10 +0000
commit3239797c9e89cf058695d44098fa6884e58d97cb (patch)
tree9734d2efc1ea75daa18aa6c92acf23d25f3802f0 /channels/chan_zap.c
parent09bcbc1741bfe87428f7307a890d03a9a4a66e3a (diff)
Don't allow callwait to happen during initial ringdown (bug #5188)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6561 f38db490-d61c-443f-a65b-d21fe96a405b
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;
}