[OpenSIPS-Users] determining interstate or intrastate

Brad Bendy brad.bendy at benganetworks.com
Mon Dec 12 21:06:30 CET 2011


Hey Kent,

Ive been using memcache for years to do this, just store all the NPAs
and have it return the state abbreviation code and then compare, has
worked very well for me.


On Mon, 2011-12-12 at 13:51 -0500, Kpirlo wrote:
> Hey guys, 
>   I was wondering what the best way to determine if an incoming call
> is interstate or intrastate within opensips. 
> I would normally create a key value hash of all areacodes: "areacode"
> -> "state" and so i could determine the ANI state and Dnis states
> quickly and then compare ani state to dnis state.
> However, i dont see that opensips can do custom hash variables. Is
> there some other way to do this in native opensips code, or should i
> use something like the perl module and call a function in perl to
> return inter or intra? 
> 
> 
> Thanks in advance, 
> 
> Kent
> 
> 
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users





More information about the Users mailing list