Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv5728/channels

Modified Files:
        chan_sip.c 
Log Message:
don't increment 'inuse' counter when call is being failed because of limit 
(issue #5545)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.901
retrieving revision 1.902
diff -u -d -r1.901 -r1.902
--- chan_sip.c  31 Oct 2005 21:43:53 -0000      1.901
+++ chan_sip.c  31 Oct 2005 22:08:41 -0000      1.902
@@ -2217,10 +2217,6 @@
                        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

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to