Author |
Message |
vedeya Brekeke Junior Member
Joined: 13 Feb 2010 Posts: 8
|
Posted: Sat Feb 13, 2010 10:54 pm Post subject: Limiting concurrent calls to each dial plan |
|
|
1. Brekeke Product Name and version:
Brekeke SIP Server, 2.4.3.0/286
2. Java version:
1.6.0_11
3. OS type and the version:
Linux version 2.6.22-vs2.2.0.7-gentoo
4. UA (phone), gateway or other hardware/software involved:
5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/networkpatterns.html :
Pattern9
6. Your problem:
I would like to be able to control how many concurrent calls are made, simply I would like to allow how many session are allowed for each dial plan, "live sessions". I have 3 dial plans each one is for each provider so when the first dial plan is using 20 live sessions, I want session 21 to use the second dial plan.
Dial plan 1: 0 to 20 live calls can made and used
Dial plan 2: 21 to 35 live calls
Dial plan 3: 36 to 45 live calls
if dial plan 1 used all the 20 sessions, the 21 will go to the second dial plan, if two calls are ended the next call to go to dial plan 1.
Please let me know if my concern is not clear.
Thanks |
|
Back to top |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
|
Back to top |
|
vedeya Brekeke Junior Member
Joined: 13 Feb 2010 Posts: 8
|
Posted: Thu Feb 18, 2010 8:39 am Post subject: |
|
|
Is this applicable on the Brekeke Sip Server? or is it only for Brekeke PBX?
Is it possible to use variables? and does the variables save the value for the next time the function is called?
May I get a sample code using dial plan plugin? |
|
Back to top |
|
vedeya Brekeke Junior Member
Joined: 13 Feb 2010 Posts: 8
|
Posted: Thu Feb 18, 2010 9:44 am Post subject: |
|
|
If we buy support from brekeke would you be able to provide us for the solution? And how long would it take?
Thank you, |
|
Back to top |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
Posted: Thu Feb 18, 2010 2:50 pm Post subject: |
|
|
Quote: |
Is this applicable on the Brekeke Sip Server? or is it only for Brekeke PBX? |
it is only for brekeke pbx
Quote: |
Is it possible to use variables? and does the variables save the value for the next time the function is called? |
you can use $sessionnum which is at http://www.brekeke-sip.com/download/bss/v2_x/bss_admin_en.pdf
page 61
but it is for checking all sessions
you'd better email brekeke support for plugin sample support@brekeke.com |
|
Back to top |
|
lakeview Brekeke Master Guru
Joined: 15 Nov 2007 Posts: 319
Location: Florida
|
Posted: Mon Feb 22, 2010 1:15 pm Post subject: |
|
|
Hi all,
You need to create a plugin based on the Session Plugin API as hope mentioned.
>> Dial plan 3: 36 to 45 live calls
What happen if the number of concurrent calls exceeds 45? |
|
Back to top |
|
vedeya Brekeke Junior Member
Joined: 13 Feb 2010 Posts: 8
|
Posted: Tue Feb 23, 2010 10:11 am Post subject: |
|
|
lakeview wrote: |
>> Dial plan 3: 36 to 45 live calls
What happen if the number of concurrent calls exceeds 45? |
The last dial plan will take all the sessions. so it will be 36 to infinite. |
|
Back to top |
|
lakeview Brekeke Master Guru
Joined: 15 Nov 2007 Posts: 319
Location: Florida
|
Posted: Wed Feb 24, 2010 6:59 pm Post subject: |
|
|
Have you tried the making of own plugin? |
|
Back to top |
|
vedeya Brekeke Junior Member
Joined: 13 Feb 2010 Posts: 8
|
Posted: Wed Feb 24, 2010 9:05 pm Post subject: |
|
|
lakeview wrote: |
Have you tried the making of own plugin? |
No, it has been a while since the last time I programmed Java.
Some help would be appreciated |
|
Back to top |
|
vedeya Brekeke Junior Member
Joined: 13 Feb 2010 Posts: 8
|
Posted: Thu Feb 25, 2010 1:42 am Post subject: |
|
|
What I am looking for is every time a session start on a dial plan a variable will be increased by 1, and when the same session is ended then the same variable will decrease by 1.
we can have 4 variable and every one can be used for a dial plan, then we can use the built in math:
$math.lt( $sessionnum, "47" )=true
but instead of $sessionnum we should have our custom variable.
Thanks |
|
Back to top |
|
lakeview Brekeke Master Guru
Joined: 15 Nov 2007 Posts: 319
Location: Florida
|
Posted: Thu Feb 25, 2010 8:51 pm Post subject: |
|
|
Yes. you are correct.
We need to create the session plugin to increase and decrease the counter. |
|
Back to top |
|
vedeya Brekeke Junior Member
Joined: 13 Feb 2010 Posts: 8
|
Posted: Fri Feb 26, 2010 9:48 am Post subject: |
|
|
The thing I am not sure about is, how to store that variable and keep it some where in the memory not loosing it every time you call the function. |
|
Back to top |
|
lakeview Brekeke Master Guru
Joined: 15 Nov 2007 Posts: 319
Location: Florida
|
Posted: Fri Feb 26, 2010 4:19 pm Post subject: |
|
|
You can use own counter variable in the plugin because it is Java based. |
|
Back to top |
|
vedeya Brekeke Junior Member
Joined: 13 Feb 2010 Posts: 8
|
Posted: Sat Feb 27, 2010 10:20 am Post subject: |
|
|
Quote: |
You can use own counter variable in the plugin because it is Java based |
Would you please give me more explanation of how to use own counter variable in java?
Thanks, |
|
Back to top |
|
lakeview Brekeke Master Guru
Joined: 15 Nov 2007 Posts: 319
Location: Florida
|
Posted: Tue Mar 02, 2010 12:32 pm Post subject: |
|
|
I recommend you to contact Brekeke's support team because they have the developer support program.
Good luck. |
|
Back to top |
|
|