Showing posts with label CCME - Dialing. Show all posts
Showing posts with label CCME - Dialing. Show all posts

Tuesday, March 24, 2015

VGW- All about Translations


Translation Rules
  • Voice translation rule is to be created first
  • Second step to create a translation profile and associate the voice translation rule to the profile
  • Apply the translation profile to a dial peer or voice port


In global config, enter voice translation-rule x where x is the tag identifier

You can have 15 rules under a voice translation rule prior to IOS 15.1.4M.  After 15.1.4M, you can have up to 100 rules under a voice translation rule.


The translation rule takes the number slice and substitutes it into the translated number slice grouping e.g.rule 1 /1234/ /4321/ translates 1234 into 4321.  There are different voice translation rule operators, also known as regular expression.


  • ^ - matches the expression at start of the line e..g 
  • $ - matches expression at end of the line
  • / - marks start and end of the matching and replacing set
  • \ - Escape - removes meaning of the next character
  • -  - hyphen is used to indicate a range e.g. 1-9  1 and all the digits through 9.  
  • [1456] - only matches one of the single characters in the brackets mentioned in the list e..g 1 or 4 or 5 or 6
  • [^1456] - cannot match any of the single digits in the list .e.g cannot match 1 or 4 or 5 or 6
  • .   - matches any single character.  
  • * - repeats the previous regular expression ZERO or more times e.g.   /^818\(.*\)/     /515\1/  
    • If 8183334880 is dialed, it will take the dialed number and replace 3334880 instead of the 1 group number slice because "." matches any number and the * will match "." an infinite number of times so it could even be dialed number 81811111111111 and it would be translated to 51511111111111.  Basically allows for anything, including null e.g. if no match, it will still translate 
  • + - repeats the previous expression ONCE or more times e.g. basically same as * operator with exception of null. 
  • ? - Repeats the previous regular express zero or one occurrence of the previous expression ( Use control + v key and then press ? key to enter this in) e.g. /^818\(.?\)/ /515\1/ when 8183334880 is dialed, it will translate it to 51533
  • ( ) - groups digits into sets 
  • & - Brings all matched digits into the replacement string


Translation Profiles
**Place holder**

Wednesday, November 2, 2011

International Dialing – VGW

When dialing internationally, each carrier can differ based on the ISDN type they accept.  To override the default ISDN type and plan generated by the router, use the command below within your Serial interface:

isdn map address [[address | reg-exp] plan plan type type | transparent]

The carrier may reject your default “International” ISDN type which you should notice from a Q.931 debug:

Called Party Number i = 0×91, ’0118704421234′
Plan:ISDN, Type:International
Aug 18 18:12:25: ISDN Se0/0/0:23 Q931: RX <- RELEASE_COMP pd = 8  callref = 0×8112
Cause i = 0x809C – Invalid number format (incomplete number)

Example:
interface Serial0/0/0:23
no ip address
encapsulation hdlc
isdn switch-type primary-ni
isdn incoming-voice voice
isdn map address 011.* plan isdn type unknown
no cdp enable


dial-peer voice 90111 pots
corlist outgoing call-international    (CME ONLY)
preference 1
destination-pattern 9011T
port 0/0/0:23
prefix 011



.