[asterisk-bugs] [Asterisk 0009794]: [patch] Call counter not updating for looping request

noreply at bugs.digium.com noreply at bugs.digium.com
Wed Aug 29 17:21:01 CDT 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=9794 
====================================================================== 
Reported By:                remiq
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   9794
Category:                   Core/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
Asterisk Version:            1.2.18  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        No 
Request Review:              
====================================================================== 
Date Submitted:             05-24-2007 10:38 CDT
Last Modified:              08-29-2007 17:21 CDT
====================================================================== 
Summary:                    [patch] Call counter not updating for looping
request
Description: 
After I upgraded from version 1.2.14 to 1.2.18, I noticed that the peer and
user call counters are not updating properly.  When you have an outbound
call (peer) and Asterisk receives an incoming INVITE request, Asterisk will
change the call to incoming (user).  Once the call gets changed to
incoming, all future call counter updates will apply to the user counters. 
When the call hangs up the user counter gets decremented, but the peer
counter is not decremented and so is increased by 1 for each type of call
like this.  If you have call-limits set in your sip.conf calls quickly
begin failing to:

update_call_counter: Call to peer '7323825777' rejected due to usage limit
of 1 

I was able to fix this by updating the call counter before and after
Asterisk changes the call to incoming.     

Specifically:
1) Receive INVITE on "standing outbound" call
2) update_call_counter: Decrement PEER counter
3) Change the call to incoming (USER)
4) update_call_counter: Increment the USER counter
====================================================================== 

---------------------------------------------------------------------- 
 qwell - 08-29-07 17:21  
---------------------------------------------------------------------- 
Is this an issue in 1.4? 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
08-29-07 17:21  qwell          Note Added: 0069670                          
======================================================================




More information about the asterisk-bugs mailing list