Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Concurrent call limit
Author Message
damatta
Brekeke Master Guru


Joined: 07 Oct 2005
Posts: 227
Location: Brazil

PostPosted: Sat Jun 18, 2011 7:00 am    Post subject: Concurrent call limit Reply with quote

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/networkpatterns.html : 9

6. Your problem: need a dialplan that limits concurrent call for each UA.
Back to top
View user's profile Yahoo Messenger MSN Messenger
Harold
Brekeke Master Guru


Joined: 21 Sep 2008
Posts: 286
Location: Japan

PostPosted: Sat Jun 18, 2011 4:19 pm    Post subject: Reply with quote

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.
Back to top
View user's profile
damatta
Brekeke Master Guru


Joined: 07 Oct 2005
Posts: 227
Location: Brazil

PostPosted: Mon Feb 02, 2015 6:31 am    Post subject: Reply with quote

They do not have a specific plugin for this. Any thoughts?
Back to top
View user's profile Yahoo Messenger MSN Messenger
Laurie
Brekeke Master Guru


Joined: 07 Jan 2008
Posts: 241

PostPosted: Mon Feb 02, 2015 1:03 pm    Post subject: Reply with quote

It can work for you.
http://wiki.brekeke.com/wiki/Limit-concurrent-sessions-through-a-route
Back to top
View user's profile
sympology
Brekeke Addict


Joined: 18 Feb 2010
Posts: 30
Location: UK

PostPosted: Mon Jun 15, 2015 2:52 am    Post subject: Reply with quote

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..
Back to top
View user's profile
sympology
Brekeke Addict


Joined: 18 Feb 2010
Posts: 30
Location: UK

PostPosted: Mon Jun 15, 2015 5:54 am    Post subject: Reply with quote

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 Patterns
$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..
Back to top
View user's profile
Harold
Brekeke Master Guru


Joined: 21 Sep 2008
Posts: 286
Location: Japan

PostPosted: Mon Jun 15, 2015 3:00 pm    Post subject: Reply with quote

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.
Back to top
View user's profile
Harold
Brekeke Master Guru


Joined: 21 Sep 2008
Posts: 286
Location: Japan

PostPosted: Mon Jun 15, 2015 3:10 pm    Post subject: Reply with quote

> 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.
Back to top
View user's profile
sympology
Brekeke Addict


Joined: 18 Feb 2010
Posts: 30
Location: UK

PostPosted: Tue Jun 23, 2015 7:06 am    Post subject: Reply with quote

Just to update, got this working and did as expected (once got syntax correct)
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1