01-02-2014 08:43 PM - edited 03-16-2019 09:05 PM
Dear all,
I would like to ask you that:
currently i can call to my branches by press 1010 5050( 5050 is extension ). it's working.
but i would like to set press 30 1010 5050 to call out, the status it cannot call out, could you let me know some configure to allow 30 ?
dial-peer voice 1010 voip
description To Branches
destination-pattern 1010T
session target ipv4:203.10.10.1
voice-class codec 1
i try but it does't work:
dial-peer voice 1010 voip
description To Branches
destination-pattern 301010T
session target ipv4:203.10.10.1
voice-class codec 1
Note: 30 ( mean that if client press 30 mean they call to branches )
1010 ( mean country code to branches, we have 1010 , 1011 , 1012 .....)
5050 ( mean extension )
Best Regards,
Rechard
Solved! Go to Solution.
01-03-2014 01:39 AM
Hi Rechard.
rule 1 /^30\(.*\)/ /\1/ this is a regular expression divided into 2 section
first part /^30\(.*\)/ = matching case. all digit sequence starting with 30 (^30) and followed by an undefine seqence of digit
second part /\1/ = substitution case. Substitute with the second part of matched sequence
Please use the following link to have detailed info
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"
01-02-2014 09:29 PM
I Rechard.
Being 10.. the country code and last four digits the extension, I assume that coutry code is stripped off at the branch voice gateway.
so.. to avoid to work on all country's branche routers, you can add a translation rule stripping the 30 before country code.
eg
voice translation-rule 10
rule 1 /^30\(.*\)/ /\1/
voice translation-profile Strip-30
translate called 10
Than you can apply this translation profile to all dial-peers to other countries
dial-peer voice 1010 voip
description To Branches
translation-profile out Strip-30
destination-pattern 301010T
session target ipv4:203.10.10.1
voice-class codec 1
HTH
Regards
Carlo
Sent from Cisco Technical Support iPhone App
01-03-2014 01:26 AM
Dear Carlo,
could you show me some command as below:
rule 1 /^30\(.*\)/ /\1/
what does it mean /^30\
what does it mean (.*\)/
what does it mean/\1/
Best Regards,
Rechard
01-03-2014 01:39 AM
Hi Rechard.
rule 1 /^30\(.*\)/ /\1/ this is a regular expression divided into 2 section
first part /^30\(.*\)/ = matching case. all digit sequence starting with 30 (^30) and followed by an undefine seqence of digit
second part /\1/ = substitution case. Substitute with the second part of matched sequence
Please use the following link to have detailed info
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"
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide