[asterisk-biz] determining class of service

Robin Rodriguez rrodriguez at ifbyphone.com
Thu Jul 9 19:01:18 CDT 2009


What you are looking for is ANI II, http://www.nanpa.com/number_resource_info/ani_ii_assignments.html

ie: 00=pots, 27=payphone, 29=prison

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.

Robin


On Jul 9, 2009, at 6:17 PM, Eric Fort wrote:

> 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.  For instance if a call comes in from a pay phone I  
> want it routed differently than a call from a residence or  
> business.  How can I detect the calling line type or look up this  
> info based upon ani or clid info.  (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.)  Help and info would be  
> appreciated.
>
> Thanks,
>
> Eric Fort
> FortConsulting
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-biz mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-biz



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-biz/attachments/20090709/d03ebb7c/attachment.htm 


More information about the asterisk-biz mailing list