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

Translation Rule not working

CiscoAzs
Level 1
Level 1

Hi Guys, i really need a help with the isdn incoming calls that are not working.

Translation rule not working, whats wrong?

Here are the configurations and the debug q931 outputs :

 

card type e1 0 0
!
voice-card 0
!
voice service voip
 allow-connections h323 to h323
 allow-connections h323 to sip
 allow-connections sip to h323
 allow-connections sip to sip
 fax protocol pass-through g711ulaw
 h323
 sip
  bind control source-interface GigabitEthernet0/0
  bind media source-interface GigabitEthernet0/0
  min-se 1200 session-expires 1200
  registrar server expires max 1200 min 300
!
voice class codec 1
 codec preference 1 g711alaw
 codec preference 2 g711ulaw
 codec preference 3 g729r8
!
voice class codec 2
 codec preference 1 g729r8
!
voice register global
 mode  cme
 source-address 10.x.x.x port 5060
 max-dn 44
 max-pool 44
 load 8961 sip8961.9-4-2SR1-2.loads
 load 7821 sip78xx.10-2-1-12.loads
 authenticate register
 timezone 25
 time-format 24
 date-format D/M/Y
 tftp-path flash:
 create profile sync 0016088381731508
!
voice register dn  1
 translation-profile incoming DID
 number 5100
 pickup-group 1
 name Test 
 label Test 
 mwi
!
voice register dn  2
 translation-profile incoming DID
 number 5101
 pickup-group 1
 name Test
 label Test
 mwi
!
voice register dn  3
 number 5102
 pickup-group 1
 name Test3
 label Test3
 mwi
!
voice register dn  4
 number 5103
 name CIPC
 label CIPC
 mwi
!
voice register pool  1
 busy-trigger-per-button 2
 id mac 8480.2DD5.A1A2
 feature-button 2 PickUp
 type 7821
 number 1 dn 1
 presence call-list
 dtmf-relay rtp-nte
 username 5100 password 5100
 codec g711ulaw
!
voice register pool  2
 busy-trigger-per-button 2
 id mac 8480.2DD5.A22D
 type 7821
 number 1 dn 2
 presence call-list
 dtmf-relay rtp-nte
 username 5101 password 5101
 codec g711ulaw
!
voice register pool  3
 busy-trigger-per-button 2
 id mac 8480.2DD5.A12D
 type 7821
 number 1 dn 3
 presence call-list
 dtmf-relay rtp-nte
 username 5103 password 5103
 codec g711ulaw
!
voice register pool  4
 busy-trigger-per-button 2
 id mac 8480.2D76.9E22
 type 8961
 number 1 dn 4
 presence call-list
 dtmf-relay rtp-nte
 username 5104 password 5104
 codec g711ulaw
!
voice register pool  5
!
voice translation-rule 1
 rule 1 /56065\(..\)/ /51\1/
!
voice translation-profile DID
 translate called 1
!
controller E1 0/0/0
 framing NO-CRC4 
 pri-group timeslots 1-31
 description from PSTN
!
interface Embedded-Service-Engine0/0
 no ip address
!
interface GigabitEthernet0/0
 description ===Main_SW===
 ip address 10.x.x.x 255.255.255.0
 duplex auto
 speed auto
!
interface GigabitEthernet0/1
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface GigabitEthernet0/2
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface Serial0/0/0:15
 no ip address
 encapsulation hdlc
 isdn switch-type primary-net5
 isdn overlap-receiving T302 4000
 isdn incoming-voice voice
 isdn bchan-number-order ascending 
 isdn sending-complete
 no cdp enable
!
ip default-gateway 10.x.x.x
ip forward-protocol nd
!
no ip http server
ip http access-class 23
ip http authentication aaa
ip http secure-server
ip http timeout-policy idle 60 life 86400 requests 10000
!
ip route 0.0.0.0 0.0.0.0 10.x.x.X
!
voice-port 0/0/0:15
 local-alerting
!
no mgcp package-capability res-package
no mgcp package-capability fxr-package
no mgcp timer receive-rtcp
no mgcp explicit hookstate
mgcp behavior rsip-range tgcp-only
mgcp behavior comedia-role none
mgcp behavior comedia-check-media-src disable
mgcp behavior comedia-sdp-force disable
!
mgcp profile default
!
!
no ccm-manager fax protocol cisco
!
dial-peer voice 1 voip
 description ***To_CUCM1***
 destination-pattern [1-4]...
 session protocol sipv2
 session target ipv4:10.x.x.x
 voice-class codec 1  
 dtmf-relay h245-alphanumeric
 no vad
