[asterisk-users] Load Balance Trunks

Abid Saleem abid_asterisk at hotmail.com
Fri Jul 1 08:48:53 CDT 2011


Dear Steve Edward,
I appreciate your response and help. Here are the answers inline to your questions. Please help me in writing an AGI script or whatever required if you can as I am not a programmer.
Is your intent to 'load balance' between 100 trunks or will you fill up > one before moving on to the next? Can unused capacity be 'rolled over' to > the next day?Abid -> The intention is to load balance between 100 or even more trunks. Filling up one trunk may have another problem because we have another restriction on 5 simultaneous calls per trunk. Yes unused capacity can be rolled over to the next day. Anything is fine that does not break these two restrictions of 120 mins/day/trunk and 5 simultaneous calls/trunk. > What happens if you 'go over?' Will the call in flight be terminated? Will > the next origination fail? Will you get a nasty rate spike?Abid -> If we go over, the call will not be terminated nor the next origination will fail nor we will get nasty rate spike but they will send us warnings and then finally block our trunks.

Best
Regards,

------------------------------- 

Abid
Saleem

Technical Manager NGN

Terminus Technologies

 



 

Mobile:  +92 303 7777 648

Email: abid at terminusbilling.com


MSN: abid_saleem10 at hotmail.com  


Web Site: www.terminustech.com

> Date: Wed, 29 Jun 2011 07:42:55 -0700
> From: asterisk.org at sedwards.com
> To: asterisk-users at lists.digium.com
> Subject: Re: [asterisk-users] Load Balance Trunks
> 
> On Wed, 29 Jun 2011, Abid Saleem wrote:
> 
> > I have 100 Trunks from my Provider. My Provider is restricting me to 
> > make only 120 minutes Call duration / trunk / day. So I want to load 
> > balance my calls to these 100 trunks. Please advise in this regard ASAP. 
> > Thanks in advance.
> 
> The arrangement sounds 'sketchy' to me :)
> 
> You will need to use a database (MySQL, ASTDB, etc) of some sort to keep 
> persistent (surviving a crash or restart) track of the usage. You will 
> also need some sort of lock mechanism (usually a feature of a 'real' 
> database) to prevent race conditions with 
> regard to simultaneous calls.
> 
> While you can code up database access in dialplan, my personal preference 
> is to wrap database code up in an AGI because you have better control, 
> robustness and maintainability. Also, database access in dialplan is just 
> plain ugly.
> 
> Is your intent to 'load balance' between 100 trunks or will you fill up 
> one before moving on to the next? Can unused capacity be 'rolled over' to 
> the next day?
> 
> What happens if you 'go over?' Will the call in flight be terminated? Will 
> the next origination fail? Will you get a nasty rate spike?
> 
> -- 
> Thanks in advance,
> -------------------------------------------------------------------------
> Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
> Newline                                              Fax: +1-760-731-3000
> 
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>                http://www.asterisk.org/hello
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110701/d091486d/attachment.htm>


More information about the asterisk-users mailing list