could MS-Excel possibly be the easiest way to do that normalization ! just merge two rate sheets put some formulas in there and use it in your A2billing or XYZ tool  !<br><br><div class="gmail_quote">On Thu, Mar 15, 2012 at 10:07 AM, Ast Coder <span dir="ltr">&lt;<a href="mailto:asteriskcoding@gmail.com">asteriskcoding@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> A2Billing doesn&#39;t do that. A2Billing in fact has a lot of shortcomings one of which is this exact issue.<div><br>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.</div>
<div class="HOEnZb"><div class="h5">

<div><br></div><div><br><br><br><div class="gmail_quote">On Wed, Mar 14, 2012 at 7:35 PM, Benny Amorsen <span dir="ltr">&lt;<a href="mailto:benny%2Busenet@amorsen.dk" target="_blank">benny+usenet@amorsen.dk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>Markus &lt;<a href="mailto:universe@truemetal.org" target="_blank">universe@truemetal.org</a>&gt; writes:<br>
<br>
&gt; Does such a thing exist?<br>
<br>
</div>How does a2billing do it? It should be pretty easy in an AGI. If you can<br>
afford a linear lookup per call, just grep through the array of prefixes<br>
to find the ones matching a particular call, then pick the cheapest from<br>
the results.<br>
<br>
If you need something faster than linear it gets tricky. It would be<br>
tempting to preprocess the list to say 5 digits, do a hash lookup on<br>
those, and then use the process above.<br>
<span><font color="#888888"><br>
<br>
/Benny<br>
</font></span><div><div><br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br></div>
</div></div><br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>