Couldnt you do this by calling MySql?  Compare who has the least minutes used and then send it out the appropriate channel?<div><br></div><div>--Matt<br><br><div class="gmail_quote">On Tue, Nov 24, 2009 at 7:07 AM, Eckhard Jokisch <span dir="ltr">&lt;<a href="mailto:e.jokisch@orange-moon.de">e.jokisch@orange-moon.de</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
I have 4 ISDN channels (2 lines) and each line may do calls of up to 360<br>
minutes/month for free.<br>
As I understand asterisk will pick the first available line so the probability<br>
is big that the other lines will not use their free minutes and the firs line<br>
will exceed the free minutes.<br>
How can I configure asterisk in a way that it looks up in the CDR which ISDN<br>
line has lest calling time in the present month and chosse this?<br>
<br>
Kind regards<br>
Eckhard<br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Matthew Desbiens<br>603.581.3160<br>//* EOF *//<br>
</div>