Dograh

What Is E.164 Format? Phone Number Format for Voice Agents

What Is E.164 Format? Phone Number Format for Voice Agents
TechnicalDecember 1, 2026·8 min read

What Is E.164 Format? Phone Number Format for Voice Agents

Abhishek Kumar
Abhishek Kumar·Co-founder, Dograh AI

Co-founder of Dograh, building the future of open-source voice AI agents. Own your voice AI stack.

E.164 is the international phone number format, a plus sign, a country code of one to three digits and the national number, up to 15 digits with no spaces or leading zero. Dograh, the open-source AI voice agent platform, needs a plus on every carrier campaign number and sends API call numbers to the carrier as written.

Key Takeaways

  • An E.164 number is a plus, country code and national number, 15 digits maximum.
  • Drop the national trunk 0 and any 00 prefix before adding the plus.
  • A format check proves the shape, never that the number actually rings.

A contact list in mixed local formats can stop an outbound campaign before the first call. We explain the ITU standard, its structure, examples for several countries and list cleaning, then we cover what Dograh checks in campaign files and what it passes through in API calls.

What E.164 is

E.164 is the numbering plan behind every phone number on the public phone network. It is a recommendation from the ITU, the United Nations agency for telecoms, titled The international public telecommunication numbering plan, and the edition in force was issued in February 2026. It sets how numbers are structured so that each one is unique worldwide and can be dialed from any country.

People rarely see E.164 written out, because phones show numbers in local styles with spaces, brackets and a leading 0. Machines need the full form. A carrier receiving an API request cannot guess whether 020 7946 0123 is in London or somewhere else, so carrier APIs ask for E.164. Twilio's Call API, for example, expects the number it dials in E.164 form.

For anyone running calls in software, that makes E.164 the one safe way to store and send a number. Store it once in this form, and show local styles only on screens meant for people.

How an E.164 number is built

An E.164 number has three parts after a plus sign. Twilio's E.164 glossary sets them out as the country code, the national destination code and the subscriber number, with a total of no more than 15 digits.

The country code is one to three digits, such as 1 for the US and Canada, 44 for the UK and 91 for India. The national destination code comes next. It is usually an area code or a mobile network prefix, such as 20 for London. The subscriber number is the line itself. The plus is not a digit and does not count toward the 15.

Two rules trip people up most. No country code starts with 0, so the first digit after the plus is never 0. And the trunk prefix, the 0 that people dial before an area code inside their own country, is not part of the number. Take the London number 020 7946 0123. Drop the 0, add the plus and 44, and it becomes +442079460123, which reads as 44, then 20, then 7946 0123.

Right and wrong examples for several countries

The same few mistakes show up in every country. The table uses full digits only for numbers that regulators reserve for fiction, Ofcom's drama ranges in the UK and 555-0100 to 555-0199 in the US. Other rows mask the last digits as X.

CountryLocal formE.164Common mistake
UK, London020 7946 0123+442079460123+4402079460123 (trunk 0 kept)
UK, mobile07700 900123+44770090012300447700900123 (00 instead of the plus)
US(415) 555-0123+141555501234155550123 (no country code)
India, Bengaluru080 XXXX XXXX+9180XXXXXXXX+91080XXXXXXXX (trunk 0 kept)
Germany, Berlin030 XXXXXXXX+4930XXXXXXXX+49 30 XXXXXXXX (spaces left in)

Notice that the US number has no trunk 0 to drop, so it only needs +1 in front. The UK and India rows need the 0 removed first, and that is the most common error in lists built by hand. A number with a kept 0 looks almost right, so it slips past a quick read and fails at the carrier.

A note shows the London number 020 7946 0123 in local form. It is written out two ways, +4402079460123 with the trunk 0 kept and +442079460123 with it dropped, which look almost the same at a quick read. Both go to the carrier. The one with the kept 0 fails and comes back, and the carrier can dial the clean one to a London desk phone.
A stray 0 turns up most in UK and India rows, and nothing flags it until the carrier refuses the call. Lists typed by hand are where this slip hides, so clean them before the upload.
Dograh

Open Source Alternative to Vapi / Retell

Self-hosted voice agent platform — no per-minute fees

dograh-hq/dograh

Star on GitHub

How to clean a contact list for calling

