[asterisk-commits] file: branch 1.6.0 r174711 - in /branches/1.6.0: ./ channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Feb 10 14:16:57 CST 2009
Author: file
Date: Tue Feb 10 14:16:57 2009
New Revision: 174711
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=174711
Log:
Merged revisions 174710 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r174710 | file | 2009-02-10 16:15:43 -0400 (Tue, 10 Feb 2009) | 4 lines
Only decrease inringing count if above zero.
(issue #13238)
Reported by: kowalma
........
Modified:
branches/1.6.0/ (props changed)
branches/1.6.0/channels/chan_sip.c
Propchange: branches/1.6.0/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.
Modified: branches/1.6.0/channels/chan_sip.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.6.0/channels/chan_sip.c?view=diff&rev=174711&r1=174710&r2=174711
==============================================================================
--- branches/1.6.0/channels/chan_sip.c (original)
+++ branches/1.6.0/channels/chan_sip.c Tue Feb 10 14:16:57 2009
@@ -4643,7 +4643,9 @@
sip_pvt_lock(fup);
ast_mutex_lock(pu_lock);
if (ast_test_flag(&fup->flags[0], SIP_INC_RINGING)) {
- (*inringing)--;
+ if (*inringing > 0) {
+ (*inringing)--;
+ }
ast_clear_flag(&fup->flags[0], SIP_INC_RINGING);
}
ast_mutex_unlock(pu_lock);
More information about the asterisk-commits
mailing list