mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-03 21:46:35 -07:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user