---
title: "Interop I: SIP Number Formatting: Local, National, E.164, Oh My! - ECG"
description:   When we teach classes on VoIP networks, we discuss the variety of SIP standards that can be used by working systems. For example, identifying the calling
---

[![ECG](https://www.ecg.co/hubfs/lp/cloud-migration/logo-vector.svg)](https://www.ecg.co)

- Who We Are
  
  Company
  
  [**About ECG** Learn about the team behind the networks and services that solve real problems.](https://www.ecg.co/about) [**Careers** Join a fun, collaborative, engineer-owned company.](https://www.ecg.co/careers)
  
  Industries We Serve
  
  [**Enterprises** Optimize multi-site voice networks while meeting compliance requirements.](https://www.ecg.co/sectors/enterprise) [**Universities** Professional services designed for the unique needs of campus networks.](https://www.ecg.co/sectors/universities) [**Government** Engineering services built for government agency voice challenges.](https://www.ecg.co/sectors/government) [**Service Providers** Deep voice expertise to maintain compliance and keep customers connected.](https://www.ecg.co/sectors/service-providers)
- Technologies
  
  **Carrier & Trunking Services** SIP trunking, resilience & carrier interconnect
  
  **Compliance & Call Authentication** STIR/SHAKEN, 603+ & secure signaling
  
  **Unified Communications & Collaboration** UC capabilities & platform expertise
  
  **Platform Reliability & Security** Infrastructure, capture & network fundamentals

  ### Carrier & Trunking Services
  
  Design, harden, and secure the carrier side of your voice network — from SIP trunking to encrypted media and compliant recording.
  
  [SIP Trunking](https://www.ecg.co/technologies/sip-trunking-consulting-expertise) [SIP Trunking High Availability](https://www.ecg.co/technologies/sip-trunking-high-availability) [STIR/SHAKEN](https://www.ecg.co/technologies/stir-shaken) [603+](https://www.ecg.co/technologies/603-plus-do-not-originate) [eSIM & FMC](https://www.ecg.co/technologies/esim-fmc) [VoIP TLS & SRTP](https://www.ecg.co/technologies/voip-encryption-tls-srtp) [SIPREC](https://www.ecg.co/technologies/siprec-call-recording)

  ### Compliance & Call Authentication
  
  Meet regulatory requirements end-to-end — call authentication, robocall mitigation, lawful capture, and encrypted signaling.
  
  [STIR/SHAKEN](https://www.ecg.co/technologies/stir-shaken) [603+](https://www.ecg.co/technologies/603-plus-do-not-originate) [Packet Capture / PCAP](https://www.ecg.co/technologies/pcap-wireshark-packet-capture-analysis) [VoIP TLS & SRTP](https://www.ecg.co/technologies/voip-encryption-tls-srtp)

  ### Unified Communications & Collaboration
  
  Modern UC capabilities backed by deep, hands-on expertise across every major voice platform.
  
  [E911](https://www.ecg.co/technologies/e911) [Business Texting](https://www.ecg.co/technologies/business-texting) [Teams Replace Phone System](https://www.ecg.co/technologies/ms-teams-replace-phone-system) [Provisioning & Endpoint Mgmt](https://www.ecg.co/technologies/sip-provisioning-endpoint-management) [Call Control & Features](https://www.ecg.co/technologies/call-control-features) [SIP Trunking HA](https://www.ecg.co/technologies/sip-trunking-high-availability) [SIPREC](https://www.ecg.co/technologies/siprec-call-recording) [vCon](https://www.ecg.co/technologies/vcon-virtualized-conversations)
  
  Platform Expertise
  
  [BroadWorks](https://www.ecg.co/technologies/broadworks) [NetSapiens](https://www.ecg.co/technologies/netsapiens-support) [Metaswitch Alianza Core](https://www.ecg.co/technologies/metaswitch-alianza-core) [Oracle Communications](https://www.ecg.co/technologies/oracle-communications-support) [Metaswitch Perimeta](https://www.ecg.co/technologies/metaswitch-perimeta) [Sansay VSXi](https://www.ecg.co/sansay-vsxi-session-border-controller)

  ### Platform Reliability & Security
  
  The infrastructure layer underneath your voice services — engineered, monitored, and secured by people who run it every day.
  
  [EKS / Kubernetes](https://www.ecg.co/technologies/kubernetes-eks) [Critical Network Fundamentals](https://www.ecg.co/technologies/critical-network-fundamentals) [Packet Capture / PCAP](https://www.ecg.co/technologies/pcap-wireshark-packet-capture-analysis) [VMware & Alternatives](https://www.ecg.co/technologies/vmware-alternatives) [Routing, Switching & Firewalls](https://www.ecg.co/technologies/routing-switching-firewalls) [Freeswitch](https://www.ecg.co/technologies/freeswitch-open-source-call-processing)
- How We Do It
  
  Services
  
  [**Services Overview** Our experience and expertise in voice and data engineering.](https://www.ecg.co/services) [**Network Operations** Keep your voice network running with outsourced network operations.](https://www.ecg.co/services/network-operations) [**Staff Augmentation** Expert engineering support to meet deadlines and fill knowledge gaps.](https://www.ecg.co/services/staff-augmentation) [**IT Consulting & Engineering** Complete short-term projects faster with a dedicated project manager.](https://www.ecg.co/services/it-consulting-and-engineering)
- Resources
  
  #### [Utilities Launch Delay Calculator Estimate what a potential product launch delay would cost your business. Try the calculator](https://www.ecg.co/cost-delay-calculator)
  
  #### [Resource Library Guides, White Papers & Tools In-depth resources on voice engineering, compliance, and AI — built from real client work. Explore resources](https://www.ecg.co/resource-library)
  
  #### [Blog Latest from the ECG Team Practical articles on SIP, UC platforms, network operations, and voice AI. Read the blog](https://www.ecg.co/blog)
- [Events](https://www.ecg.co/events)

[Login](https://portal.ecg.co) [Contact](https://www.ecg.co/contact)

Who We Are

[About ECG](https://www.ecg.co/about) [Careers](https://www.ecg.co/careers)

Industries We Serve

[Enterprises](https://www.ecg.co/sectors/enterprise) [Universities](https://www.ecg.co/sectors/universities) [Government](https://www.ecg.co/sectors/government) [Service Providers](https://www.ecg.co/sectors/service-providers)

Technologies

Carrier & Trunking Services

[SIP Trunking](https://www.ecg.co/technologies/sip-trunking-consulting-expertise) [SIP Trunking High Availability](https://www.ecg.co/technologies/sip-trunking-high-availability) [STIR/SHAKEN](https://www.ecg.co/technologies/stir-shaken) [603+](https://www.ecg.co/technologies/603-plus-do-not-originate) [eSIM & FMC](https://www.ecg.co/technologies/esim-fmc) [VoIP TLS & SRTP](https://www.ecg.co/technologies/voip-encryption-tls-srtp) [SIPREC](https://www.ecg.co/technologies/siprec-call-recording)

Compliance & Call Authentication

[STIR/SHAKEN](https://www.ecg.co/technologies/stir-shaken) [603+](https://www.ecg.co/technologies/603-plus-do-not-originate) [Packet Capture / PCAP](https://www.ecg.co/technologies/pcap-wireshark-packet-capture-analysis) [VoIP TLS & SRTP](https://www.ecg.co/technologies/voip-encryption-tls-srtp)

Unified Communications & Collaboration

[E911](https://www.ecg.co/technologies/e911) [Business Texting](https://www.ecg.co/technologies/business-texting) [Teams Replace Phone System](https://www.ecg.co/technologies/ms-teams-replace-phone-system) [Provisioning & Endpoint Mgmt](https://www.ecg.co/technologies/sip-provisioning-endpoint-management) [Call Control & Features](https://www.ecg.co/technologies/call-control-features) [SIP Trunking HA](https://www.ecg.co/technologies/sip-trunking-high-availability) [SIPREC](https://www.ecg.co/technologies/siprec-call-recording) [vCon](https://www.ecg.co/technologies/vcon-virtualized-conversations)

Platform Expertise

[BroadWorks](https://www.ecg.co/technologies/broadworks) [NetSapiens](https://www.ecg.co/technologies/netsapiens-support) [Metaswitch Alianza Core](https://www.ecg.co/technologies/metaswitch-alianza-core) [Oracle Communications](https://www.ecg.co/technologies/oracle-communications-support) [Metaswitch Perimeta](https://www.ecg.co/technologies/metaswitch-perimeta) [Sansay VSXi](https://www.ecg.co/sansay-vsxi-session-border-controller)

Platform Reliability & Security

[EKS / Kubernetes](https://www.ecg.co/technologies/kubernetes-eks) [Critical Network Fundamentals](https://www.ecg.co/technologies/critical-network-fundamentals) [Packet Capture / PCAP](https://www.ecg.co/technologies/pcap-wireshark-packet-capture-analysis) [VMware & Alternatives](https://www.ecg.co/technologies/vmware-alternatives) [Routing, Switching & Firewalls](https://www.ecg.co/technologies/routing-switching-firewalls) [Freeswitch](https://www.ecg.co/technologies/freeswitch-open-source-call-processing)

How We Do It

Services

[Services Overview](https://www.ecg.co/services) [Network Operations](https://www.ecg.co/services/network-operations) [Staff Augmentation](https://www.ecg.co/services/staff-augmentation) [IT Consulting & Engineering](https://www.ecg.co/services/it-consulting-and-engineering)

Resources

[Launch Delay Calculator](https://www.ecg.co/cost-delay-calculator) [Guides, White Papers & Tools](https://www.ecg.co/resource-library) [Latest from the ECG Team](https://www.ecg.co/blog)

[Events](https://www.ecg.co/events)

[Login](https://portal.ecg.co) [Contact](https://www.ecg.co/contact)

# Interop I: SIP Number Formatting: Local, National, E.164, Oh My!

 By: Mark Lindsey

 6 min read

 Jan 9, 2017

 

When we teach [classes on VoIP networks](http://www.e-c-group.com/school-of-voip/), we discuss the variety of SIP standards that can be used by working systems. For example, identifying the calling party varies between platforms: One system uses P-Asserted-Identity to indicate the caller, and another uses From. Then there's the codec used for audio: One system uses G.722 and another uses G.722.2. One system expects national telephone numbers, and another system expects international-formatted numbers. The list goes on.

When setup two SIP systems to exchange phone calls, you need to be aware of the issues. If you're lucky, the two systems have a lot in common. If you're not, you may have a lot to fix.

---

## **Number Formatting Interop Checklist**

***1.  Establish format for local telephone numbers.**  
Not always required.*

***2. Establish format for national telephone numbers.***  
*E.164 With Plus is recommended, e.g., +12292442099*

***3. Establish format for international telephone numbers.***  
*E.164 With Plus is recommended, e.g., +12292442099*

***4. Determine which short codes are supported, such as emergency codes 911, 111, and 0***

***5. Determine what control codes are supported, such as \*67***

---

## Popular Telephone Number Formats

One of the most common questions for SIP interop is how the called telephone number will be formatted. There are several popular formats, and they occur in the Request-URI (after the "INVITE") and in the To header.

This article is intended to familiarize you with many of the common options. The software you're using -- BroadWorks, Metaswitch, Asterisk, Sonus, Genband, etc. -- will have certain capabilities and defaults. If you can find a way to interop end-to-end between the two call-control servers, without having to rewrite the number in an [Session Border Controller](https://en.wikipedia.org/wiki/Session_border_controller) in the middle, then you prevent substantial hassle.

## Complete National Number

Perhaps the most common format is the complete national number. For example, in the United States, you might see this complete national number: 9193160013.

```
INVITE sip:9193160013@vwave.net:5060;user=phone SIP/2.0
Via: SIP/2.0/UDP 192.168.1.43:5060;branch=z9hG4bK6ae0c87576E0FF92
From: "u2292442099" <sip:u2292442099@vwave.net>;tag=90C2A5B1-AAFDEC86
To: <sip:9193160013@vwave.net;user=phone>
```

## Local Number

When the SIP invite represents the digits a user actually dialed on his keypad, the local number will be most common.

```
INVITE sip:3160013@vwave.net:5060;user=phone SIP/2.0
Via: SIP/2.0/UDP 192.168.1.43:5060;branch=z9hG4bK6ae0c87576E0FF92
From: "u2292442099" <sip:u2292442099@vwave.net>;tag=90C2A5B1-AAFDEC86
To: <sip:3160013@vwave.net;user=phone>

```

Within the UK, you might call  a London number by dialing eight digits:

```
INVITE sip:74931232@vwave.net:5060;user=phone SIP/2.0
Via: SIP/2.0/UDP 192.168.1.43:5060;branch=z9hG4bK6ae0c87576E0FF92
From: "UK User 1" <sip:07981555555@vwave.net>;tag=90C2A5B1-AAFDEC86
To: <sip:442074931232@vwave.net;user=phone>
```

When a human is dialing the number to place a call across the PSTN, the receiving system (INVITE User Agent Server, UAS) will need to determine the intended PSTN telephone number. One popular method is to apply the local area code of the calling party. For example, if this call is dialed by user "u2292442099", and their US area code is "229", then the UAS may reasonably interpret the dialed digits 3160013 as +1-229-316-0013 by prepending the national and area code to the dialed digits.

This is a very awkward format to support between carriers or systems, and quite impractical if multiple local areas are involved.

## Dial by Extension

In PBX-like environments, "extensions" can be dialed. An extension is a locally-defined telephone number, but which is not useable routing between carriers. You can expect to only see this when the INVITE Request URI represents digits that a user is dialing personally.

```
INVITE sip:2207@vwave.net:5060;user=phone SIP/2.0
Via: SIP/2.0/UDP 192.168.1.43:5060;branch=z9hG4bK6ae0c87576E0FF92
From: "u2292442099" <sip:u2292442099@vwave.net>;tag=90C2A5B1-AAFDEC86
To: <sip:2207@vwave.net;user=phone>

```

The extension 2207 probably only makes sense in the group owned by "u2292442099". The UAS for "vwave.net" has to know what 2207 means in that context.

## E.164 Without Plus

This model places the call with a leading country code. In the North American Numbering Plan  (US, Canada, Caribbean),

```
INVITE sip:19193160013@vwave.net:5060;user=phone SIP/2.0
Via: SIP/2.0/UDP 192.168.1.43:5060;branch=z9hG4bK6ae0c87576E0FF92
From: "u2292442099" <sip:u2292442099@vwave.net>;tag=90C2A5B1-AAFDEC86
To: <sip:19193160013@vwave.net;user=phone>
```

```
INVITE sip:442074931232@vwave.net:5060;user=phone SIP/2.0
Via: SIP/2.0/UDP 192.168.1.43:5060;branch=z9hG4bK6ae0c87576E0FF92
From: "u2292442099" <sip:u2292442099@vwave.net>;tag=90C2A5B1-AAFDEC86
To: <sip:442074931232@vwave.net;user=phone>
```

## E.164 With Plus

*Preferred*: I recommend this format whenever possible, because it's the only one with a token that signals the type of number it is: the leading Plus. By including the Plus before the number, all parties involve understand that the next digits will be the country code, followed by the national and local number.

```
INVITE sip:+19193160013@vwave.net:5060;user=phone SIP/2.0
Via: SIP/2.0/UDP 192.168.1.43:5060;branch=z9hG4bK6ae0c87576E0FF92
From: "u2292442099" <sip:u2292442099@vwave.net>;tag=90C2A5B1-AAFDEC86
To: <sip:19193160013@vwave.net;user=phone>
```

```
INVITE sip:+442074931232@vwave.net:5060;user=phone SIP/2.0
Via: SIP/2.0/UDP 192.168.1.43:5060;branch=z9hG4bK6ae0c87576E0FF92
From: "u2292442099" <sip:u2292442099@vwave.net>;tag=90C2A5B1-AAFDEC86
To: <sip:442074931232@vwave.net;user=phone>
```

 

While it's easy to say this is preferred, it's not the right fit for most cases where an ordinary human is dialing the call. Most keypads don't have an obvious + dialing symbol, and users conventionally dial a shorter number.

## Steering Digits![](https://www.ecg.co/hs-fs/hubfs/Imported_Blog_Media/dghxwdnsapem8p-1-1.jpg?width=218&height=300&name=dghxwdnsapem8p-1-1.jpg)

*Zounds, it's Historical!* Dating from around 1950, when "[The subscriber, having dialed the first steering digits, then dials the ordinary number of the distant subscriber and the call is completed without any operator intervening.](https://books.google.com/books?id=FWwrAQAAMAAJ&q=steering+digits&dq=steering+digits&hl=en&sa=X&ved=0ahUKEwj5grGpjc3SAhVEziYKHWAdDRAQ6AEIMjAF)" his method prepends digits to the actual telephone number to mean certain things; for example "99911" prepended to the telephone number may mean to use Long Distance Gateway 1, and "99912" indicates to use Long Distance Gateway 2.

```
INVITE sip:999119193160013@vwave.net:5060;user=phone SIP/2.0
Via: SIP/2.0/UDP 192.168.1.43:5060;branch=z9hG4bK6ae0c87576E0FF92
From: "u2292442099" <sip:u2292442099@vwave.net>;tag=90C2A5B1-AAFDEC86
To: <sip:19193160013@vwave.net;user=phone>
```

Despite the vintage charm, this method is worth avoiding when possible. There are several good alternatives in SIP:

- ["tgrp" from RFC4904](https://tools.ietf.org/html/rfc4904): In this method, a trunk group identifier is a tag in the user portion of the URI.
  
  ```
  INVITE sip:+19193160013;tgrp=TG-1@vwave.net:5060;user=phone SIP/2.0
  Via: SIP/2.0/UDP 192.168.1.43:5060;branch=z9hG4bK6ae0c87576E0FF92
  From: "u2292442099" <sip:u2292442099@vwave.net>;tag=90C2A5B1-AAFDEC86
  To: <sip:+19193160013@vwave.net;user=phone>
  ```

- "dtg" for  Destination Trunk Group: In this method, a trunk group identifier is a URI parameter.  This seems to be a BroadSoft BroadWorks extension.
  
  ```
  INVITE sip:+19193160013@192.168.42.2;dtg=1:5060;user=phone SIP/2.0
  Via: SIP/2.0/UDP 192.168.1.43:5060;branch=z9hG4bK6ae0c87576E0FF92
  From: "u2292442099" <sip:u2292442099@vwave.net>;tag=90C2A5B1-AAFDEC86
  To: <sip:+19193160013@192.168.42.2;dtg=1;user=phone>
  ```

- Domain: In this back-to-basics method, a distinct domain name represents the service to be used.
  
  ```
  INVITE sip:+19193160013@tg-1.vwave.net:5060;user=phone SIP/2.0
  Via: SIP/2.0/UDP 192.168.1.43:5060;branch=z9hG4bK6ae0c87576E0FF92
  From: "u2292442099" <sip:u2292442099@vwave.net>;tag=90C2A5B1-AAFDEC86
  To: <sip:+19193160013@tg-1.vwave.net;user=phone>
  ```

## SIP Username

In non-PSTN environments, you can see calls placed to non-numeric identities.

```
INVITE sip:alice@atlanta.com:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.43:5060;branch=z9hG4bK6ae0c87576E0FF92
From: "u2292442099" <sip:bob@biloxi.com>;tag=90C2A5B1-AAFDEC86
To: <sip:alice@atlanta.com>

```

 

The SIP URI "sip:alice@atlanta.com" makes sense within the SIP network, but has no direct mapping to the E.164-dominated telephone network. This is essentially equivalent to dialing by extension.

Don't be misled by usernames that appear to be a number, such as this:

```
INVITE sip:ext.6100@26.128.128.1:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.43:5060;branch=z9hG4bK6ae0c87576E0FF92
From: "u2292442099" <sip:bob@biloxi.com>;tag=90C2A5B1-AAFDEC86
To: <sip:ext.6100@26.128.128.1>
```

The "ext.6100" in this example makes it incompatible with a telephone number; there's no automatic mapping between ext.6100 and a telephone number. This is intended to route a call to the user known to the UAS with the username "ext.6100".

## What is "user=phone"?

The examples I've shown mostly include "user=phone". This represents that the user portion of the URI (to the left of the @ sign) is to be interpreted as a telephone number. [These can be readily rewritten as "tel:" URIs, as described in RFC3966.](https://tools.ietf.org/html/rfc3966)

 

## Similar posts

[![Black-Box Testing Fring for SIP and SkypeOut](https://www.ecg.co/hubfs/ecg-site/blog-listing-placeholder.jpg)](https://www.ecg.co/blog/61-black-box-testing-fring-for-sip-and-skypeout)

### [Black-Box Testing Fring for SIP and SkypeOut](https://www.ecg.co/blog/61-black-box-testing-fring-for-sip-and-skypeout)

[![SIP and Fragments: Together Forever?](https://www.ecg.co/hubfs/Imported_Blog_Media/regular_26664897842_9f2f1b18db_o-1.jpg)](https://www.ecg.co/blog/125-sip-and-fragments-together-forever)

### [SIP and Fragments: Together Forever?](https://www.ecg.co/blog/125-sip-and-fragments-together-forever)

[![Jonathan Rosenberg: No new applications because all the ideas are old.](https://www.ecg.co/hubfs/ecg-site/blog-listing-placeholder.jpg)](https://www.ecg.co/blog/31-jonathan-rosenberg-no-new-applications-because-all-the-ideas-are-old)

### [Jonathan Rosenberg: No new applications because all the ideas are old.](https://www.ecg.co/blog/31-jonathan-rosenberg-no-new-applications-because-all-the-ideas-are-old)

## Need Help With Your Network or AI Project?

Get expert advice from engineers who've solved complex problems for carriers, enterprises, and government agencies.

[Let's Talk](https://www.ecg.co/contact)

[![ecg-logo-white](https://www.ecg.co/hubfs/ecg-site/global/ecg-logo-white.svg "ecg-logo-white")](https://www.ecg.co/)

505 North Toombs St. Suite A  
Valdosta, Georgia 31601 USA

#### Headquarters

- 1.866.324.0700 US Toll-free
- 1.229.244.2099 International
- 1.229.244.2399 Fax
- [info@e-c-group.com](mailto:info@e-c-group.com)

#### Services

- [Overview](https://www.ecg.co/services)
- [Network Operations](https://www.ecg.co/services/network-operations)
- [Custom AI Development](https://www.ecg.co/services/custom-ai-development)
- [Outsourced NOC Support](https://www.ecg.co/services/outsourced-noc-support)
- [Staff Augmentation](https://www.ecg.co/services/staff-augmentation)
- [IT Consulting & Engineering](https://www.ecg.co/services/it-consulting-and-engineering)

#### Company

- [About](https://www.ecg.co/about)
- [Careers](https://www.ecg.co/careers)
- [Blog](https://www.ecg.co/blog)
- [Resources](https://www.ecg.co/resource-library)
- [Events](https://www.ecg.co/events)

© ECG, Inc. [Privacy Policy](https://9353907.hs-sites.com/privacy)

<https://twitter.com/ECGdotCO> <https://www.linkedin.com/company/-ecg-inc/>

```json
{
  "@context" : "https://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Mark Lindsey",
    "url" : "https://www.ecg.co/blog/author/mark-lindsey"
  },
  "dateModified" : "2025-03-31T08:47:41.110Z",
  "datePublished" : "2017-01-09T05:00:00.000Z",
  "headline" : "Interop I: SIP Number Formatting: Local, National, E.164, Oh My! - ECG",
  "mainEntityOfPage" : {
    "@id" : "https://www.ecg.co/blog/124-interop-i-sip-number-formatting-local-national-e-164-oh-my",
    "@type" : "WebPage"
  },
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "url" : "https://www.ecg.co/hubfs/ECG_hexagons_and_url_borderless.jpeg"
    },
    "name" : "ECG, Inc"
  }
}
```