You biggest issue is going to be determining what a local call is. There appears to be a lot of definitions about what a local call is. I assume you are talking VOIP which in most cases there is no local rate it is just charged at a national rate.<div>
<br></div><div>All the rest are easy, if it starts with 02, 03 etc or even 612, 613 then it is national, mobile is 04 or 614, 1300,13,1800 are the same. You can either look at the start of the phone number to determine it or use regex.<div>
<br></div><div><br><div class="gmail_quote">On 10 March 2012 17:31, Sam Scafe <span dir="ltr"><<a href="mailto:samantha@smellyblackdog.com.au">samantha@smellyblackdog.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-AU" link="blue" vlink="purple"><div><p class="MsoNormal">Guys<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I am looking for information on how to process telephone cdr’s so I can do accurate billing.<u></u><u></u></p>
<p class="MsoNormal">What I need to do from the called number is work out<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p><u></u><span>-<span style="font:7.0pt "Times New Roman"">          </span></span><u></u>If it is local<u></u><u></u></p>
<p><u></u><span>-<span style="font:7.0pt "Times New Roman"">          </span></span><u></u>If it is a National Call<u></u><u></u></p><p><u></u><span>-<span style="font:7.0pt "Times New Roman"">          </span></span><u></u>If it is Mobile Call<u></u><u></u></p>
<p><u></u><span>-<span style="font:7.0pt "Times New Roman"">          </span></span><u></u>If it is a 1300/13/1800 etc<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I have been told of a beast on the ACMA website but unable to locate it. If anyone can help please contact off list<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><span>Regards<u></u><u></u></span></p><p class="MsoNormal"><span><u></u> <u></u></span></p><p class="MsoNormal"><span>Sam <u></u><u></u></span></p>
<p class="MsoNormal"><span>System Admin<br>The Smelly Black Dog Group of Companies<u></u><u></u></span></p><p class="MsoNormal"><span>D: 07 42424712<u></u><u></u></span></p><p class="MsoNormal"><u></u> <u></u></p></div></div>
<br>_______________________________________________<br>
AusNOG mailing list<br>
<a href="mailto:AusNOG@lists.ausnog.net">AusNOG@lists.ausnog.net</a><br>
<a href="http://lists.ausnog.net/mailman/listinfo/ausnog" target="_blank">http://lists.ausnog.net/mailman/listinfo/ausnog</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><img src="http://www.onemetric.com.au/images/Signature.png"><br><div><b><font size="6">Peter Blackford</font></b></div><div><b>Technical Director</b></div>
<div><b style="background-color:rgb(255,255,255)"><font color="#33cc00">P: </font></b>02 4032 7940</div><div><b style="background-color:rgb(255,255,255)"><font color="#33cc00">M:</font></b>  0412 699 176<b style="background-color:rgb(255,255,255)"><font color="#33cc00"><br>
</font></b></div><div><b style="background-color:rgb(255,255,255)"><font color="#33cc00">E:</font></b> <a href="mailto:peter@onemetric.com.au" target="_blank">peter@onemetric.com.au</a><font color="#666666" face="'Lucida Sans Unicode', 'Lucida Grande', sans-serif"><span style="font-size:12px"><br>
</span></font></div><div><b style="background-color:rgb(255,255,255)"><font color="#33cc00">W:</font></b> <a href="http://www.onemetric.com.au" target="_blank">www.onemetric.com.au</a><br></div><div><br></div><br>
</div></div>