I think your best bet is to get a list of country codes. look for
telcordia on the internet last i checked they are the holders of the
data. or borrow it form a voip provider on the net. most of them
have a international pricing list by country code.
On Mar 29, 7:59 am, Martin Wong
<li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>
wrote:> Hi,
>
> Let''s say there is a phone number, say "+816726871111"
...
> I''m trying to extract which country the call is being made to,
which
> area code, and whether if its a mobile or a land line.
>
> I understand EPP standards tell me, the country code can be 1-3 digits.
> In the case above, it''s Japan. But I need some logic here.
>
> Is there a class or a code snippet which looks up a table and comes up
> with this sort of thing?
>
> Any info is much appreciated.
>
> Thanks
> --
> Posted viahttp://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.