[asterisk-commits] file: trunk r174710 - /trunk/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Feb 10 14:15:43 CST 2009


Author: file
Date: Tue Feb 10 14:15:43 2009
New Revision: 174710

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=174710
Log:
Only decrease inringing count if above zero.
(issue #13238)
Reported by: kowalma

Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=174710&r1=174709&r2=174710
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Tue Feb 10 14:15:43 2009
@@ -5314,7 +5314,9 @@
 			sip_pvt_lock(fup);
 			ao2_lock(p);
 			if (ast_test_flag(&fup->flags[0], SIP_INC_RINGING)) {
-				(*inringing)--;
+				if (*inringing > 0) {
+					(*inringing)--;
+				}
 				ast_clear_flag(&fup->flags[0], SIP_INC_RINGING);
 			}
 			ao2_unlock(p);




More information about the asterisk-commits mailing list