diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-02-10 20:16:57 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-02-10 20:16:57 +0000 |
commit | ce61a9b39c169f23e82e28c6f30111e2dc2000c3 (patch) | |
tree | 07a9dc84aec729c685def1673ef7fc2f175f5adb | |
parent | ceb330395a3db310aff2c438b1fa03b79e34aba7 (diff) |
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: http://svn.digium.com/svn/asterisk/branches/1.6.0@174711 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_sip.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 72d59360c..39b4559f4 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -4643,7 +4643,9 @@ static int update_call_counter(struct sip_pvt *fup, int event) 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); |