All,
I have 3 PRIs with blocks of 200 DIDs divided equally. The Telco will only take specific groups of DIDs for each trunk and I need to know how to select which ISDN trunk for outgoing to show the correct caller ID on external lines and mobiles else it will be over written with the main line number for each trunk.
Eg.
E1 0/0/0 1000-1199
E1 0/0/1 1200-1399
E1 0/0/2 1400-1599
From CUCM it is a SIP Trunk to this Gateway.
I have configured originally as below, but for some reason when I make outgoing calls, the translation rules/dial-peers for 19/29/39T are never hit and I cannot make any outgoing calls. I have to explicitly create a POTS dial-peer for 9T for the calls to go out. Can anyone advise what errors I made? Thanks a lot!
controller E1 0/0/0
pri-group timeslots 1-31
description 000001000-000001199
!
controller E1 0/0/1
pri-group timeslots 1-31
description 000001200 - 000001399
!
controller E1 0/0/2
pri-group timeslots 1-31
description 000001400 - 000001599
interface Serial0/0/0:15
no ip address
encapsulation hdlc
isdn switch-type primary-net5
isdn incoming-voice voice
isdn sending-complete
no cdp enable
!
interface Serial0/0/1:15
no ip address
encapsulation hdlc
isdn switch-type primary-net5
isdn incoming-voice voice
isdn sending-complete
no cdp enable
!
interface Serial0/0/2:15
no ip address
encapsulation hdlc
isdn switch-type primary-net5
isdn incoming-voice voice
isdn sending-complete
no cdp enable
!
voice-port 0/0/0:15
translation-profile incoming FROM-PSTN
translation-profile outgoing TO-PSTN
no comfort-noise
cptone MY
timeouts initial 6
timeouts interdigit 3
bearer-cap Speech
!
voice-port 0/0/1:15
translation-profile incoming FROM-PSTN
translation-profile outgoing TO-PSTN
no comfort-noise
cptone MY
timeouts initial 6
timeouts interdigit 3
bearer-cap Speech
!
voice-port 0/0/2:15
translation-profile incoming FROM-PSTN
translation-profile outgoing TO-PSTN
no comfort-noise
cptone MY
timeouts initial 6
timeouts interdigit 3
bearer-cap Speech
dial-peer voice 20 voip
answer-address +6000001[01]..
translation-profile incoming Ext1000
dial-peer voice 21 voip
answer-address +6000001[23]..
translation-profile incoming Ext1200
dial-peer voice 22 voip
answer-address +6000001[45]..
translation-profile incoming Ext1400
voice translation-rule 20
rule 1 /^9/ /19/
voice translation-rule 21
rule 1 /^9/ /29/
voice translation-rule 22
rule 1 /^9/ /39/
voice translation-rule 1
rule 1 /^\+600000\(....\)$/ /000\1/
!
voice translation-rule 2
rule 1 /^000\(....\)$/ /\1/
!
voice translation-rule 3
rule 1 /^\(0.*\)/ /9\1/
rule 2 /^\([2-9].*\)/ /9\1/
!
voice translation-profile Ext1000
translate called 20
!
voice translation-profile Ext1200
translate called 21
voice translation-profile Ext1400
translate called 22
voice translation-profile FROM-PSTN
translate calling 3
translate called 2
!
voice translation-profile TO-PSTN
translate calling 1
!
dial-peer voice 1004 pots
destination-pattern 19T
port 0/0/0:15
dial-peer voice 1005 pots
destination-pattern 29T
port 0/0/1:15
dial-peer voice 1006 pots
destination-pattern 39T
port 0/0/2:15
dial-peer voice 2 voip
description Incoming VoIP leg
preference 10
session target ipv4:10.x.x.x
incoming called-number .
voice-class codec 1
dtmf-relay rtp-nte
no vad
!
dial-peer voice 1 pots
incoming called-number .T
no digit-strip
direct-inward-dial
dial-peer voice 2001 voip
description #### Shortened 4 digit dial to CUCM
preference 1
destination-pattern 1...$
session protocol sipv2
session target ipv4:10.x.x.x
session transport tcp
incoming called-number .T
voice-class codec 1
dtmf-relay rtp-nte
fax rate disable
no vad