--- channels/chan_sip.c.orig 2008-12-03 17:13:27.000000000 +0300 +++ channels/chan_sip.c 2009-02-04 13:22:09.000000000 +0300 @@ -4534,9 +4534,9 @@ if ((*inuse > 0) && ast_test_flag(&fup->flags[0], SIP_INC_COUNT)) { (*inuse)--; ast_clear_flag(&fup->flags[0], SIP_INC_COUNT); - } else { + } /* else { *inuse = 0; - } + } */ ast_mutex_unlock(pu_lock); sip_pvt_unlock(fup); } @@ -4548,9 +4548,9 @@ if ((*inringing > 0)&& ast_test_flag(&fup->flags[0], SIP_INC_RINGING)) { (*inringing)--; ast_clear_flag(&fup->flags[0], SIP_INC_RINGING); - } else { + } /* else { *inringing = 0; - } + } */ ast_mutex_unlock(pu_lock); sip_pvt_unlock(fup); }