!
dial-peer voice 2 voip
 description ***To_CUCM2***
 destination-pattern 50..
 session protocol sipv2
 session target ipv4:192.x.x.x
 voice-class codec 1  
 dtmf-relay h245-alphanumeric
 no vad
!
dial-peer voice 1000 pots
 description International
 destination-pattern 900.T
 port 0/0/0:15
 forward-digits 14
!
dial-peer voice 1001 pots
 description Mobile
 preference 1
 destination-pattern 905[0345]........
 port 0/0/0:15
 forward-digits 11
!
dial-peer voice 1002 pots
 description PSTN
 preference 2
 destination-pattern 90[234678].........
 port 0/0/0:15
 forward-digits 11
!
dial-peer voice 1003 pots
 description Shirt No
 preference 3
 destination-pattern 91..
 port 0/0/0:15
 forward-digits 3
!
dial-peer voice 10000 pots
 incoming called-number .T
 direct-inward-dial
 port 0/0/0:15
!
telephony-service
 max-conferences 8 gain -6
 call-park system application
 transfer-system full-consult
!

 

VGW#test voice translation-rule 1 5606500
Matched with rule 1
Original number: 5606500        Translated number: 5100
Original number type: none      Translated number type: none
Original number plan: none      Translated number plan: none

VGW#debug isdn q931 
debug isdn q931 is              ON.
Etsun_Tuzla_VGW#
Feb 21 16:24:26: ISDN Se0/0/0:15 Q931: RX <- SETUP pd = 8  callref = 0x014D 
        Bearer Capability i = 0x8090A3 
                Standard = CCITT 
                Transfer Capability = Speech  
                Transfer Mode = Circuit 
                Transfer Rate = 64 kbit/s 
        Channel ID i = 0xA98381 
                Exclusive, Channel 1 
        Calling Party Number i = 0x2183, '0994503461819' 
                Plan:ISDN, Type:National 
        Called Party Number i = 0xC1, '5606500' 
                Plan:ISDN, Type:Subscriber(local) 
        Sending Complete
Feb 21 16:24:26: ISDN Se0/0/0:15 Q931: Received SETUP  callref = 0x814D callID = 0x0006 switch = primary-net5 interface = User 
Etsun_Tuzla_VGW#
Feb 21 16:24:26: ISDN Se0/0/0:15 Q931: TX -> CALL_PROC pd = 8  callref = 0x814D 
        Channel ID i = 0xA98381 
                Exclusive, Channel 1
Feb 21 16:24:26: ISDN Se0/0/0:15 Q931: TX -> DISCONNECT pd = 8  callref = 0x814D 
        Cause i = 0x8081 - Unallocated/unassigned number
Feb 21 16:24:26: ISDN Se0/0/0:15 Q931: RX <- RELEASE pd = 8  callref = 0x014D 
        Cause i = 0x8081 - Unallocated/unassigned number
Feb 21 16:24:26: ISDN Se0/0/0:15 Q931: TX -> RELEASE_COMP pd = 8  callref = 0x814D
VGW#

1 Accepted Solution

Accepted Solutions

Rajan
VIP Alumni
VIP Alumni

Hi Murat,

I see that you have applied the translation on the voice register dn:

voice register dn  1
 translation-profile incoming DID

If the call flow is as given below, then the translation profile needs to applied on the PSTN dial-peer in order for this to work.

PSTN --> PRI --> CME --> voice register dn in CME

Please try applying "translation-profile incoming DID" on the PSTN dial-peers pointing to the PRI and if the issue persists, please also provide "debug voip ccapi inout" to check further.

 

HTH,

Shenbagarajan

 

View solution in original post

3 Replies 3

Rajan
VIP Alumni
VIP Alumni

Hi Murat,

I see that you have applied the translation on the voice register dn:

voice register dn  1
 translation-profile incoming DID

If the call flow is as given below, then the translation profile needs to applied on the PSTN dial-peer in order for this to work.

PSTN --> PRI --> CME --> voice register dn in CME

Please try applying "translation-profile incoming DID" on the PSTN dial-peers pointing to the PRI and if the issue persists, please also provide "debug voip ccapi inout" to check further.

 

HTH,

Shenbagarajan

 

Hi Shenbagarajan,

Thank you for your quick response.

I added new incoming dial-dialpeer and everything works.

Thank you very much.

!
dial-peer voice 10000 pots
 description Incoming
 translation-profile incoming DID
 incoming called-number .
 no digit-strip
 direct-inward-dial
 port 0/0/0:15
!

 

Glad it worked.