diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-10-31 22:08:41 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-10-31 22:08:41 +0000 |
commit | e70a6af68066b3bd891c3258df1a9882aa0fc2f9 (patch) | |
tree | 28ea767f99643731fc321af7ee735a570d1a3248 | |
parent | 50b6a047fa3eea1d8e0a670b9a66baa0db1d5391 (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-x | channels/chan_sip.c | 4 |
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 |