<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">What you are looking for is ANI II,&nbsp;<a href="http://www.nanpa.com/number_resource_info/ani_ii_assignments.html">http://www.nanpa.com/number_resource_info/ani_ii_assignments.html</a><div><br></div><div>ie:&nbsp;00=pots, 27=payphone, 29=prison</div><div><br></div><div>These are presented to you from your carrier in a number of different ways, digits prepended onto the the number in the FROM address header field, in seperate isup header field, or a completely customer header. I'm sure there are a number of other ways carriers pass it to you. I'd look at some captured invite packets to see if you're already getting ANI II, if not talk to your carrier, certainly possible that a number of small carriers don't pass you information like that.&nbsp;</div><div><br></div><div>Robin</div><div><br></div><div><br><div><div>On Jul 9, 2009, at 6:17 PM, Eric Fort wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">I'm looking for a means to determine the calling line type (I believe technically class is the term but I could have that wrong) that a call originated on and route the call based upon this information.&nbsp; For instance if a call comes in from a pay phone I want it routed differently than a call from a residence or business.&nbsp; How can I detect the calling line type or look up this info based upon ani or clid info.&nbsp; (I've been told that access to NPAC is required, though I wouldn't think it should be as I know calls from payphones can be denied.)&nbsp; Help and info would be appreciated.<br> <br>Thanks,<br><br>Eric Fort<br>FortConsulting<br> _______________________________________________<br>--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com">http://www.api-digital.com</a>--<br><br>asterisk-biz mailing list<br>To UNSUBSCRIBE or update options visit:<br> &nbsp;&nbsp;<a href="http://lists.digium.com/mailman/listinfo/asterisk-biz">http://lists.digium.com/mailman/listinfo/asterisk-biz</a></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="font-family: arial, sans-serif; border-collapse: collapse; font-size: 13px; "><br></span></div></div></span> </div><br></div></body></html>