From: Matthew Fredrickson Date: Tue, 11 Sep 2007 23:07:49 +0000 (+0000) Subject: Fix to make sure we don't hangup a call when getting a RLC without sending REL. ... X-Git-Tag: 1.6.0-beta1~3^2~1451 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d3504cd159b5edf063fb692fdbfc4788bfe9ebe4;p=thirdparty%2Fasterisk.git 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: https://origsvn.digium.com/svn/asterisk/trunk@82273 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_zap.c b/channels/chan_zap.c index f7efa069f5..edcc0e5a7f 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;