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

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Sep 11 14:13:51 CDT 2007


The following issue has been RESOLVED. 
====================================================================== 
http://bugs.digium.com/view.php?id=9794 
====================================================================== 
Reported By:                remiq
Assigned To:                file
====================================================================== 
Project:                    Asterisk
Issue ID:                   9794
Category:                   Core/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     resolved
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:              
Resolution:                 suspended
Fixed in Version:           
====================================================================== 
Date Submitted:             05-24-2007 10:38 CDT
Last Modified:              09-11-2007 14:13 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
====================================================================== 

---------------------------------------------------------------------- 
 file - 09-11-07 14:13  
---------------------------------------------------------------------- 
I'm suspending this since there has been no reply to it being applicable to
1.4. If it is feel free to reopen with fresh info. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
09-11-07 14:13  file           Status                   feedback => resolved
09-11-07 14:13  file           Resolution               open => suspended   
09-11-07 14:13  file           Assigned To               => file            
09-11-07 14:13  file           Note Added: 0070343                          
======================================================================




More information about the asterisk-bugs mailing list