E.164 Format: How to Write Numbers for SIP Trunks

Tom Reed
Read time: 6 minutes
E.164 Format: How to Write Numbers for SIP Trunks

Tom Reed · Updated 3 December 2026

E.164 is the international format for phone numbers: a plus sign, the country code, then the rest of the number, with no spaces or dashes and no more than 15 digits. SIP trunks use it so both ends read a number the same way. Write every number on your trunk in E.164 and most number problems never start.

This guide is for admins and MSPs connecting a Twilio or Telnyx SIP trunk to your hosted PBX. It explains the format with UK and US examples, why trunks need it in both directions, what SessionPBX does with inbound numbers and which mistakes to avoid. It's written by the SessionPBX team.

What is E.164 format?

E.164 is the international public telecommunication numbering plan, published by the ITU, the United Nations agency for telecommunications. An E.164 number has three parts, written in this order:

  1. A plus sign (+)
  2. The country code, such as +1 for the US or +44 for the UK
  3. The rest of the number, without the national trunk prefix (the leading 0 used for dialling within the UK)

The whole number is digits only, so no spaces, brackets or dashes, and it can't be longer than 15 digits. The plus sign stands in for the international call prefix, which differs from one country to the next. That's why a number in E.164 means the same thing wherever it's dialled from.

What do UK and US numbers look like in E.164?

The examples below are fictional numbers set aside for use in examples. Swap in your own numbers when you set up a trunk.

CountryHow people write it locallyIn E.164 formatWhat each part is
UK landline020 7946 0123+442079460123+44 is the UK country code. The leading 0 is dropped.
UK mobile07700 900123+447700900123+44, then the mobile number without its leading 0.
US(202) 555-0123+12025550123+1 is the US country code. Brackets, spaces and dashes are removed.

Why do Twilio and Telnyx trunks need E.164?

A SIP trunk hands calls to a carrier and receives calls from it. A number in a local format is ambiguous, because the same digits can belong to different countries.

  • Twilio: the SessionTalk Twilio guide says Twilio requires full international format, +E.164, in both directions. Our Twilio SIP trunk guide shows where that matters in setup.
  • Telnyx: when your team dials in international format, SessionPBX sends the number to Telnyx in international format. The Telnyx SIP trunk guide covers the rest of the Telnyx setup.

E.164 is the safe choice with either carrier, which is useful if you run both on the same PBX.

Hands holding a mobile phone, ready to place a call

How does SessionPBX handle inbound numbers?

For incoming calls, the carrier tells SessionPBX which number was dialled. The SessionPBX SIP trunk docs say what to expect:

  • Ask your carrier for international format. The carrier should put the dialled number in international format with the plus sign, for example +442071234567.
  • A leading 00 is converted to +. If the carrier sends 00 in place of the plus sign, SessionPBX converts it.
  • National formats don't match. A number such as 02071234567 won't match.
  • Enter your own numbers the same way. Inbound numbers on the trunk go in one per line, in international format with the plus sign and country code. Numbers in other formats aren't accepted.

Once a number matches, you choose where it rings in Inbound number routing: everyone, a team member, a ring group, a call queue or a call flow.

How do you dial outbound in international format?

Outbound calling is off for new members, so turn on Outbound PSTN for each member who needs it. Members can then dial in international format, such as +447700900123, and SessionPBX sends the number to Twilio or Telnyx in international format.

If you run more than one trunk, Outbound number rules choose the trunk by dialling prefix, and the longest matching prefix wins. For example, +1 can go to a US trunk and +44 to a European one. Prefix rules like these assume numbers start with the plus sign and country code.

People don't always type numbers that way, and that's where the app side helps. Your team's SessionTalk apps for iOS, Android and desktop can rewrite what someone types before it reaches the PBX. We cover those phone-side rules in our guide to softphone dial plans and number rewriting, so we won't repeat them here.

Glowing blue fibre optic strands against a dark background

What are the most common E.164 mistakes?

Most failures trace back to one of these. The first four rows follow the ITU-T E.164 standard: an E.164 number is a plus sign, the country code and the subscriber number, written as digits only, without a national trunk prefix such as a leading 0.

MistakeExampleFix
National format with a leading 002079460123Use +442079460123. National formats don't match inbound.
Leading 0 kept after the country code+4402079460123Drop the 0: +442079460123
No plus sign or country code2025550123Add both: +12025550123
Spaces, brackets or dashes+44 20 7946 0123 or (202) 555-0123Digits only, after the plus sign
Carrier sends 0000442079460123SessionPBX converts a leading 00 to +, but ask your carrier for the plus sign
Mixed formats across trunksOne trunk in E.164, another in nationalUse E.164 on every trunk, then set Outbound number rules by prefix

How do you check your numbers before going live?

Work through this list before you point real traffic at the trunk:

  • Every inbound number on the trunk starts with the plus sign and country code
  • The carrier is set to send the dialled number in international format with the plus sign
  • No number has a leading 0 after the country code
  • Outbound PSTN is on for each member who needs it
  • Outbound number rules, if you use them, match on prefixes such as +1 and +44
  • Your team knows to dial in international format, or has a dial-plan rule that rewrites it

For the full carrier-neutral setup, see our SIP trunk setup checklist.

FAQ

What is E.164 format?

E.164 is the international numbering format defined by the ITU. It's a plus sign, the country code and the number, digits only, with no more than 15 digits in total. SIP trunks use it so both sides read a number the same way, whichever country the call comes from.

Do I need the plus sign in E.164?

Yes. The plus sign is part of how E.164 numbers are written. SessionPBX expects the dialled number from your carrier in international format with the plus sign, and inbound numbers on a trunk are entered with the plus sign and country code. A leading 00 is converted to +.

How many digits can an E.164 number have?

No more than 15, not counting the plus sign. That limit comes from the ITU standard and includes the country code. Numbers in different countries have different lengths, so don't assume every number is the same length as your local ones.

Do I have to remove the leading 0 from a UK number?

Yes. The leading 0 is a national trunk prefix used when dialling inside the UK, and it isn't part of the international number. Write 020 7946 0123 as +442079460123. Keeping the 0 after the country code is a common reason a number doesn't match.

What happens if my carrier sends a national format number?

It won't match. The SessionPBX docs say national formats, such as 02071234567, don't match, so ask your carrier to send the dialled number in international format with the plus sign.

Sources

E.164 is defined by ITU-T Recommendation E.164, which is also the source for the mistakes-table rows on a leading 0 after the country code and on spaces, brackets or dashes. SessionPBX behaviour follows the SessionTalk SIP trunk docs, and the Twilio and Telnyx notes follow the SessionTalk carrier guides. We re-read those docs on 3 December 2026.

Write every number once, in E.164

Write every number once, in E.164. Connect your SIP trunk to SessionPBX, then get the SessionTalk apps for iOS, Android and desktop.

Related Articles

More from the SessionTalk blog