For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Log inSign up
Support
PlatformCallingAIMessagingTools
PlatformCallingAIMessagingTools
    • Get started
  • Setup
    • Create an account
    • API credentials
    • Port phone numbers to SignalWire
    • Trial mode
  • Core
    • Webhooks
    • Allow SignalWire IPs through your firewall
    • International support
    • Media URL protection
    • Default limits
    • Segment IDs
  • Architecture
    • Resources
    • Addresses
    • Subscribers
  • Phone numbers
    • Overview
    • E911
    • What is E.164?
  • Integrations
LogoLogoSignalWire Docs
Log inSign up
Support
On this page
  • E.164 Number Structure:
  • Example Table:
  • Regex Pattern for E.164 Numbers:
Phone numbers

What is E.164?

|View as Markdown|Open in Claude|
Was this page helpful?
Edit this page
Previous

Adding AI capabilities to FreeSWITCH

Next
Built with

E.164 is the international telephone numbering plan used for public switched telephone networks (PSTN). It defines the format of phone numbers that ensures consistency across different telecommunications systems worldwide while ensuring that each number is unique.

E.164 numbers are typically composed of a country code, a national destination code (NDC), and a subscriber number. The maximum length of an E.164 number is 15 digits. It excludes spaces, dashes, and parentheses, and usually begins with a plus sign (+) to indicate that it is a full international number.

When dialing a number on the SignalWire platform, it is required to use the E.164 format. This ensures that the call is routed correctly to the intended destination.

E.164 Number Structure:

  • ”+” (Prefix): Indicates an international number.
  • Country Code (CC): 1-3 digits assigned to each country (e.g., +1 for the U.S., +44 for the U.K.).
  • National Destination Code (NDC): Area or region code for a specific part of the country.
  • Subscriber Number (SN): The individual’s or business’s unique phone number.

Example Table:

ScenarioE.164 FormatDescription
U.S. Mobile Number+12125551234A standard mobile number in the U.S. (country code +1)
U.K. Landline+442071838750A landline number in London, U.K. (country code +44)
India Mobile Number+919876543210A mobile number in India (country code +91)
Brazil Mobile (Sao Paulo)+5511998765432A Sao Paulo mobile number in Brazil (country code +55)
Australia Business Line+61298765432A business phone in Sydney, Australia (country code +61)
Germany Landline+492219876543A landline number in Cologne, Germany (country code +49)

Regex Pattern for E.164 Numbers:

If your application does not store numbers in E.164 format, you can use a regular expression to format them for your SignalWire application. Adhering to the official ITU E.164 recommendation the format must be a number that starts with a plus sign (+) and has a maximum length of 15 digits. Since no country code starts with a 0, the first digit after the plus sign must be a number between 1 and 9.

1^\+[1-9]\d{1,14}$

To ensure the formatted number is a valid number, you can use the SignalWire Phone Number Lookup API to verify the number’s validity and retrieve additional information about it.