Page 1 of 1

How to limit the "Max Trunk" for each carrier ?

PostPosted: Wed Feb 09, 2022 12:57 am
by pikalla
Hello to all,
I would like to add a new carrier (10 trunks) in my server, my old carrier required me to limit the calls to 20 (the number of trunk I took from them)
But in the server settings, it limits for all carriers.

Please, How to limit the "Max Trunk" for each carrier ?

Re: How to limit the "Max Trunk" for each carrier ?

PostPosted: Wed Feb 09, 2022 4:33 pm
by carpenox
there isnt really a way, is it a cluster?

Re: How to limit the "Max Trunk" for each carrier ?

PostPosted: Wed Feb 09, 2022 10:51 pm
by striker
you can use call-limit=20 in your carrier settings.
but this will not update the vicidial /campaign about the carrier limit ie:20 , you need to set your campaign dial ratio according to the number of agents to not to dial more than 20 calls, if more than 20 dialed asterisk will drop the call without dialing.

eg:
[trunkname]
type=peer
username=
secret=
call-limit=20

Re: How to limit the "Max Trunk" for each carrier ?

PostPosted: Tue Jul 05, 2022 4:48 pm
by williamconley
pikalla wrote:Hello to all,
I would like to add a new carrier (10 trunks) in my server, my old carrier required me to limit the calls to 20 (the number of trunk I took from them)
But in the server settings, it limits for all carriers.

Please, How to limit the "Max Trunk" for each carrier ?


Closest Vicidial has is:

Trunks Per Server: Admin->Servers->{Choose Server}->Max Trunks (obviously NOT per carrier ... so)

Allows "Trunks per Campaign": Admin->Servers->{Choose Server}->TRUNKS FOR THIS SERVER section. With this, you can set all the campaigns using this carrier to a limit adding up to your number.

Alternately: If you want to overflow to another carrier rather than "stop dialing entirely when you hit this limit", you can do that with a dialplan entry that can either balance among carriers or check the count of a carrier group and switch to another carrier group when a maximum is reached.

Beware that any method outside Vicidial's built-in feature set will not be known by Vicidial and may result in failed calls that were never actually tried, thus resulting in "NA" on a call that was never Really Dialed. Bad stats. Thus the "trunks for this server" method is preferable if you want an actual limit rather than an overflow. At least with overflow, the calls all generate, it's just a question of which carrier it's sent through. So no "NA". 8-)