Wednesday, March 24, 2010

IPIPGW from CUCM to BR2

Tasks: configure HQ gw as IPIPGW aka CUBE to handle SIP calls from CUCM to BR2 CME
Recall that CUCM is using a SIP-TRUNK and codec g711u while CME on the BR2 side is using H.323 and codec g729r8.
  1. config HQ gw as IPIPGW with SIP interfacing CUCM and H323 toward BR2 CME
                                      voice service voip
                                         allow-connections h323 to h323
                                         allow-connections h323 to sip
                                         allow-connections sip to h323
                                         allow-connections sip to sip
                                      sip
                                           bind control source-interface Loopback0
                                           bind media source-interface Loopback0

                                       interface Loopback0
                                          ip address 10.10.32.1 255.255.255.255
                                          ip ospf network point-to-point
                                          h323-gateway voip interface
                                          h323-gateway voip h323-id HQ-IPIPGW
                                          h323-gateway voip bind srcaddr 10.10.32.1
                                       gateway
                                       sip-ua
  1. config HQ gw with DSP resource to do transcoding. NOTE: IPIPGW binds to Loopback0 while DSP resources bind to Gig0/0.30.  Test by calling from HQ toward BR2 PSTN and place both phones off-hook.  If TRANSCODING is not working , will get busy tone when going off-hook.
                                    voice-card 1
                                       no dspfarm
                                      dsp services dspfarm
                                    sccp local GigabitEthernet0/0.30
                                    sccp ccm 10.10.30.1
                                    sccp ip precedence 3
                                    sccp
                                    sccp ccm group 1
                                           associate ccm 1 priority 1
                                           associate profile 1 register HQ-XCODER
                                    !        
                                   dspfarm profile 1 transcode
                                            maximum sessions 2
                                           associate application SCCP
                                    telephony-service
                                           sdspfarm units 1
                                           sdspfarm transcode sessions 2
                                           sdspfarm tag 1 HQ-XCODER
                                           max-ephones 2
                                           max-dn 4
                                           ip source-address 10.10.30.1 port 2000
                                           create cnf-files
  1. config HW gw with a dial-peer to point H323 dialed string to BR2
                                  dial-peer voice 1000 voip
                                          description ==== IPIPGW h323 to BR2 area code
                                          destination-pattern 4423.T
                                          session target ipv4:10.10.32.3
                                          dtmf-relay h245-alphanumeric
                                           no vad  
                                          codec g729r8
                                  dial-peer voice 1001 voip
                                         description ==== abbrev. dialing to BR2 internal IP phones
                                         destination-pattern 3...$
                                         session target ipv4:10.10.32.3
                                         dtmf-relay h245-alphanumeric
                                          no vad
  1. Add a SIP-TRUNK on CUCM, this is SIP trunk from CUCM to HQ gw.  Device-name = SIP-TRUNK-IPIPGW , DP = HQ , location = HQ , SIP destination-address = HQ Loopback0
  2. Add this SIP-TRUNK into RG-BR2 . 
  3. Add  RL-TEHO-HQ-TO-BR2  with 1st RG = RG-BR2 (Use Calling Party's External Phone Number Mask = ON , Discard Digits = predot) , 2nd RG = RG-HQ (Use Calling Party's External Phone Number Mask = ON , Discard Digits = predot , Prefix Digits (Outgoing Calls) = 011 ) .  
  4. Add Route-Pattern    9011.4423XXXXXXXX  , partition = PT-HQ-INTL , Route-List = RL-TEHO-HQ-TO-BR2 , urgent priority , strip PREDOT .
  5. For abbrev. dialing to BR2 internal IP phones , add following :   RL = RL-TEHO-HQ-TO-BR2-INTERNAL with  1st RG = RG-BR2 (Use Calling Party's External Phone Number Mask = ON , Discard Digits = predot) , 2nd RG = RG-HQ (Use Calling Party's External Phone Number Mask = ON , Discard Digits = predot , Prefix Digits (Outgoing Calls) = 01144232131 ) .  Pretty much same RL as on step 3 , except for the PSTN dialing part .  Add Router-Pattern  3XXX , PT = PT-internal , RL = RL-TEHO-HQ-TO-BR2-INTERNAL
 This should take care of HQ side, now we need to configure BR2 to handle incoming H323 calls
  1. config BR2 as H323 GW
                   interface Loopback0
                          ip address 10.10.32.3 255.255.255.255
                          ip ospf network point-to-point
                          h323-gateway voip interface
                          h323-gateway voip h323-id BR2
                          h323-gateway voip bind srcaddr 10.10.32.3
                   gateway
  1. config voice translation-rule & dial-peer  to handle incoming calls from VOIP
                  voice translation-rule 1
                         rule 2 /^44232131\(3\)\(...\)$/ /\1\2/    ==== strip to 3xxx for BR2 IP phones
                         rule 3 /^4423\(........\)$/ /9\1/              ==== strip to 9xxxxxxxx for BR2 local calls
                  voice translation-profile teho-cucm-to-br2
                        translate called 1
                  dial-peer voice 2000 voip
                        description ==== incoming from CUCM
                         translation-profile incoming teho-cucm-to-br2
                         incoming called-number 4423.T
                        dtmf-relay h245-alphanumeric
                         no vad
                        codec g729r8

