aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-10-31 22:08:41 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-10-31 22:08:41 +0000
commite70a6af68066b3bd891c3258df1a9882aa0fc2f9 (patch)
tree28ea767f99643731fc321af7ee735a570d1a3248
parent50b6a047fa3eea1d8e0a670b9a66baa0db1d5391 (diff)
don't increment 'inuse' counter when call is being failed because of limit (issue #5545)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6907 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xchannels/chan_sip.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 10d7c5833..22d07e080 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -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