[asterisk-bugs] [Asterisk 0014913]: limitonpeers=yes vs call-limit=1 didn't work on asterisk 1.4.24

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Apr 27 09:24:27 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14913 
====================================================================== 
Reported By:                sybasesql
Assigned To:                file
====================================================================== 
Project:                    Asterisk
Issue ID:                   14913
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.4.24 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-04-16 12:57 CDT
Last Modified:              2009-04-27 09:24 CDT
====================================================================== 
Summary:                    limitonpeers=yes vs call-limit=1 didn't work on
asterisk 1.4.24
Description: 
Hello,

In asterisk 1.4.24 limitonpeers=yes vs call-limit=1 didn't work.

My setup:
[xxxxxxxxxxx]
type=friend
accountcode=xxxxxxxxxxx
username=xxxxxxxxxxx
secret=xxxxxxxxxxx
host=dynamic
qualify=yes
dtmfmode=rfc2833
nat=yes
canreinvite=no
context=xxxxxxxxxxx
callerid="xxxxxxxxxxx" <xxxxxxxxxxx>
usereqphone=yes
call-limit=1
limitonpeers=yes
disallow=all
allow=alaw

Errors:
[Apr 16 21:33:21] ERROR[23739] chan_sip.c: Call from peer 'xxxxxxxxxxx'
rejected due to usage limit of 1
[Apr 16 21:33:21] NOTICE[23739] chan_sip.c: Failed to place call for user
xxxxxxxxxxx, too many calls

Dscription:
User xxxxxxxxxxx accept inbound call and immediate make outbound call
(redirect inbound) through his peer xxxxxxxxxxx, but got error "rejected
due to usage limit of 1".

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

---------------------------------------------------------------------- 
 (0103800) file (administrator) - 2009-04-27 09:24
 http://bugs.digium.com/view.php?id=14913#c103800 
---------------------------------------------------------------------- 
I've confirmed exactly what you say here, but I don't know if there is a
solution we can come to for this besides not using call-limit like this.
You want individual limits on both the incoming and outgoing sides, not
using limitonpeers has the side effect of splitting them apart but provides
poor device state. The only suggestion I have right now is to use group
counting to limit things. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-04-27 09:24 file           Note Added: 0103800                          
======================================================================




More information about the asterisk-bugs mailing list