350-801 · Question #195
Users dial a 9 before a 10-digit phone number to make an off-net call. All 11 digits are sent to the Cisco Unified Border Element before going out to the PSTN. The PSTN provider accepts only 10…
The correct answer is A. voice translation-rule 1 rule 1 /^9/ //. To remove the leading '9' from an 11-digit number before sending it to the PSTN, a voice translation rule with a regular expression needs to be configured on the Cisco Unified Border Element (CUBE).
Question
Users dial a 9 before a 10-digit phone number to make an off-net call. All 11 digits are sent to the Cisco Unified Border Element before going out to the PSTN. The PSTN provider accepts only 10 digits. Which configuration is needed on the Cisco Unified Border Element for calls to be successful?
Options
- Avoice translation-rule 1 rule 1 /^9/ //
- Bvoice translation-rule 1 rule 1 /^9(..........)/ //
- Cvoice translation-rule 1 rule 1 /^9.+/ //
- Dvoice translation-rule 1 rule 1 /^9........../ //
How the community answered
(34 responses)- A74% (25)
- B3% (1)
- C15% (5)
- D9% (3)
Why each option
To remove the leading '9' from an 11-digit number before sending it to the PSTN, a voice translation rule with a regular expression needs to be configured on the Cisco Unified Border Element (CUBE).
The regular expression /^9/ matches a '9' at the beginning of the dialed string and replaces it with nothing, effectively stripping the leading '9' from the 11-digit number to leave the required 10 digits for the PSTN provider. This is a common digit manipulation technique on CUBE.
This regular expression attempts to capture 10 characters after the leading '9', but the replacement part is empty, which would result in an empty string if it matched and the regex syntax for `(..........)` is not standard for matching 10 arbitrary characters in Cisco IOS regex.
The regular expression /^9.+/ matches a '9' at the beginning followed by one or more characters; replacing this entire match with nothing would strip the '9' and all subsequent digits, which is not the desired outcome.
The regular expression /^9........../ matches a '9' at the beginning followed by exactly 10 characters; replacing this entire match with nothing would strip the '9' and all 10 subsequent digits, which is not the desired outcome.
Concept tested: CUBE digit manipulation using voice translation rules
Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/voice/cube/configuration/cube-book/vts.html
Topics
Community Discussion
No community discussion yet for this question.