Skip to content

Route Inbound Calls based on DID Numbers

When a call arrives on a trunk (the connection from your telephone provider), Cloud Voice can decide where to send it based on the DID number the caller dialed. DID stands for Direct Inward Dialing: it is the public phone number a caller dials to reach you directly. This routing is set on a trunk’s inbound route, where the matching mode you choose decides how Cloud Voice reads the dialed number and which destination receives the call.

Choosing the right matching mode lets you point each number, block of numbers, or number pattern at the destination you want. This page introduces the four modes so you can pick the one that fits your numbering plan; step-by-step examples for each are covered in their own topics.

Cloud Voice gives you four ways to match a dialed number and route the call accordingly.

Map a contiguous block of DID numbers onto a contiguous block of extensions, one for one and in order. The first DID in the range reaches the first extension, the second DID reaches the second extension, and so on. This is the quickest option when your DIDs and extensions line up sequentially.

A range of DID numbers mapped in order onto a matching range of extensions

For the full walkthrough, see the example that routes calls to extension users by matching a DID range.

Build a single DID pattern that carries the extension number inside it, using the {{.Ext}} variable to stand in for the extension digits. Cloud Voice reads the matched digits from the dialed number and delivers the call to the extension they represent, so one pattern can cover many extensions.

A DID pattern containing the extension variable that resolves to individual extensions

For the full walkthrough, see the example that routes calls to extension users by matching DID patterns.

List specific DID numbers and pair each one with a specific extension. Every entry is a direct, one-to-one mapping, which is useful when the numbers you want to route do not form a tidy sequence.

Individual DID numbers each paired with a specific extension

For the full walkthrough, see the example that routes calls to extension users by matching specific DID numbers.

Define one or more DID numbers or patterns and send every call that matches them to a single chosen destination. Unlike the other modes, the target here is not tied to an extension range, so you can route matching calls to any destination you configure.

DID numbers and patterns routed to one shared destination

For the full walkthrough, see the example that routes calls to different destinations by matching DID patterns.