home Asterisk used for >1 yr, running on small Ubuntu machine, works great.
Destination-based routing used to route outgoing calls between 3 service providers (also works fine).
Recently changed ISP and now an new interesting issue arises: an even more efficient form of routing would be something like:
for national landline numbers, use provider X
for national mobile numbers, use provider Y
for international numbers, use provider Z for the first 200 minutes of calls per month, but if >200 minutes used provider Y
Is it possible to do this with Asterisk? It does not immediately appear to be possible but this might just be my lack of knowledge.
You would need to update a value in astdb, based on the CDR information, possibly gathered in the h extension. It might not be 100% accurate, and you will overrun because of calls in progress.
Sorry 'bout that. I did read the various guides, but that was not completely obvious.
[quote=“david55”]
You would need to update a value in astdb, based on the CDR information, possibly gathered in the h extension. It might not be 100% accurate, and you will overrun because of calls in progress.[/quote]
OK, thanks. Now that I see where to look, I should be able to figure it out. astdb is running on a separate MySQL db in my setup.