Questions tagged [phone-number]

A telephone number or phone number is a sequence of digits used to call from one telephone line to another in a public switched telephone network(PSTN). When telephone numbers were invented, they were short — as few as one, two or three digits — and were given orally to a switchboard operator. As phone systems have grown and interconnected to encompass the world, telephone numbers have become longer.

A telephone number or phone number is a sequence of digits used to call from one telephone line to another in a public switched telephone network. When telephone numbers were invented, they were short — as few as one, two or three digits — and were given orally to a switchboard operator. As phone systems have grown and interconnected to encompass the world, telephone numbers have become longer. In addition to telephones, they now access other devices, such as computers and fax machines.

Telephone numbers must not be stored using numerical data types.

The format of telephone numbers internationally follows ITU-T Recommendation E.164, described here.

This is a useful reference for people creating software to handle telephone numbers: Falsehoods Programmers Believe About Phone Numbers.

1228 questions
-3
votes
4 answers

Convert string to phone number Ruby

I use Ruby. I want to convert string to format phone number. Example: If string have 10 character: '0123456789' should convert to '0123-45-6789' If string have 11 character: '01234567899' should convert to '0123-456-7899'
Kien Nguyen
  • 35
  • 2
  • 6
-3
votes
1 answer

How to find friends on Facebook by using their phone number via Facebook Graph API in C#

I'm writing a tool to check a phone number that registered Facebook account or not by using C#. But I don't know which Graph API do Facebook support to C# to do this.
-3
votes
1 answer

Phone Numbers in Apps

In apps such as WhatsApp, Textme, etc., they generate phone numbers for their users. My question is how do they create these phone numbers for their app?
user3496349
  • 189
  • 2
  • 11
-3
votes
1 answer

I'm trying to write a program that generates a PHONE NUMBER using Python

Write a function that takes an area code, a three digit number,and produces a seven digit phone number import random def area_code(r): print "Your new phone number is (%s)" % r, i = 1 while i <= 7: #It assigned a random number…
-3
votes
2 answers

Check if phone number is real in JavaScript?

I want to check if a phone number is valid, it has to be in JavaScript and the format can be in any country format, just needs to check if a phone number can be successfully sent to it?
jacobsieradzki
  • 1,108
  • 2
  • 10
  • 32
-3
votes
3 answers

How to extract phone number from string?

I have custom string containing text and phone number. How I can extract this number? Example text: Lorem ipsum +44 12-45-243 dolor 00(49) 812 234 234 EDIT: Phone number can be of any given format.
pixel
  • 24,905
  • 36
  • 149
  • 251
-3
votes
1 answer

Validating any phone number in php

Please I need help to validate phone numbers in various formats Valid formats: +111 1 11111111 +11 1111111 1111111 (+111) (11) 1111111 Etc, the format is: You can take a "+" sign only at the beginning and once. Can lead an open and closed…
e-info128
  • 3,727
  • 10
  • 40
  • 57
-3
votes
1 answer

Validate that the phone number only contains only numbers

I need to do a phone number validation that the tel# contains only: numbers 0-9 left and right parenthesis hyphen blank space in c# this is my code for now: //ValidatePhoneNumber public static string ValidatePhoneNumber(string v_strPhoneNumber) …
-3
votes
1 answer

How do I get the Phone number on an account with C#?

I am trying to access the phone number on an account in C# with: var twilio = new TwilioRestClient(AccountSid, AuthToken); var account = twilio.GetAccount(); But I can seem to find the Phone Numbers on the account in there. Any help would be…
-3
votes
2 answers

Search a Number pattern

I want to search a phone number from a whole sentence. It can be any number with a pattern like (122) 221-2172 or 122-221-2172 or (122)-221-2172 by help of PHP where I don't know in which part of the sentence that number is exists or I could use…
Soumya
  • 425
  • 1
  • 6
  • 28
-3
votes
2 answers

Import Own mobile Number

In my App i want to import my mobile number. I know that phone contact is imported by ContactsContract API but i ma asking for importing own mobile number which is obvious , not present in phone contact detail.
DJhon
  • 1,548
  • 3
  • 22
  • 39
-3
votes
1 answer

Google's LibPhoneNumber package : 7777777779 and 2234567890 are invalid USA phone numbers?

Question : I am using Google's LibPhoneNumber package to validate phone numbers in Java. When the country is set to US, 7777777779 and 2234567890 are being classed as invalid numbers, but 7866438057 is valid. Why is this? I've tried reading why they…
Andy A
  • 4,191
  • 7
  • 38
  • 56
-3
votes
1 answer

Formatting a phone number in PHP

There are a couple formatting scripts out there but not what I'm looking for. ex: 400777666555 what I want: +400 777 666 555 So to add a + and make spaces every 3 numbers. $number = get_the_author_meta('mobile'); $split = chunk_split($number,…
Fid
  • 462
  • 4
  • 21
-3
votes
1 answer

APIs to find mobile phone country Code and operator code

I am looking for an API which can give me the countrycode and operator code for given mobile phone number, if any body has any leads please update. It could be Database or API. Ex:- I will give phone number as Phone Number : 97155xxxxxxxx country…
Azhar
  • 933
  • 1
  • 12
  • 28
-4
votes
5 answers

Cell Phone Based Verification

I want to do mobile phone based verification for users. I understand the code generation process and i understand maintaining cell phone carrier database. But to send the text, do I need a phone number or is it possible to use an internet address…
KPO
  • 890
  • 2
  • 20
  • 40
1 2 3
81
82