[Asterisk-Users] Asterisk and LCR

Darren Wiebe darren at aleph-com.net
Tue Aug 16 09:51:27 MST 2005


If you are interested in helping test a solution like this, please let 
me know.  I'm currently working on implementing something along these lins.

Darren Wiebe
darren at aleph-com.net

Johann wrote:

> My company is thinking about putting most of the logic for determining 
> which route is the cheapest in an AGI script.  Some dialplan logic 
> wrapped around it to attempt to dial the routes in the order 
> returned.  It hasn't been fully implemented yet.
>
> The idea is to move the routing decision making outside of asterisk so 
> a programming language can be taken advantage of without relying on 
> always changing the extensions.conf file.
>
> --johann
>
> Damon Estep wrote:
>
>>
>>  
>>
>>> Hello,
>>>
>>> How do you guys implement LCR in Asterisk?
>>>
>>>   
>>
>>
>> I have experimented with 2 ways, both seem to have issues and further
>> testing is taking place now.
>>
>> Method1, use realtime for extensions and load your routing tables in an
>> outbound context. Our requirements are LCR for the ~150,000 USA NPA-NXX
>> combinations, everything outside of that goes through a single carrier
>> so no routing needed. The performance stinks, takes too long to start
>> the call. I need to do further testing and see if this is just a MySQL
>> server (hardware) performance issue or a database structure issue
>> (missing useful indexes).
>>
>> The second method is to use #include lcrtableflatfile.conf in extensions
>> .conf and drop a single outbound context in that file with all of the
>> routes. This method is far faster completing calls, but the asterisk
>> reload command takes a long, long, long time (several minutes) to read
>> the huge file. During the reload calls fail.
>>
>> Any input from others that have already done what I am doing would be
>> helpful, what works best?
>>
>> Damon
>> _______________________________________________
>> Asterisk-Users mailing list
>> Asterisk-Users at lists.digium.com
>> http://lists.digium.com/mailman/listinfo/asterisk-users
>> To UNSUBSCRIBE or update options visit:
>>   http://lists.digium.com/mailman/listinfo/asterisk-users
>>
>>
>>  
>>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>




More information about the asterisk-users mailing list