[cisco-voip] h323 Translation
Patrick Diener
patrick.diener at gmail.com
Sun Sep 30 11:48:34 EDT 2007
this can be easly done in one rule using voice translation rules:
voice translation-rule 1
rule 1 /^.*/ /1\0/
^.* will match any digit string and relplace it with 1 + the matched
digit string
check out this doc for all you need to know about voice translation rules:
http://www.cisco.com/en/US/tech/tk652/tk90/technologies_configuration_example09186a00803f818a.shtml
if you are feeling more comfortable to use translation rules thats no
problem, they work. voice translation rules just give you way more
flexibility and control of the digit manipulation and there is tons
of stuff you can't do with translation rules...
Regards
Patrick
On 9/30/07, David Lin <david.lin at msn.com> wrote:
> Thanks Patrick.
>
> Particularly, I gonna add a prefix to all the number, such as 202xxx xxxx to
> 1202xxx xxxx, 905xxx xxxx to 1905xxx xxxx, etc.
> In the previous translate rule, I just need add one rule only,
> rule 1 * 1
>
> However, it seems I have to add 10 rules for every matching digit by voice
> translation rule,
> rule 1 /^1+/ /001/
> rule 2 /^2+/ /12/
> rule 3 /^3+/ /13/
> ......
> rule 9 /^9+/ /19/
>
> Vice versa, I have to add several rules to truncate the digits.
> Is my understanding/configuration correct?
>
>
> Thanks,
>
> David
>
>
> >From: "Patrick Diener" <patrick.diener at gmail.com>
> >To: cisco-voip at puck.nether.net
> >Subject: Re: [cisco-voip] h323 Translation
> >Date: Sun, 30 Sep 2007 10:18:55 +0200
> >
> >translation rules are the old and crappy way to do digit manipulation,
> >voice translation rules and profiles the new, elegant and flexible way
> >to do it.
> >
> >so NEVER EVER use translation rules anymore
> >
> >Regards
> >Patrick
> >
> >On 9/30/07, David Lin <david.lin at msn.com> wrote:
> > > Hi all,
> > > What is the difference between the commands Voice translation rule and
> > > translation rule?
> > > in what situation is it appropriate to use each of these commands?
> > > Thanks,
> > >
> > > David
> > >
> > >
> > > >From: "Scott Voll" <svoll.voip at gmail.com>
> > > >To: "cisco voip list" <cisco-voip at puck.nether.net>, scott.voll at wesd.org
> > > >Subject: Re: [cisco-voip] h323 Translation
> > > >Date: Fri, 28 Sep 2007 14:48:29 -0700
> > > >
> > > >Finished product:
> > > >
> > > >in case someone googles this and wants the config this is how it works:
> > > >
> > > >voice translation-rule 2 <-- Match No Caller ID and make it 9999
> > > > rule 1 /^$/ /9999/
> > > >!
> > > >voice translation-rule 3 <-- match the called number and send it where
> >you
> > > >want it to go (Call Handler)
> > > > rule 1 /4571/ /8888/
> > > >
> > > >voice translation-profile redirectUnknown <-- where to send caller
> >that
> > > >matches 9999 calling 4571 to
> > > >translate called 3
> > > >!
> > > >voice translation-profile unknown <-- match no caller ID to 9999
> > > > translate calling 2
> > > >
> > > >voice-port 3/1:23
> > > > translation-profile incoming unknown <-- match no caller ID to
> > > > echo-cancel coverage 128
> > > > bearer-cap Speech
> > > >!
> > > >voice-port 3/2:23
> > > > translation-profile incoming unknown <-- match no caller ID to
> > > > echo-cancel coverage 128
> > > > bearer-cap Speech
> > > >
> > > >dial-peer voice 6 pots
> > > > translation-profile incoming redirectUnknown <-- redirect caller to
> > > > answer-address 9999 <-- matching no caller ID
> > > > direct-inward-dial
> > > > port 3/1:23
> > > >
> > > >All other dial peers must have answer-address .... since your trying to
> > > >match 9999. "incoming called-number ." will mess up the matching.
> > > >
> > > >Scott
> > > >
> > > >
> > > >
> > > >
> > > >On 9/26/07, Scott Voll <svoll.voip at gmail.com> wrote:
> > > > >
> > > > > How do I match based on calling and called number and redirect to
> > > >another
> > > > > number?
> > > > >
> > > > > IE> No caller ID is calling 4571 (4 digits coming in PRI) --> send
> >to
> > > > > extension 8888
> > > > >
> > > > > How do i do that?
> > > > >
> > > > > Thanks
> > > > >
> > > > > Scott
> > > > >
> > >
> > >
> > > >_______________________________________________
> > > >cisco-voip mailing list
> > > >cisco-voip at puck.nether.net
> > > >https://puck.nether.net/mailman/listinfo/cisco-voip
> > >
> > > _________________________________________________________________
> > > Share More On Messenger with a Windows Live Space
> > > http://spaces.live.com/?mkt=en-ca
> > >
> > > _______________________________________________
> > > cisco-voip mailing list
> > > cisco-voip at puck.nether.net
> > > https://puck.nether.net/mailman/listinfo/cisco-voip
> > >
> >_______________________________________________
> >cisco-voip mailing list
> >cisco-voip at puck.nether.net
> >https://puck.nether.net/mailman/listinfo/cisco-voip
>
> _________________________________________________________________
> Enter to win a night a VIP night out at TIFF
> http://redcarpet.sympatico.msn.ca/
>
>
More information about the cisco-voip
mailing list