asterisk2billing.org
http://forum.asterisk2billing.org/

Rotation of trunk
http://forum.asterisk2billing.org/viewtopic.php?f=33&t=10717
Page 1 of 1

Author:  graher01 [ Sun Feb 02, 2014 5:58 pm ]
Post subject:  Rotation of trunk

Hi,
I am trying to figure out how to have a2billing rotate the trunk. I have 4 gateway I have on failover to the other ones the problem that I am facing the first gateway is the one being access all the time when ever it is free it is terminating. what I would like either they terminate to a gateway at radom or in sequence. example if gateway 1 terminate a call the next time another gateway would terminate the call and so on. is it possible in a2billing.

thanks

Author:  bucasia [ Mon Feb 03, 2014 2:13 pm ]
Post subject:  Re: Rotation of trunk

You could try using a (local) DNS name for the trunk host and see if Asterisk will do round robin for resolving the IP. This would only work if Asterisk resolved the host name each time (not sure it does) and all other trunk details were the same.

Ideally you probably want to use something like OpenSIPS (running on the same server?) to do the load balance. Asterisk would send the call to OpenSIPS, and that would send it out to one of the trunks.

I'm not sure if maybe PJSip in Asterisk 12 will provide more flexibility to do this sort of stuff.

Joe - have you started looking at Asterisk 12/PJSip yet and if it will work with A2Billing?

Thanks, Matt

Author:  asm2me [ Sun Dec 20, 2015 11:54 am ]
Post subject:  Re: Rotation of trunk

please check this
http://fast-edu.com/market/index.php/asterisk-trunk-loadbalancing.html

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/