McDewey

Multi-vendor documentation library · semantic search · MCP endpoint at /mcp

Page 51

↗ View in doc context
page
51
source
voice-quality/troubleshooting/cisco-ios-vs-iosxe/cisco-ios-vs-iosxe.md
chunk_id
voice-quality::troubleshooting::cisco-ios-vs-iosxe::cisco-ios-vs-iosxe::66

Modification Sets Sets are specified as \0, \1, \2, and so on. • \0 matches anything in between the first match-set. This can also be accomplished via an ampersand character: &. • \1 matches the first set of ( ) in the match-set • \2 matches the second set of ( ) in the match-set • So on and so forth. • Translation-rule example with two sets In this example, you can examine the number 000111000222. You want to remove the 0s from the number and realize a final number of 111222. To do this, you configure set 1 and 2 to grab the 111 and 222 respectively while dropping the 0s.

! voice translation-rule 333 rule 1 /000(111)000(222)/ /\1\2/ ! voice translation-profile SET-EXAMPLE translate called 333 !

Gateway# test voice translation-rule 333 000111000222 Matched with rule 1 Original number: 000111000222 Translated number: 111222 Original number type: none Translated number type: none Original number plan: none Translated number plan: none

Example to strip the 9 out-dial pattern from a called number

! voice translation-rule 9 rule 1 /^9(.*)/ /\1/ ! voice translation-profile STRIP-9 translate called 9 ! dial-peer voice 9 voip translation-profile outgoing STRIP-9 ! voice-port 0/0/0 translation-profile outgoing STRIP-9 !

Gateway# test voice translation-rule 9 918675309 Matched with rule 1 Original number: 918675309 Translated number: 18675309 Original number type: none Translated number type: none Original number plan: none Translated number plan: none