Author |
Message |
damatta Brekeke Master Guru
Joined: 07 Oct 2005 Posts: 227
Location: Brazil
|
Posted: Sat Jun 18, 2011 7:00 am Post subject: Concurrent call limit |
|
|
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 |
|
Harold Brekeke Master Guru
Joined: 21 Sep 2008 Posts: 289
Location: Japan
|
Posted: Sat Jun 18, 2011 4:19 pm Post subject: |
|
|
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 |
|
damatta Brekeke Master Guru
Joined: 07 Oct 2005 Posts: 227
Location: Brazil
|
Posted: Mon Feb 02, 2015 6:31 am Post subject: |
|
|
They do not have a specific plugin for this. Any thoughts? |
|
Back to top |
|
Laurie Brekeke Master Guru
Joined: 07 Jan 2008 Posts: 245
|
|
Back to top |
|
sympology Brekeke Addict
Joined: 18 Feb 2010 Posts: 30
Location: UK
|
Posted: Mon Jun 15, 2015 2:52 am Post subject: |
|
|
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 |
|
sympology Brekeke Addict
Joined: 18 Feb 2010 Posts: 30
Location: UK
|
Posted: Mon Jun 15, 2015 5:54 am Post subject: |
|
|
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 |
|
Harold Brekeke Master Guru
Joined: 21 Sep 2008 Posts: 289
Location: Japan
|
Posted: Mon Jun 15, 2015 3:00 pm Post subject: |
|
|
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 |
|
Harold Brekeke Master Guru
Joined: 21 Sep 2008 Posts: 289
Location: Japan
|
Posted: Mon Jun 15, 2015 3:10 pm Post subject: |
|
|
> 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 |
|
sympology Brekeke Addict
Joined: 18 Feb 2010 Posts: 30
Location: UK
|
Posted: Tue Jun 23, 2015 7:06 am Post subject: |
|
|
Just to update, got this working and did as expected (once got syntax correct) |
|
Back to top |
|
|