[cisco-voip] translation rule
Sandy Lee
Sandy.Lee at sit.ulaval.ca
Tue Jan 27 09:21:12 EST 2009
Hi,
"Translate called 102" under your voice port only calls for your translation rule 102.
translation-rule 102
Rule 1 ^5212611 85
Rule 2 ^05212611 85
If you want your voice-translation rule 102 to be applied to a dial-peer, you need to add a voice translation-profile.
voice translation-profile TranslateTo85
translate called 102
....
voice translation-rule 102
rule 1 /^0521261.\(..\)/ /85\1/
rule 2 /^521261.\(..\)/ /85\1/
....
dial-peer voice 1 pots
translation-profile [incoming/outgoing] TranslateTo85
destination-pattern 0T
progress_ind setup enable 3
progress_ind alert enable 8
incoming called-number 521261...
direct-inward-dial
port 7/0:D
...
I'm just not sure what exactly you want to do, do you want to translate on incoming or outgoing calls ? Also, your dial-peer will only match incoming numbers beginning with 521261... or on outgoing numbers beginning with 0. Why apply a translation-rule if you want only on one or the other ? I suggest you add a dial-peer to match both your scenarios, but again, I'm not sure of what you want to do exactly.
Sandy.
________________________________
Sandy Lee
Analyste
SIT-Direction des infrastructures
Université Laval
Email : Sandy.Lee at sit.ulaval.ca
S 418.656.2131, ext. 4420
_______________________________
Avis relatif à la confidentialité / Notice of confidentiality
-----Original Message-----
From: cisco-voip-bounces at puck.nether.net [mailto:cisco-voip-bounces at puck.nether.net] On Behalf Of granata77 at libero.it
Sent: Tuesday, January 27, 2009 4:15 AM
To: chrward
Cc: cisco-voip
Subject: Re: [cisco-voip] translation rule
I've configured the voice port with the 'transled called 102'.
How does it configure the dial-peer with the voice
translation profile?
thanks.
by
---------- Initial Header -----------
>From : "Chris Ward" chrward at cisco.com
To : "granata77 at libero.it" granata77 at libero.it,"patrick.diener" patrick.diener at gmail.com
Cc : "cisco-voip" cisco-voip at puck.nether.net
Date : Mon, 26 Jan 2009 12:21:56 -0500
Subject : Re: [cisco-voip] translation rule
> It doesn't look like you have configured the dial-peer with the voice
> translation profile.
>
> Chris Ward
>
> > From: "granata77 at libero.it" <granata77 at libero.it>
> > Date: Mon, 26 Jan 2009 17:36:19 +0100
> > To: "patrick.diener" <patrick.diener at gmail.com>
> > Cc: cisco-voip <cisco-voip at puck.nether.net>
> > Subject: Re: [cisco-voip] translation rule
> >
> > Thanks to everybody.
> > Therefore, I have made the following configurations:
> >
> > ....
> > voice translation-rule 102
> > rule 1 /^0521261.\(..\)/ /85\1/
> > rule 2 /^521261.\(..\)/ /85\1/
> > ....
> > translation-rule 102
> > Rule 1 ^5212611 85
> > Rule 2 ^05212611 85
> > ....
> > voice-port 7/0:D
> > translate called 102
> > echo-cancel coverage 32
> > cptone IT
> > busyout monitor gatekeeper
> > busyout monitor GigabitEthernet0/0
> > ...
> > dial-peer voice 1 pots
> > destination-pattern 0T
> > progress_ind setup enable 3
> > progress_ind alert enable 8
> > incoming called-number 521261...
> > direct-inward-dial
> > port 7/0:D
> > ...
> >
> > Here the output of the router:
> >
> > -> test translation-rule 102 0521261108
> > The replaced number: 8508
> >
> > -> test voice translation-rule 102 0521261108
> > Matched with rule 1
> > Original number: 0521261108 Translated number: 8508
> > Original number type: none Translated number type: none
> > Original number plan: none Translated number plan: none
> >
> > -> test voice translation-rule 102 0521261508
> > Matched with rule 1
> > Original number: 0521261508 Translated number: 8508
> > Original number type: none Translated number type: none
> > Original number plan: none Translated number plan: none
> >
> > -> test translation-rule 102 0521261508
> > number 0521261508 can't match any translation rules
> >
> > Therefore your configuration is corrected, but when I make a call to the
> > number to traslate, it does not work. Why?
> >
> > thanks.
> >
> >
> >
> > _______________________________________________
> > 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
More information about the cisco-voip
mailing list