Limit Channels for a Domain

Status
Not open for further replies.

ElecBoy

New Member
Sep 10, 2017
15
2
3
39
Is there a way I can limit how many simultaneous calls or Channels a domain can use? Like 10 incoming and outgoing? Thanks!
 

tag915

Member
Sep 24, 2018
67
6
8
Elec, I believe you can do this through the domain Dialplan Manager using the setting "call-limit".

Dialplan -> Dialplan Manager -> call-limit
 

ElecBoy

New Member
Sep 10, 2017
15
2
3
39

tag915

Member
Sep 24, 2018
67
6
8
I believe the instructions I gave earlier allow both inbound and outbound limits to be set but maybe I'm missing something here. Below is a screenshot.

Call_limit.png
 

ElecBoy

New Member
Sep 10, 2017
15
2
3
39
I believe the instructions I gave earlier allow both inbound and outbound limits to be set but maybe I'm missing something here. Below is a screenshot.

View attachment 526


Hi @tag915

Thank you for your reply, so it did work for Inbound, but not outbound. I was trying with 1 simultaneous calls, Thanks for your help.
 

tag915

Member
Sep 24, 2018
67
6
8
I found the issue is the variable its looking at {call_direction} is not yet set, so the expression always returns false and doesn't set the limit. If you want to set the limit for both inbound and out bound I believe you can have it check the {user_exists} variable instead. This should return true if its not a local extension. I've do some simple test and it worked but you might want to do a little deeper testing to make sure there are no negative results. Below is a screenshot.

Call_limit.png

Note: Maybe someone else can shed some light on the {call_direction} variable. Its used in most Dialplan settings but not sure when its actually set because most seem to return a null value.
 
Last edited:

jordan_richardo

New Member
Jul 11, 2017
2
0
1
37
I found the issue is the variable its looking at {call_direction} is not yet set, so the expression always returns false and doesn't set the limit. If you want to set the limit for both inbound and out bound I believe you can have it check the {user_exists} variable instead. This should return true if its not a local extension. I've do some simple test and it worked but you might want to do a little deeper testing to make sure there are no negative results. Below is a screenshot.

View attachment 527

Note: Maybe someone else can shed some light on the {call_direction} variable. Its used in most Dialplan settings but not sure when its actually set because most seem to return a null value.

I was able to get this to work, but it appears to break park on Yealink phones. I am not too sure where to start on that, does anyone have any suggestions?
 

ad5ou

Active Member
Jun 12, 2018
884
196
43
What I did for a certain domain that needed the "outbound" variable set earlier is to add a custom dial plan around order 15 but anything before the call-limit dial plan should work. I check for 10+ digits since all outbound calls for this customer require the area code. if the condition matches, it sets the direction variable. The key to making sure the variable is set when you need it is to set "inline" to true.
1639064485416.png
 

mcs3ss2

Active Member
Sep 8, 2020
250
26
28
AU
here is the dialplan manager, Even though I have set call limit to 2
I was able to make 4 calls. 2 inbound and 2 outbound
Then I was able to make 5 outbound calls, see image attached 5 calls on hold (all outbound)

Any thoughts ?


1640614318181.png

1640616049169.png
 
Status
Not open for further replies.