[Asterisk-Users] Least Cost Routing
Chris A. Icide
chris at netgeeks.net
Wed Oct 13 17:56:58 MST 2004
On 05:44 PM 10/13/2004, Duane wrote:
>Matthew Boehm wrote:
>
>> If any others are successfully using another Least Cost Routing method,
>> please pass it along.
>
>For simple things you can slightly hard code it into the dialing plan in
>asterisk, for example in mine I have asterisk setup to check e164.org
>then goes to a cheap voip provider and failing that goes to pstn.
>
>Larger scale I'd probably go with an AGI script load all
>routes/providers into a database and then have the AGI script pull all
>providers for a route out of the database in order of cost and loop
>through them till a call succeeded...
>
>If you need it to scale better you'd probably have to resort to writing
>an app in c, then sending the call into that.
>
But the trollphone system does exactly this in c code as an asterisk
app. Why write a AGI?
the folks at trollphone included an sql schema file as part of the
package. It includes all table structures.
I think it's schema.sql in their distribution.
-Chris
More information about the asterisk-users
mailing list