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
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@174714 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.1
Joshua Colp 18 years ago
parent 56cb94f669
commit 8fc9ea25ab

@ -4887,7 +4887,9 @@ static int update_call_counter(struct sip_pvt *fup, int event)
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);

Loading…
Cancel
Save