Translation Rules/Profiles and TON

azaghulazaghul Member Posts: 569 ■■■■□□□□□□
Have had my PSTN cloud working for about a week. I can at least get calls between my sites via E1/T1 PRI. Basic config was not that bad, till you get to ANI, DNIS and Translation Rules/Profiles.

Managed to troubleshoot called/calling numbers by looking at the ISDN q931 messages to see what was coming into the cloud. This made changing the ANI easier to send back out.

However the Study Guide keeps mentioning matching on Type Of Number (international / national / subscriber) for digit manipulation. But I can't seem to find how to set the TON. Being able to set the TON for a call in the PSTN cloud would simplify some digit manipulation on HQ and the Branches.

Any ideas?

Cheers,
Dave

OT: really have to move my equipt rack this weekend, having 2 PCs, 3 switches and 5 routers (HQ, BR1, BR2, PSTN and WAN) 1m away is just too noisy. Have mapped it out in PacketTracer (so much quieter) and it seems to work, just VLANs galore

Comments

  • pitviperpitviper Member Posts: 1,376 ■■■■■■■□□□
    Try this (example about 1/3 of the way down the page):

    Number Translation using Voice Translation Profiles [Call Routing / Dial Plans] - Cisco Systems

    You can match / set the type in a translation rule and apply it to the outbound dial-peer.

    You can also set it in UCM, but I'm assuming that you are using CME for CVOICE studies :)
    CCNP:Collaboration, CCNP:R&S, CCNA:S, CCNA:V, CCNA, CCENT
  • pitviperpitviper Member Posts: 1,376 ■■■■■■■□□□
    From the above link:

    Change Outbound Calls with a Plan and Type of Unknown to ISDN and National
    voice translation-rule 1
    rule 1 // // type unknown national plan unknown isdn

    !--- Matches any number string with a plan and type of
    !--- unknown. Also changes the type to national and the plan to isdn.

    !
    voice translation-profile isdn_map
    translate called 1

    !--- Invokes voice translation rule 1 in order to translate the called number.

    !
    dial-peer voice 1 pots
    translation-profile outgoing isdn_map

    !--- Invokes voice translation profile “isdn_map” for outgoing calls.

    kearly01#test voice translation-rule 1 5551234 type unknown plan unknown
    Matched with rule 1
    Original number: 5551234 Translated number: 5551234
    Original number type: unknown Translated number type: national
    Original number plan: unknown Translated number plan: isdn
    CCNP:Collaboration, CCNP:R&S, CCNA:S, CCNA:V, CCNA, CCENT
  • azaghulazaghul Member Posts: 569 ■■■■□□□□□□
    Thanks for the info pitviper, now to read and (try to) digest. icon_study.gif

    Though it could raise a few more questions to investigate. One of the joys of only being in a Home Lab environment and trying to break into VoIP from the PBX world.

    Thinking through your example, seems I'll need to set up a type=INTERNATIONAL and type=NATIONAL for each PRI based on DNIS.icon_confused.gif:

    Yeah, running CUCME v4.1 for CVOICE. Though I do have CUCM installed on VMware and also on 2 IBM servers, just waiting for when I get to CIPT1.
  • azaghulazaghul Member Posts: 569 ■■■■□□□□□□
    OK, think I've got it (touch wood), this is the config in the PSTN cloud router...
    [FONT=Courier New]voice translation-rule 1200
     rule 1 /^3...$/        /206555\0/
    
    voice translation-rule 1201
     rule 1 /^\([1-9]\)/    /\1/    type any national       plan any isdn
     rule 2 /^011/          /1/     type any international  plan any isdn
    
    voice translation-profile SEATLE
     translate calling 1200           ! change the ANI from 3xxx to 2065553xxx
     translate called 1201            ! change type/plan based on DNIS
    
    voice-port 0/2:23
     desc *** PRI to/from SEATLE
     translation-profile incoming SEATLE
     translation-profile outgoing SEATLE[/FONT]
    
  • azaghulazaghul Member Posts: 569 ■■■■□□□□□□
    Still working on it...icon_cheers.gif

    But have found a great article on the INE site about PSTN routers...

    hxxp://blog.internetworkexpert.com/2009/01/18/configuring-a-pstn-dialplan/
  • pitviperpitviper Member Posts: 1,376 ■■■■■■■□□□
    Nice writeup - I wish that I saw that when I was setting up the cloud!!

    I'm using what's essentially a modified version of ccbootcamp's PSTN router config split across 2 devices:

    hostname PSTN-WAN
    !
    boot-start-marker
    boot-end-marker
    !
    card type e1 0 1
    logging message-counter syslog
    enable password cisco
    !
    no aaa new-model
    clock timezone PST -8
    clock summer-time PST recurring
    network-clock-participate wic 0
    network-clock-participate wic 1
    !
    dot11 syslog
    ip source-route
    !
    !
    ip cef
    ip dhcp excluded-address 10.1.200.1 10.1.200.230
    ip dhcp excluded-address 10.1.200.239 10.1.200.254
    !
    ip dhcp pool PSTN
    network 10.1.200.0 255.255.255.0
    default-router 10.1.200.229
    option 150 ip 10.1.200.229
    !
    !
    no ip domain lookup
    no ipv6 cef
    multilink bundle-name authenticated
    !
    !
    !
    !
    frame-relay switching
    isdn switch-type primary-net5
    !
    !
    !
    !
    !
    !
    !
    !
    !
    !
    !
    !
    !
    !
    !
    !
    !
    voice translation-rule 1
    rule 1 /\(^011\)\(.*\)/ /\2/
    rule 2 /\(^1\)\(.*\)/ /\2/
    rule 3 /\(^0\)\([^0].*\)/ /\2/
    rule 4 /\(^001\)\(.*\)/ /\2/
    !
    voice translation-rule 2
    rule 1 /^702/ /1&/ type any international
    rule 2 /^4420\(.*\)/ /\1/ type any subscriber
    rule 3 /^44\(.*\)/ /\1/ type any national
    rule 4 /^801/ /1&/ type any international
    !
    voice translation-rule 3
    rule 1 /^801\(.*\)/ /\1/ type any subscriber
    rule 2 /^702/ /&/ type any national
    rule 3 /^44/ /&/ type any international
    !
    voice translation-rule 4
    rule 1 /^702\(.*\)/ /\1/ type any subscriber
    rule 2 /^801/ /&/ type any national
    rule 3 /^44/ /&/ type any international
    !
    !
    voice translation-profile BR1
    translate calling 3
    !
    voice translation-profile BR2
    translate calling 2
    !
    voice translation-profile HQ
    translate calling 4
    !
    voice translation-profile PSTN
    translate called 1
    !
    !
    voice-card 0
    !
    !
    !
    !
    !
    archive
    log config
    hidekeys
    !
    !
    controller T1 0/0/0
    clock source internal
    pri-group timeslots 1-3,24
    !
    controller T1 0/0/1
    clock source internal
    pri-group timeslots 1-3,24
    !
    controller E1 0/1/0
    clock source internal
    pri-group timeslots 1-3,16
    !
    !
    !
    !
    !
    interface FastEthernet0/0
    ip address 10.1.200.229 255.255.255.0
    duplex auto
    speed auto
    no shut
    !
    interface FastEthernet0/1
    no ip address
    shutdown
    duplex auto
    speed auto
    !
    interface Serial0/0/0:23
    no ip address
    encapsulation hdlc
    isdn switch-type primary-ni
    isdn protocol-emulate network
    isdn incoming-voice voice
    no cdp enable
    !
    interface Serial0/0/1:23
    no ip address
    encapsulation hdlc
    isdn switch-type primary-ni
    isdn protocol-emulate network
    isdn incoming-voice voice
    no cdp enable
    !
    interface Serial0/1/0:15
    no ip address
    encapsulation hdlc
    isdn switch-type primary-net5
    isdn protocol-emulate network
    isdn incoming-voice voice
    no cdp enable
    !
    interface Serial1/0
    description FR to HQ
    no ip address
    encapsulation frame-relay IETF
    no fair-queue
    clock rate 128000
    frame-relay lmi-type ansi
    frame-relay intf-type dce
    frame-relay route 201 interface Serial1/1 101
    frame-relay route 202 interface Serial1/2 102
    no shut
    !
    interface Serial1/1
    description FR to BR1
    no ip address
    encapsulation frame-relay IETF
    no fair-queue
    clock rate 128000
    frame-relay lmi-type ansi
    frame-relay intf-type dce
    frame-relay route 101 interface Serial1/0 201
    no shut
    !
    interface Serial1/2
    description FR to BR2
    no ip address
    encapsulation frame-relay IETF
    clock rate 128000
    frame-relay lmi-type ansi
    frame-relay intf-type dce
    frame-relay route 102 interface Serial1/0 202
    no shut
    !
    interface Serial1/3
    no ip address
    shutdown
    !
    ip forward-protocol nd
    ip route 0.0.0.0 0.0.0.0 10.1.200.1
    !
    no ip http server
    no ip http secure-server
    !
    !
    !
    !
    tftp-server flash:P00308000500.bin
    tftp-server flash:P00308000500.loads
    tftp-server flash:P00308000500.sb2
    tftp-server flash:P00308000500.sbn
    !
    control-plane
    !
    !
    !
    voice-port 0/0/0:23
    translation-profile incoming PSTN
    translation-profile outgoing HQ
    !
    voice-port 0/1/0:15
    translation-profile incoming PSTN
    translation-profile outgoing BR2
    !
    voice-port 0/0/1:23
    translation-profile incoming PSTN
    translation-profile outgoing BR1
    !
    !
    mgcp fax t38 ecm
    !
    !
    !
    dial-peer voice 1 pots
    incoming called-number .
    direct-inward-dial
    !
    dial-peer voice 10 pots
    destination-pattern 7029461...
    port 0/0/0:23
    forward-digits all
    !
    dial-peer voice 11 pots
    destination-pattern 8013332...
    port 0/0/1:23
    forward-digits all
    !
    dial-peer voice 12 pots
    destination-pattern 442076303...
    port 0/1/0:15
    forward-digits all
    !
    !
    !
    telephony-service
    max-ephones 2
    max-dn 10
    ip source-address 10.1.200.229 port 2000
    load 7960-7940 P00308000500.bin
    max-conferences 8 gain -6
    transfer-system full-consult
    create cnf-files version-stamp Jan 01 2002 00:00:00
    !
    !
    ephone-dn 1
    number 911 secondary 999
    label 911+999
    description PSTN Phone
    !
    !
    ephone-dn 2
    number 7029465000 secondary 9465000
    !
    !
    ephone-dn 3
    number 8013335000 secondary 3335000
    !
    !
    ephone-dn 4
    number 442076305000 secondary 76305000
    !
    !
    ephone-dn 5
    number 443080005000
    !
    !
    ephone 1
    mac-address 000E.8492.D903
    type 7960
    button 1:1 2:2 3:3 4:4
    button 5:5
    !
    !
    !
    line con 0
    line aux 0
    line vty 0 4
    login
    !
    exit
    CCNP:Collaboration, CCNP:R&S, CCNA:S, CCNA:V, CCNA, CCENT
  • shodownshodown Member Posts: 2,271
    All good info I'm in the process of getting my lab together now. This will all come in handy.
    Currently Reading

    CUCM SRND 9x/10, UCCX SRND 10x, QOS SRND, SIP Trunking Guide, anything contact center related
  • azaghulazaghul Member Posts: 569 ■■■■□□□□□□
    Yeah, it was a really good article, makes me think my original design was overly complex. Now that I've got site-to-site working again, back to adding ANI info. I know I'd seen something here before, but couldn't locate it.

    I've got a 2 router solution for my cloud as well, a 1760 with 2 x WIC-2T acting as my frame-relay cloud configured for full mesh (depending on how the sites are configured) and a 2691 with CME/CUE as my PSTN.

    Now to reverse engineer your config.... its one way to learn.
  • pitviperpitviper Member Posts: 1,376 ■■■■■■■□□□
    azaghul wrote: »
    Now to reverse engineer your config.... its one way to learn.

    That's the single router PSTN/Frame-Relay ccbootcamp config - but yeah, best way to learn is to break down a working example :)
    CCNP:Collaboration, CCNP:R&S, CCNA:S, CCNA:V, CCNA, CCENT
  • azaghulazaghul Member Posts: 569 ■■■■□□□□□□
    Hi pitviper, thanks for your assistance.icon_thumright.gif

    Finally got it all working with ANI translation as well, so call-back of missed called works as it should. Not sure if I'm missing something though, as I had to set the TON on each outgoing dial-peer on each site (seems overly complex), where I'm sure it should be done on the PSTN router.

    Now for my next trick... setting up the VoIP dial-peers with with PSTN fall-back.:D
Sign In or Register to comment.