Cleaning works best in a fixed order, on a copy of the list, with a country column for every row. Without that column, a local number such as 020 7946 0123 cannot be placed in a country.

  1. Trim spaces at both ends and remove brackets, dashes, dots and spaces inside the number.
  2. Turn an international call prefix such as 00 or 011 at the start into a plus.
  3. If a number has no plus, drop the trunk 0 and add the plus and the country code from the country column.
  4. Check each result with a phone number library, and set aside every number that fails for a person to look at.
  5. Remove duplicates after cleaning, since two local spellings of one number only match once both are in E.164.

For step 4, Google's libphonenumber is the common choice, and ports exist for most languages. It parses a local number with a country, formats it in E.164 and checks it against each country's rules. Keep the rows you set aside in a separate file rather than deleting them, since a typo in a good customer's number is still worth fixing.

Format is only half of list hygiene. Consent and do-not-call checks matter just as much, and our guide to DNC scrubbing covers those. Our outbound voice campaigns pre-launch guide puts both in the wider launch order.

What a format check can and cannot prove

A regular expression is often the first check people reach for. A pattern such as ^\+[1-9]\d{1,14}$ checks that a string is a plus, a non-zero first digit and up to 15 digits in total. That is useful as a first gate, but it accepts many strings that are not real numbers, and Twilio says a regex can't guarantee a match with a valid number.

A library goes further. libphonenumber's isPossibleNumber guesses from the length alone, while isValidNumber checks both the length and the prefixes a country actually uses. That catches a UK number with a kept 0 or a US number that is a digit short.

Neither proves the line is in service. A valid number can be disconnected, reassigned or switched off. Only a carrier lookup, such as Twilio's Lookup, or a real call tells you that. For a voice agent, the practical rule is to clean and validate before upload, then watch for failed calls in the first runs and remove those numbers.

Join the Dograh Community

Dograh is an OSS alternative to Vapi. Join our Slack community for queries, releases, best practices & community interactions.

E.164 in Dograh campaign files

A Dograh campaign reads its contacts from a CSV with a phone_number column. The header is trimmed and lowercased, so "Phone_Number " still matches. On a carrier configuration such as Twilio, Telnyx or Plivo, every number must start with a plus and must not contain spaces, commas or ampersands. A row that breaks this rule stops the whole upload, with a message that lists the row numbers and names the rule, such as "Every phone number must include a country code (start with '+')." Empty rows are skipped.

The upload checks those characters and passes each number to the carrier as written. It does not strip dashes, add a country code or count digits, so +1-415-555-0123 gets through the upload and is sent as typed. Duplicate numbers are compared as typed too, which is one more reason to clean to strict E.164 first. An Asterisk ARI configuration is the one exception, since a PBX can also dial extensions, SIP addresses and its own dial strings.

The file below follows the campaign CSV format, with phone_number in strict E.164 and one extra column, customer_name, that the agent can use.

phone_number,customer_name
+14155550100,Jane Smith
+14155550101,Bob Jones

What this does: Each row becomes one call. The plus and country code on +14155550100 pass the upload check, and Jane Smith reaches the agent as a variable for that call.

Extra columns like customer_name become variables for each call, and our guide to personalizing AI voice calls with a CSV covers them.

E.164 in Dograh API calls and phone numbers

A single call started through the API Trigger takes the number in a phone_number field. Dograh passes it to the carrier unchanged, so the carrier's own rule applies, and for carriers such as Twilio that rule is E.164. The request body below sends the number in phone_number and a value for the agent in initial_context.

{
  "phone_number": "+14155550100",
  "initial_context": { "customer_name": "Jane" }
}

What this does: It asks the agent to call +14155550100 and greet the person as Jane. Because the number is already in E.164, the carrier can dial it without guessing the country.

Your own numbers, the ones calls come from, are added under Telephony with Add phone number. Its Address field takes an E.164 number, a SIP address or an extension. The form strips spaces, dashes and brackets from any number, and a number typed without the plus needs the Country field so the form can drop a leading 0 and add the dial code.

That clean-up applies to the numbers you own, while campaign rows and API calls are sent as written. Those caller ID numbers also carry your business name, which our explainer on what CNAM is covers.

Glossary

Trunk prefix
The digit, usually 0, dialed before an area code inside a country. It is not part of the E.164 number and must be dropped.
National destination code
The part after the country code that picks an area or mobile network, such as 20 for London. Its length varies by country.
International call prefix
The digits dialed to call abroad, such as 00 in the UK or 011 in the US. In E.164 the plus sign replaces them.
Possible vs valid number
In libphonenumber, a possible number has a plausible length, while a valid number also uses a prefix the country actually assigns. Neither proves it is in service.

Frequently Asked Questions

Get started with Dograh

Build, deploy, and scale AI agents with Dograh. Join the community of developers building the future.