BTW, thanks, I think I am getting it... Cisco should be ashamed of their doc, it is a disaster...
Jonathan On Sat, Apr 5, 2008 at 1:13 PM, Jonathan Charles <[EMAIL PROTECTED]> wrote: > I found that if I remove the \ it makes it easier to read... > > So, this /^9\(555\)\(.\)77\(6\)/ /1800\1\3\66\2/ > > Becomes > > > /^9(555)(.)77(6)/ /1800\1\3\66\2/ > > So, now it is clear that starting with a 9, then 555, a dot, then 77 and a 6 > > We prefix 1800, bring over the 555, bring over the 6, then 66 and > bring over the . > > And get... 1800555666. > > Got it... > > Of course, reading them isn't the hard part... it is making them the > first go round... > > > Jonathan > > > > On Fri, Apr 4, 2008 at 8:35 PM, Edward French <[EMAIL PROTECTED]> wrote: > > > > Jonathan, > > > > The Cisco documentation on Voice translation sucks. Here is my > explaination: > > > > first make a voice translation-rule > > then apply the rule to a voice translation-profile > > Then apply it to your dial-peer, voice-port. > > > > Ok so that is the part most people get here comes the tough part > > > > in its most basic form a translation rule converts a set of digits to > > something else so > > > > /123/ /456/ would change 123 to 456 pretty simple so lets make it toughe > > > > /\(123/)/ /9\1/ this take set 1 and puts a 9 in front of it so the result > > is 9123. To give a bit more detail anytime you have a set of \( \) it > > creates a numbered "set" the first set of \( \) is set 1. the second set of > > \( \) is set and so on. If something is inside of \( \) and is passed to > the > > translated pattern it is passed without modification. So to pass a set to > > the translated number you have to call it the way you call it is \set > > number. Anything not in a called set will be discarded. > > > > So a little tougher string > > > > /\(2\)\(4\)/ /\2\1/ would be 42 as you can see from this 2 is "set 1" and > 4 > > is "set 2" in the result string we are requesting "set 2" then "set 1" > > > > So lets do something usefull > > > > /\(3...\)/ /331322\1/ converts a dn of 3002 to a full number of 3313223002 > > this is the translation rule needed for CME to CF to CUE with dial-plan in > > use. > > > > Now for a ridiculous on: > > > > /^9\(555\)\(.\)77\(6\)/ /1800\1\3\66\2/ > > and we dial 95558775 > > the result is 18005556668 or > > first we matched our pattern so start replacing and the we see the first > > thing is to place 1800, then "set 1" 555, then "set 3" or 6, then 66, then > > "set 2" or . which was input to the string as 8 when we put it all together > > in order we get 18005556668. > > > > Hope this helps > > > > Ed > > > > > > > > > > > > ----- Original Message ---- > > From: Jonathan Charles <[EMAIL PROTECTED]> > > To: CCIE Voice Online Study List <[email protected]> > > Sent: Friday, April 4, 2008 8:55:25 PM > > Subject: [OSL | CCIE_Voice] Primer on voice translation rules... > > > > OK, I think I am just really dumb here... I have gone thru the audio > > and the video, I took copious notes, checked the Cisco site for these, > > and I am still not getting it... I understand how the example works, > > but I tried doing some stuff out of my head... > > > > Anyone have more resources for this? > > > > > > > > Jonathan > > > > >