Test calls by calling from HQ phones to BR2 internal phones + BR2 area PSTN numbers
  1. config voice translation-rule and dial-peer in BR2 for abbrev. dialing to CUCM
                          voice translation-rule 2
                                rule 1 /1\(...\)$/ /7752011\1/
                                rule 2 /1\(...\)$/ /3123012\1/
                          voice translation-pro to-cucm
                                translate called 2
                          dial-peer voice 2001 voip
                               description ==== from BR2 to CUCM
                               translation-profile outgoing to-cucm
                               preference 1
                              destination-pattern [1-2]...$
                              session target ipv4:10.10.32.1   ==== this is HQ Loop 0 int
                              dtmf-relay h245-alphanumeric
                              codec g729r8
                              no vad
  1. config IPIPGW dial-peer to handle incoming calls from BR2
                        dial-peer voice 1001 voip
                             description ==== BR2 calls to CUCM
                              preference 1
                             destination-pattern 775.T
                             session protocol sipv2
                             session target ipv4:10.1.200.21   ==== this is CUCM IP addrs
                             dtmf-relay rtp-nte
                             codec g711ulaw
  1.   config CUCM to handle incoming calls from BR2
                 add  PT = PT-IPIPGW , CSS = CSS-IPIPGW (with PT-INTERNAL & PT-IPIPGW)
                 set SIP-TRUNK-IPIPGW with CSS-IPIPGW , significant-digits = ALL
                 add translation-pattern , pattern = 775201.XXXX , PT = PT-IPIPGW , CSS = CSS-IPIPGW

Additional tasks for BR2 to call HQ area code numbers
  1. dial-peer voice 2002 voip   ==== dial-peer on BR2
     description ==== from BR2 to CUCM area code
     preference 1
     destination-pattern 9001775.......$
     session target ipv4:10.10.32.1
     dtmf-relay h245-alphanumeric
     codec g729r8
          no vad  
  1. voice translation-rule 1    ==== add voice translation-rule on HQ GW
            rule 3 /9001\(.*\)/ /\1/
    voice translation-profile DID
            translate called 1
    dial-peer voice 1002 voip    ==== same dial-peer configured before on HQ
            translation-profile incoming DID
            incoming called-number .
  2. on CUCM , add other PT such as PT-HQ-LOCAL , PT-HQ-LD into CSS-IPIPGW . 
  3. Add Translation-pattern , pattern = 775.XXXXXXX , PT = PT-IPIPGW , CSS = CSS-IPIPGW , discard-digit = PREDOT , Prefix Digits (Outgoing Calls) = 9  (remember , we want to use the HQ GW for PSTN local calls).
Test by calling from BR2 IP phone to HQ PSTN numbers + HQ IP phones.

CAVEATS:  TEHO calls from BR2 to BR1 area configs:
  • on BR2, add voip dial-peer 
                 dial-peer voice 3005 voip
                      translation-profile outgoing  teho-to-cucm
                      destination-pattern  9001312.T
                      session target ipv4:10.10.32.1
                      codec g729r8
                      dtmf-relay h245-alphanumeric
                      no vad
  • on HQ gw, add voip dial-peer to forward incoming calls from BR2  to CUCM, but specify g729codec
                dial-peer voice 1004 voip
                      description ==== handle calls from BR2 , teho to BR1 area
                      destination-pattern  312.T
                      session protocol sipv2
                      session target ipv4:10.1.200.21
                      codec g729r8
                      dtmf-relay h245-alphanumeric

  • Test by calling from BR2 phones to BR1 area code number.  Should see calls coming out of BR1 GW.  Note: on CUCM, should set Region for G729 between HQ and BR1 (default is G711).

2 comments:

  1. My project required to integrate dialer
    with voice playing ability, fax detection and digit recognition

    I bought
    http://voipcore.com
    and that guys provide great support

    ReplyDelete
  2. How do you troubleshoot if the HQ router isn't transcoding? I get the fast busy when I go off hook.

    ReplyDelete