04-26-2013 01:02 AM - edited 03-16-2019 05:00 PM
Dears,
The below translation profile is for outbound calls from the corporate which is having a 8 digit numbering plan the result for below translation profile is the digit which will go to ITSP are 8.. This means ITSP is accepting only 3 digit from me, please correct me if i am wrong.
voice translation-rule 1
rule 1 /0\([8]..\)/ /\1/
INCOMING TRANSLATION
i Have a 4 digit extension plan starting with 3XXX
The below Incoming Translation profiles will replace 214555 to 3...
voice translation-rule 1 rule 1 /^214555\(3...\)$/ /\1/
The above translation can also be configured in diffrent way, Is the both way are correct???
voice translation-rule 1
rule 1 /^2145553/ /3/
Can anybody route me to goof link of tutorial for trnaslation profiles.
Thanks
Solved! Go to Solution.
04-26-2013 01:29 AM
Hi Clark.
your first translation rule would translate a dialed number as 08XX with 8XX
The second will not work in that format.
you have rule 1 /^214555\(3...\)$/ /\1/
should be
rule 1 /^214555\(3...$\)/ /\1/ to trnaslate 2145553XXX into 3xxx
or,as you correctly mentioned, could be:
voice translation-rule 1
rule 1 /^2145553/ /3/
Please use this useful link as reference.
http://www.cisco.com/en/US/tech/tk652/tk90/technologies_tech_note09186a0080325e8e.shtml
HTH
Regards
Carlo
Please rate all helpful posts
"The more you help the more you learn"
04-26-2013 02:28 AM
Hi.
The rule
voice translation-rule 1
rule 1 /^2145553/ /3/
is also correct, it will translate 2145553 with 3 followed by a variable number of digits
Here some tests
test voice translation-rule 1 214555300000
Matched with rule 1
Original number: 214555300000 Translated number: 300000
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none
test voice translation-rule 1 21455530
Matched with rule 1
Original number: 21455530 Translated number: 30
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none
HTH
Regards
Carlo
04-26-2013 01:29 AM
Hi Clark.
your first translation rule would translate a dialed number as 08XX with 8XX
The second will not work in that format.
you have rule 1 /^214555\(3...\)$/ /\1/
should be
rule 1 /^214555\(3...$\)/ /\1/ to trnaslate 2145553XXX into 3xxx
or,as you correctly mentioned, could be:
voice translation-rule 1
rule 1 /^2145553/ /3/
Please use this useful link as reference.
http://www.cisco.com/en/US/tech/tk652/tk90/technologies_tech_note09186a0080325e8e.shtml
HTH
Regards
Carlo
Please rate all helpful posts
"The more you help the more you learn"
04-26-2013 01:42 AM
Clark,
This rule is correct and will change all numbers beginning with 2145553... to a 4 digit number eg 2145553000 to 3000
voice translation-rule 1
rule 1 /^214555\(3...\)$/ /\1/
This rule isnt correct and wont work. This will change the number 2145553 to 3..only
voice translation-rule 1
rule 1 /^2145553/ /3/
Please rate all useful posts
"opportunity is a haughty goddess who waste no time with those who are unprepared"
04-26-2013 02:28 AM
Hi.
The rule
voice translation-rule 1
rule 1 /^2145553/ /3/
is also correct, it will translate 2145553 with 3 followed by a variable number of digits
Here some tests
test voice translation-rule 1 214555300000
Matched with rule 1
Original number: 214555300000 Translated number: 300000
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none
test voice translation-rule 1 21455530
Matched with rule 1
Original number: 21455530 Translated number: 30
Original number type: none Translated number type: none
Original number plan: none Translated number plan: none
HTH
Regards
Carlo
04-26-2013 04:24 AM
Dears,
I have a 8 digit numbering plan in my country, ITSP gave me 100 DID for example 232323XX - 399
I am setting up a new SIP trunk connection to the ITSP , i dont have any information whether the ITSP is forwarding only 3 Digit or accepting only 3 digit from my end , how i will come to know ??? which debug i have to enable to know this information.
04-26-2013 04:26 AM
Ideally you should have confirmed this with your ITSP..but you can use debug ccsip messages or debug voip ccapi inout
Please rate all useful posts
"opportunity is a haughty goddess who waste no time with those who are unprepared"
04-30-2013 04:55 AM
Dears,
Thanks all for your replies.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: