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

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Aug 6 14:43:53 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-06-2007 14:43 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
====================================================================== 

---------------------------------------------------------------------- 
 lazaro - 08-06-07 14:43  
---------------------------------------------------------------------- 
Confirmed in asterisk version 1.2.23 the same effect. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
08-06-07 14:43  lazaro         Note Added: 0068512                          
======================================================================




More information about the asterisk-bugs mailing list