What Is a DID (Direct Inward Dialing)? A Plain-English Guide
A DID, or Direct Inward Dialing number, is a phone number that lets outside callers reach a specific person, department, or system on your phone network directly, without going through a receptionist or an operator.
Outside North America you will also see it called DDI (Direct Dial-In). The idea is the same: one connection to the phone network can carry many individual numbers, and each number can be sent to a different destination.
Why DIDs exist
In the old phone system, each external number needed its own physical line. A company with 50 employees who each wanted a direct number needed 50 lines, or it published one main number and an operator transferred every call.
Direct inward dialing solved this. The carrier delivers a call together with the number that was dialed, and the company's phone system uses that information to send the call to the right place. On older digital trunks (PRI), the carrier sent the last few digits of the dialed number. With SIP trunking, the full number arrives in the call setup message.
How a DID works over SIP
When someone dials one of your DID numbers:
- The caller's carrier routes the call to the carrier that owns the number.
- That carrier sends a SIP INVITE to your SIP trunk, with the dialed number in the request line and the
Toheader. - Your phone system, such as a PBX, FreeSWITCH, Asterisk, or a Kamailio and media server setup, reads the number.
- A routing rule maps that number to a destination: an extension, ring group, queue, IVR menu, voicemail, or an AI voice receptionist.
The key point is that one SIP trunk can carry hundreds of DIDs. You pay per number, not per line, and you can change where each one goes in software at any time. For more on how the INVITE carries the dialed number, see our guide to what SIP is and how it works.
Types of numbers
| Type | What it is | Typical use |
|---|---|---|
| Local | A number tied to a geographic area code | Local presence, branch offices |
| Toll-free | 800, 888, 877 and similar | Customer service lines, where the called party pays for the call |
| International | Numbers in other countries | Serving customers abroad without a local office |
| Vanity | A memorable pattern, such as digits that spell a word | Marketing |
Availability and rules differ by country, and some countries require local proof of address or presence for a number.
Routing a DID: examples
The routing logic lives in your phone system. Here is a simple FreeSWITCH dialplan entry that sends one DID to extension 1001:
<extension name="did-5551234567">
<condition field="destination_number" expression="^(\+?1?5551234567)$">
<action application="transfer" data="1001 XML default"/>
</condition>
</extension>
The same idea in an Asterisk dialplan:
exten => 5551234567,1,Dial(PJSIP/6001)
Real systems add time-of-day rules, holiday routing, failover to a second destination, and queues. Our FreeSWITCH vs Asterisk comparison covers how the two platforms handle this kind of logic.
Format your numbers consistently
The most common DID bug is a format mismatch. Carriers may deliver the same number as +15551234567, 15551234567, or 5551234567. If your routing rule expects only one of those, calls will fail to match and fall through to a default or a failure. Normalize inbound numbers to the E.164 format (a plus sign, country code, and number, up to 15 digits) before matching.
What to check before you buy DIDs
- Coverage. Does the provider offer numbers in the area codes and countries you need?
- Trunk capacity. DIDs are numbers; concurrent call channels limit how many calls can happen at once. Make sure channels match your peak traffic.
- Pricing model. Typically a monthly fee per number plus per-minute inbound charges, with different rates for toll-free. Compare total cost, not just the headline per-number price.
- Redundancy. Can the provider send calls to a primary and backup SIP destination?
- Number porting. Can you bring your existing numbers, and how long does it take?
- Emergency calling (911). Outbound emergency calls need a registered location for the number making the call.
- Caller ID and STIR/SHAKEN. If you place outbound calls from your DIDs, the carrier needs to attest that you own them. See our STIR/SHAKEN compliance guide.
- Text messaging. If you want SMS on a number, US business messaging needs registration. Read our 10DLC registration guide.
Our DID provider evaluation checklist walks through these questions in more detail.
Porting numbers
Porting means moving a number from one carrier to another while keeping the number. A few practical rules:
- Do not cancel the old service first. Cancelling before the port completes can lose the number.
- Gather the account details your current carrier has on file, such as the account number, the exact service address, and a billing name that matches.
- Expect the process to take days or longer, and to depend on the carrier and the type of number.
- Plan a cutover so that calls are answered during the switch. Our enterprise number porting guide covers this in depth.
DID vs other terms people confuse it with
- DID vs extension. An extension is an internal number. A DID is an external number. A DID can point at an extension.
- DID vs trunk. A trunk is the connection to the carrier. DIDs are numbers carried over it.
- DID vs virtual number. A virtual number is a number not tied to a physical line. A DID delivered over SIP is effectively a virtual number.
- DID vs main number. A main number is the published front door. DIDs give individuals or functions their own door.
Common problems
| Symptom | Likely cause |
|---|---|
| Calls to a DID get a fast busy or reorder tone | The number is not routed on your side, or the trunk is unreachable |
| Calls reach the wrong place | Number format mismatch or an overlapping routing rule |
| Calls work but some fail at peak times | Not enough concurrent channels |
| Calls ring but audio is missing | NAT or codec issues, not the DID itself |
Frequently asked questions
Is a DID the same as a phone number?
A DID is a phone number delivered to your phone system by a carrier so that calls can be routed to specific destinations. Any external number you receive this way is a DID.
How many DIDs can one SIP trunk have?
Many. The number of simultaneous calls is limited by your channel count, not by how many numbers you hold.
Can I forward a DID to a mobile phone?
Yes. Your phone system can route the call out over the trunk to any number, though you need enough outbound channels and should check the added cost per call.
Can I get a DID in another country?
Often, yes. Rules differ by country, and some require local documentation.
Do I need a DID for each employee?
No. Many companies give DIDs only to people or teams who need a direct line and use extensions for everyone else.
References
- ITU-T E.164: international public telecommunication numbering plan
- RFC 3966: The tel URI for Telephone Numbers
- RFC 3261: SIP: Session Initiation Protocol
Building routing for many numbers, tenants, or an AI receptionist? Our custom VoIP development team designs DID routing, number porting workflows, and carrier integrations.
Related Services
Keep Reading
Discussion
0Join the conversation
Sign in with your preferred account to comment, reply, and keep the discussion useful for other engineers.
Takes a few seconds. No separate password required.
Controva LLC
Engineering Team
We build digital empires that scale. Specializing in high-performance web architecture, AI automation, and headless commerce.
Work with us