<span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt"><span style="font-family: tahoma,arial,sans-serif; font-size: 10pt;"><hr width="100%" size="2" align="center" />
<b>From</b>: "Abid Saleem" &lt;abid_asterisk@hotmail.com&gt;<br />
<b>Sent</b>: Friday, July 01, 2011 9:49 AM<br />
<b>To</b>: "Users List" &lt;asterisk-users@lists.digium.com&gt;<br />
<b>Subject</b>: Re: [asterisk-users] Load Balance Trunks</span><br />
<br />
<style>
    <!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
-->
</style>
<div dir="ltr">Dear Steve Edward,
<div><br />
</div>
<div>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.</div>
<div><br />
</div>
<div>Is your intent to 'load balance' between 100 trunks or will you fill up&nbsp;<br style="text-indent: 0px !important;" />
&gt; one before moving on to the next? Can unused capacity be 'rolled over' to&nbsp;<br style="text-indent: 0px !important;" />
&gt; the next day?<br style="text-indent: 0px !important;" />
<b><span class="Apple-style-span" style="color: #00b050;">Abid -&gt; 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.</span></b></div>
<div>&nbsp;<br style="text-indent: 0px !important;" />
&gt; What happens if you 'go over?' Will the call in flight be terminated? Will&nbsp;<br style="text-indent: 0px !important;" />
&gt; the next origination fail? Will you get a nasty rate spike?</div>
<div><b><span class="Apple-style-span" style="color: #00b050;">Abid -&gt; 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.</span></b><br />
<br />
<span style="font-family: courier new;">abod -&gt; Another solution would be to use call groups. You could create a load balancer that increments the group everytime a call is sent to a trunk when the call attempt clears the group is decremented. Check your counts and use the first trunk that is not saturated. It is a very lowtech soltion and would require some planning on how you want your roll over to occure but it would work and you would not have to use any agi or database tech if you did not want to. </span><br />
<br />
</div>
</div></span>