[asterisk-commits] mattf: trunk r82273 - /trunk/channels/chan_zap.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Sep 11 18:07:49 CDT 2007


Author: mattf
Date: Tue Sep 11 18:07:49 2007
New Revision: 82273

URL: http://svn.digium.com/view/asterisk?view=rev&rev=82273
Log:
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

Modified:
    trunk/channels/chan_zap.c

Modified: trunk/channels/chan_zap.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_zap.c?view=diff&rev=82273&r1=82272&r2=82273
==============================================================================
--- trunk/channels/chan_zap.c (original)
+++ trunk/channels/chan_zap.c Tue Sep 11 18:07:49 2007
@@ -8903,7 +8903,10 @@
 				} 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;




More information about the asterisk-commits mailing list