Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

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

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

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

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"
3 REPLIES

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

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"
New Member

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

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

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

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"
187
Views
0
Helpful
3
Replies
CreatePlease to create content