Proposed Dial Plan

Last Updated : Oct 16, 2023 |

The example scenario will use a single dial plan for all users.

  • The plan must convert all numbers to a format useable by the IP Office system. The translations also need to match the dial patterns used for the voice routes.

  • The plan must contain the full range of required digit translations for all users. MS Teams uses the PSTN usages in the user's assigned voice routing policy to control numbers a particular user can call.

  • The plan must cover the format used for numbers stored within Azure Active Directory (typically full E.164 format) and numbers dialed from the MS Teams client.

  • The order of the dial patterns is important. MS Teams checks the entries in the dial plan for a match from the top-down.

  • The matching of calls already dialed in the format expected by the IP Office appears superfluous. However, doing this in the dial plan, prevents the country dial plan matching and altering the numbers.

In this case, the plan matches expected dialing in the customer's UK location.

Pattern

Translation

Description

^\+?(2\d{2})$

$1

Match any 3-digit numbers beginning with a 2. That is, IP Office extension numbers. Translate the full number as is. The \+? part matches numbers prefixed with or without a +.

^(\*.+)$

$1

Match any numbers prefixed with a *. That is, IP Office short codes. Translate the full number as is.

^(\+44|0044|0)?(1632)?768([24]\d{2})$

$3

Match any DID/DDI number dialed as a local, nation or international number. Translate to the extension number.

^(\d{6})$

$1

Match any 6-digit numbers. That is local phone numbers without the local area code. Translate the full number as is.

^(0\d{6,10})$

$1

Match any 7 to 10-digit numbers prefixed with a 0. That is national numbers. Translate the full number as is.

^(\+|00)44(.+)$

0$2

Match any number prefixed with 0044 or +44. That is, UK numbers dialed as full international numbers. Translate back to national numbers prefixed with just 0.

^(\+|00)(.+)$

00$2

Match any number prefixed with 00 or +. Translate the number to the international dialing prefix for the customer's location, for this scenario 00.