Im looking for a way to determine if the phone number I'm calling is a cell/mobile phone or not since it is not allowed to automatically dial those type of numbers.
-
Not a programming question, but check Twilio Lookup https://www.twilio.com/lookup – gogasca Sep 10 '15 at 04:57
-
This can totally be a programming question. There are several services out there that allow LRN look ups over an API. – hazmat Sep 19 '15 at 18:54
1 Answers
This will vary depending on where the number is from. If the number is part of the North American dial plan, what you were looking is for an LRN dip. For a given number (NPA-NXX-YYYY) the NPA-NXX is purchased by a provider, that provider then specifies if that phone number is a land or mobile number, what rate center it is in, geographic information, etc. The problem is that about 30% of numbers are ported between providers. And LRN look up is the full NPA-NXX-YYYY provider lookup.
This leaves the following two possible solutions:
- You buy the NPA-NXX database AND you have to purchase porting updates
- There are several services out there that allow you to programmatically look up who the current provider is for a phone number. Twilio, thinq, etc. this allows you to pay on a per look up basis instead of buying the full database.
Which solution you choose will depend on the volume that you decide to pass through. If you do the look up and plan to call the number often, you can include LRN information in the SIP messages that would help providers with the routing.

- 640
- 5
- 12