Concurrent call limit

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
damatta
Posts: 227
Joined: Fri Oct 07, 2005 5:28 am
Location: Brazil

Concurrent call limit

Post by damatta »

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
Posts: 289
Joined: Sun Sep 21, 2008 10:31 pm
Location: Japan

Post by 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
Posts: 227
Joined: Fri Oct 07, 2005 5:28 am
Location: Brazil

Post by damatta »

They do not have a specific plugin for this. Any thoughts?
Laurie
Posts: 245
Joined: Mon Jan 07, 2008 12:25 pm

Post by Laurie »

sympology
Posts: 30
Joined: Thu Feb 18, 2010 7:47 am
Location: UK

Post by 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
Posts: 30
Joined: Thu Feb 18, 2010 7:47 am
Location: UK

Post by 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
Posts: 289
Joined: Sun Sep 21, 2008 10:31 pm
Location: Japan

Post by 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
Posts: 289
Joined: Sun Sep 21, 2008 10:31 pm
Location: Japan

Post by 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
Posts: 30
Joined: Thu Feb 18, 2010 7:47 am
Location: UK

Post by sympology »

Just to update, got this working and did as expected (once got syntax correct)
Post Reply