The dialplan-pattern command works for both inbound call legs and outbound call legs.
This command is useful when:
- we have a direct mapping between DID numbers and internal phone DNs
- the last digits of each DID number equals to the phone DN. For example: DID 5126935002 -> internal phone x5002.
The dialplan-pattern command is available only for SCCP IP phones registered to a CUCME router.
For inbound call legs, the dialplan-pattern command allows to translate a called DID number into a shorter number that matches the ephone-dn.
For outbound call legs, the same command translates the short calling number -which is the internal company number- to a full DID number.
Here is the lab setting in which we are going to test the dialplan-pattern command:
First, we remove all the voice translation rules and voice translation patterns.
Then the configuration of the dialplan-pattern command is done at the Telephony-service level
The dialplan-pattern command generates a POTS dial peer for each internal 4-digit extension.
You can’t see the configuration of these auto-generated dial peers.
Dialplan-pattern effect on inbound call legs
A call from PSTN to 5126935002 is matched at Mongi router to an inbound dial peer, then the auto-generated dial peer is selected as the outbound matched dial peer.
Dialplan-pattern effect on outbound call legs
Let’s call from an internal extension x5001 to the local PSTN number 512477551. The calling number got translated from x5001 to 5126935001: