cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
414
Views
0
Helpful
3
Replies

How to add number and country code to call out to branches?

rechard_hk
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

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"

Please rate all helpful posts "The more you help the more you learn"

View solution in original post

3 Replies 3

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

Please rate all helpful posts "The more you help the more you learn"

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

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"

Please rate all helpful posts "The more you help the more you learn"