Hi @ all, i set a server to a costumer of mine with a TE207P for use with 2 E1 Lines. I set them together into one group in zaptel/zapata.conf The point is now, the customer has a free-volumina of 60k minutes per month, per line. How can i make a kind of load balancing, that both lines will be trafficed the same way ? I read something about DIAL(Zap/r1/.) for using round robin, and it seems to work. Is there any other possible way to make sure that all lines are used in the same amount of minutes? Thanks in regard, Eric -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20071212/408ab51c/attachment.htm
On Dec 12, 2007 8:08 AM, Eric Delaporte <edelaporte at gmx.de> wrote:> I read something about DIAL(Zap/r1/?) for using round robin, and it seems to > work.That will give you the same number of calls routed to each line> Is there any other possible way to make sure that all lines are used in the > same amount of minutes?You are going to need an AGI app or something storing how many minutes have been routed through each line and, on every call, choosing the less used one as the line to go out. -- Andres Jimenez GPG : http://www.andresin.com/gpg/gandresin at gmail.com.asc
Why not Random application available in Asterisk ? quite simple I believe. asterisk1*CLI> show application Random -= Info about application 'Random' =- [Synopsis] Conditionally branches, based upon a probability [Description] Random([probability]:[[context|]extension|]priority) probability := INTEGER in the range 1 to 100 best regards, Marco Mouta On Dec 12, 2007 8:08 AM, Eric Delaporte <edelaporte at gmx.de> wrote:> Hi @ all, > > > > i set a server to a costumer of mine with a TE207P for use with 2 E1 > Lines. > > I set them together into one group in zaptel/zapata.conf > > > > The point is now, the customer has a free-volumina of 60k minutes per > month, per line. > > How can i make a kind of load balancing, that both lines will be trafficed > the same way ? > > > > I read something about DIAL(Zap/r1/?) for using round robin, and it seems > to work. > > > > Is there any other possible way to make sure that all lines are used in > the same amount of minutes? > > > > Thanks in regard, > > > > Eric > > _______________________________________________ > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- Esta mensagem (incluindo quaisquer anexos) pode conter informa??o confidencial para uso exclusivo do destinat?rio. Se n?o for o destinat?rio pretendido, n?o dever? usar, distribuir ou copiar este e-mail. Se recebeu esta mensagem por engano, por favor informe o emissor e elimine-a imediatamente. Obrigado. This e-mail message is intended only for individual(s) to whom it is addressed and may contain information that is privileged, confidential, proprietary, or otherwise exempt from disclosure under applicable law. If you believe you have received this message in error, please advise the sender by return e-mail and delete it from your mailbox. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20071212/2934faea/attachment.htm
You can use the asterisk db for this. Simply set a variable to 1 or 0 if 1 set to 0 and use g2 if 0 set to 1 and use g1. ----- Original Message ----- From: "Andres Jimenez" <gandresin at gmail.com> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users at lists.digium.com> Sent: Wednesday, December 12, 2007 11:28 AM Subject: Re: [asterisk-users] Load Balancing over 2 E1 Lines> On Dec 12, 2007 8:08 AM, Eric Delaporte <edelaporte at gmx.de> wrote: > > >> I read something about DIAL(Zap/r1/?) for using round robin, and it seems >> to >> work. > That will give you the same number of calls routed to each line > >> Is there any other possible way to make sure that all lines are used in >> the >> same amount of minutes? > You are going to need an AGI app or something storing how many minutes > have been routed through each line and, on every call, choosing the > less used one as the line to go out. > > > -- > Andres Jimenez > > GPG : http://www.andresin.com/gpg/gandresin at gmail.com.asc > _______________________________________________ > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users