[Asterisk-Users] Asterisk and LCR

asterisk at lists.styx.org asterisk at lists.styx.org
Tue Aug 16 11:03:08 MST 2005


On Tue, Aug 16, 2005 at 09:29:24AM -0800, Innocent Evil wrote:
> How about  this:
> 
> 1. Put all the routes of  all the providers in a MySQL table
> 2. Write a script with a 'clever' algorithm to find out cheapest route of
> each prefix.
> 3. Based on #2..  make a lcr_cheapest_route.conf
> 4. include lcr_cheapest_route.conf in extension.conf
> 
> But I don't know, how much resource asterisk will take after loading
> lcr_cheapest_route.conf
> Also, I don't have any idea about the performance would be.

That would probably work, but there are limitations with this approach:

	- changing the routes (which might happen more than you might expect,
	  especially if you keep real-time metrics) will mean doing an
	  "extensions reload" which is, apparently, disruptive if it takes
	  any appreciable amount of time.
	- it means that (short of doubling or tripling the size of your tables)
	  you are restricted to one and only one route per destination, which
	  may or may not be what you want.
	- having multiple contexts (aka policies) also means doubling/tripling/...
	  the size of the table.

> What do you think?

I think what you suggest should work for the simple case, but I don't
think it scales well. It depends on what your needs are. 

Cheers,
-w
--
William Waites
ww -NO at SPAM- magicphone.ca



More information about the asterisk-users mailing list