Forums Read-only archive

Concurrent call limit

9 posts · Brekeke SIP Server Forum

damatta Original post
1. Brekeke Product Name and version: Brekeke SIP Server 2.2.6.2

2. Java version: 1.5.0_14

3. OS type and the version: Windows 2003 5.2

4. UA (phone), gateway or other hardware/software involved: Linksys PAP2

5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/ ... terns.html : 9

6. Your problem: need a dialplan that limits concurrent call for each UA.
Harold
Use Brekeke PBX because it has the feature which meets your requirement.

Also.. I know Brekeke has the plugin which allows you limit a number of concurrent calls with DialPlan. Ask Brekeke to provide it.
damatta
They do not have a specific plugin for this. Any thoughts?
Laurie
sympology
I'm jumping on this old thread as the fix, could be what I need, but need a bit of help tweaking it.

I need to limit the number of TOTAL calls from a group of IP addresses.

e.g.

Limit to 50 calls in total from
@192.168.1.(1-15)

Also what response is given to call number 51?

Thanks.
Stu..
sympology
I've been looking into it (panic on this morning) and I'm think this would work...problem is it's live so I can't afford to mess it up.

[Matching Patterns]
$request = ^INVITE
From = sip:(.+)@ 192.168.1.2(0-5)
$route.underlimit ("MyCarrer", "50") = true

[Deploy Pattern]

$routename = MyCarrier
$continue = true.

So from above, I'm hoping any calls from 192.168.10.20 to 25 will work until 50 are hit, then after that a busy tone is given?

Would that be correct?

And to confirm, any other source address would be unaffected, right?

Thanks
Stu..
Harold
Stu,
Are you using Brekeke SIP Server ver 3.1 or newer? Older versions don't have the feature.


Your DialPlan can be written as

Rule: Over 50
Matching Patterns
$request = ^INVITE
$addrRange( "192.168.1.20", "192.168.1.25") = true
$route.underlimit ("MyCarrer", "50") = false

Deploy Patterns
$response = 486


Rule: Under 50
Matching Patterns
$request = ^INVITE
$addrRange( "192.168.1.20", "192.168.1.25") = true
$route.underlimit ("MyCarrer", "50") = true

Deploy Patterns
$routename = MyCarrier
$continue = true


It will return "486 Busy Here" if the number of concurrent calls sent from 192.168.1.20-25 reaches 50.
Harold
> I'm hoping any calls from 192.168.10.20 to 25

The definition "192.168.1.2(0-5)" is wrong.
it should be
$addr = ^192.168.1.2[0-5]$
or
$addrRange( "192.168.1.20", "192.168.1.25")


> And to confirm, any other source address would be unaffected, right?

It depends on DialPlan definitions. The above rule doesn't effect others.
sympology
Just to update, got this working and did as expected (once got syntax correct)