[asterisk-users] Rate sheet "normalization"
benny+usenet at amorsen.dk
Wed Mar 14 18:35:53 CDT 2012
Markus <universe at truemetal.org> writes:
> Does such a thing exist?
How does a2billing do it? It should be pretty easy in an AGI. If you can
afford a linear lookup per call, just grep through the array of prefixes
to find the ones matching a particular call, then pick the cheapest from
If you need something faster than linear it gets tricky. It would be
tempting to preprocess the list to say 5 digits, do a hash lookup on
those, and then use the process above.
More information about the asterisk-users