aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-11 23:07:49 +0000
committermattf <mattf@f38db490-d61c-443f-a65b-d21fe96a405b>2007-09-11 23:07:49 +0000
commitc9e921b7e98ffce1cfd11d307879cf9f2de99f12 (patch)
tree88a69b150b57943370b7d22e77d0e422b0469a96
parent7821eb23e14ebe540f5f06fbf9be9db52aa66fb4 (diff)
Fix to make sure we don't hangup a call when getting a RLC without sending REL. Found making sure we are Q.784 (the SS7 test specification) compliant
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@82273 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_zap.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index f7efa069f..edcc0e5a7 100644
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -8903,7 +8903,10 @@ static void *ss7_linkset(void *data)
} else {
p = linkset->pvts[chanpos];
ast_mutex_lock(&p->lock);
- p->ss7call = NULL;
+ if (p->alreadyhungup)
+ p->ss7call = NULL;
+ else
+ ast_log(LOG_NOTICE, "Received RLC out and we haven't sent REL. Ignoring.\n");
ast_mutex_unlock(&p->lock);
}
break;