Markus <unive...@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 the results. 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. /Benny -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users