[asterisk-users] Rate sheet "normalization"

Ast Coder asteriskcoding at gmail.com
Thu Mar 15 00:07:07 CDT 2012


 A2Billing doesn't do that. A2Billing in fact has a lot of shortcomings one
of which is this exact issue.

I would suggest running rate sheets against each other for finding true LCR
and then only uploading the rates that are cheaper into the system. In most
cases there are not such high differences but if there are then this is the
only way. I know rate normalization talk comes up all the time on
FreeSwitch Freenode channel and it probably does on OpenSIPs as well. Check
there for some good advice.




On Wed, Mar 14, 2012 at 7:35 PM, Benny Amorsen <benny+usenet at amorsen.dk>wrote:

> 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
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120315/531500b8/attachment.htm>


More information about the asterisk-users mailing list