don't increment 'inuse' counter when call is being failed because of limit (issue...
authorKevin P. Fleming <kpfleming@digium.com>
Mon, 31 Oct 2005 22:08:41 +0000 (22:08 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Mon, 31 Oct 2005 22:08:41 +0000 (22:08 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6907 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 10d7c58..22d07e0 100755 (executable)
@@ -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