don't increment 'inuse' counter when call is being failed because of limit (issue #5545)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6907 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2005-10-31 22:08:41 +00:00
parent 0a314b2454
commit a15a52208d
-4
View File
@@ -2217,10 +2217,6 @@ static int update_call_counter(struct sip_pvt *fup, int event)
if (*call_limit > 0 ) {
if (*inuse >= *call_limit) {
ast_log(LOG_ERROR, "Call %s %s '%s' rejected due to usage limit of %d\n", outgoing ? "to" : "from", u ? "user":"peer", name, *call_limit);
/* inc inUse as well */
if ( event == INC_CALL_LIMIT ) {
(*inuse)++;
}
if (u)
ASTOBJ_UNREF(u,sip_destroy_user);
else