Advertise Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

sdkIQ for iPhone
($4.99)

Your First iPhone App
($1.99)

iPhone Code Generator
($9.99)

Dual Matches
($0.99)

Calcuccino Programmers' Calculator
($2.99)

SDKtoday
(free)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 02-08-2010, 11:43 AM   #1 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 27
Default Determine if a phone is a mobile or landline number...?

Hello,

Does anybody knows... if there is a way to determine if a phone is a 'mobile number' or a 'landline number' ???

I know.. iPhone's Contacts app, allows you to set the 'Mobile' number for a specific contact.

The issue i'm dealing with, is that you could also add a new phone field. Let's say... i add 'Palm Treo', with a mobile number.

Programatically, there is no way to know if that given field is mobile or not.


So... is there any algorithm, database, or something to check this out?

THANKS!!!
jleandroperez is offline   Reply With Quote
Old 02-08-2010, 11:58 AM   #2 (permalink)
Obj-C Learner
 
Join Date: Apr 2009
Location: Manchester, UK
Posts: 1,028
Send a message via MSN to ZunePod Send a message via Yahoo to ZunePod
Default

If it's country specific, then yes,

In the UK, all mobile numbers (I think) start with 07 (+447) and all landlines start with 01 or 02.

Then the rest is corporate numbers.

I think this is right, anyone here to clarify? I'm sure this is in effect in other countries.
ZunePod is online now   Reply With Quote
Old 02-08-2010, 12:17 PM   #3 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 27
Default

Thanks =D

I was hoping there were some kind of... apple's framework... but i guess i'll have to code it.

Any ideas about... how to check if a number is a mobile, in the US ?

THANKS!!!
jleandroperez is offline   Reply With Quote
Old 02-08-2010, 12:54 PM   #4 (permalink)
Obj-C Learner
 
Join Date: Apr 2009
Location: Manchester, UK
Posts: 1,028
Send a message via MSN to ZunePod Send a message via Yahoo to ZunePod
Default

Don't they all have 555 in the middle?

You'll have to consult un americano.
ZunePod is online now   Reply With Quote
Old 02-08-2010, 03:37 PM   #5 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 27
Default



I'm asking since... i'm not from US, but developing an app which main target is... well, US!.

Thanks again
jleandroperez is offline   Reply With Quote
Old 02-08-2010, 03:48 PM   #6 (permalink)
Registered Member
 
Join Date: Dec 2009
Posts: 266
Default

The problem with US numbers is local number portability.
__________________
@rarindeed


Burstly is the only open and free ad management platform for iPhone app developers.
rarindeed is offline   Reply With Quote
Old 02-08-2010, 04:09 PM   #7 (permalink)
Obj-C Learner
 
Join Date: Apr 2009
Location: Manchester, UK
Posts: 1,028
Send a message via MSN to ZunePod Send a message via Yahoo to ZunePod
Default

Quote:
Originally Posted by rarindeed View Post
The problem with US numbers is local number portability.
Is there no specific prefix?
ZunePod is online now   Reply With Quote
Old 02-08-2010, 04:33 PM   #8 (permalink)
Registered Member
 
Join Date: Dec 2009
Posts: 266
Default

Basically any number, regardless of original registrant, can be transferred across lines. e.g., I could get a number for a landline with Verizon and then transfer it to an iPhone with AT&T.
__________________
@rarindeed


Burstly is the only open and free ad management platform for iPhone app developers.
rarindeed is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


» Advertisements
» Stats
Members: 41,860
Threads: 49,768
Posts: 213,054
Top Poster: BrianSlick (3,138)
Welcome to our newest member, gustavo7sexton
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:56 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0