[asterisk-bugs] [Asterisk 0011304]: problems with counting call limits

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Nov 27 01:27:14 CST 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11304 
====================================================================== 
Reported By:                pj
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11304
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:            SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 89421 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             11-19-2007 12:56 CST
Last Modified:              11-27-2007 01:27 CST
====================================================================== 
Summary:                    problems with counting call limits
Description: 
when I have one call FROM sip phone and make another concurent call TO
phone, 'sip show inuse' displays:
* Peer name In use Limit
324 2/1/0 2
but after hangup it displays some weird values, even if phone s idle,
like:
* Peer name In use Limit
324 -1/0/0 2
it can be repaired, only with restarting asterisk

second issue:
- if I make call FROM sip phone (ie. asterisks friend user part), 'sip
show inuse' still shows zero in 'in use' column of 'user' configuration
part, 
* User name In use Limit
324 0 2
instead, calls are counted only in 'peer' section, when I make call FROM
phone, it shows:
* Peer name In use Limit
324 1/0/0 2
I have 'limitonpeer=yes' in sip.conf, to apply limits only to peer part,
as in sip.conf.sample
limitonpeer = yes              ; Apply call limits on peers only.

third issue:
- 'limit 2' is still displayed in 'user' part, even if I have
'limitonpeer=yes' in sip.conf

====================================================================== 

---------------------------------------------------------------------- 
 oej - 11-27-07 01:27  
---------------------------------------------------------------------- 
The third issue is something I consider cosmetic. To add the required
processing to find out which users that actually has matching peers and
remove them from the output is just extra processing which might cause more
locking issues than you need.

The second issue doesn't seem like a bug when you have limitonpeer=yes. If
you have that, we only use the call counter on the peer half of a friend
and the user counter is never used.

The first issue seems like a bug, but there are several related bug
reports here in the bug tracker. I think this is a duplicate bug report. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
11-27-07 01:27  oej            Note Added: 0074388                          
======================================================================




More information about the asterisk-bugs mailing list