01-25-2022 11:25 PM
Unable to dial some numbers from CIPC (SCCP) phone, but Desk Phone(SIP) calls are working with Same CSS and Device pool.
CUCM Version:11.5.1.13901-3,
call flow:
CIPC(SCCP)--->CUCM--->Gateway(H.323)--->PSTN(PRI)--->Notworking
Desk Phone(SIP)--->CUCM--->Gateway(H.323)--->PSTN(PRI)--->Working
Thanks,
Krishna
Solved! Go to Solution.
01-27-2022 01:03 AM
Hi Nithin,
Please find the configuration for dial-peers below.
dial-peer voice 22 voip
description to CUCMPub
preference 2
destination-pattern 4...
session target ipv4:10.60.1.35
voice-class codec 1
dtmf-relay h245-alphanumeric h245-signal cisco-rtp
no vad
!
dial-peer voice 23 voip
description to CUCMSub
preference 1
destination-pattern 4...
session target ipv4:10.60.1.36
voice-class codec 1
dtmf-relay h245-alphanumeric h245-signal cisco-rtp
no vad
dial-peer voice 10 pots
description OUTGOING
preference 9
destination-pattern [0-9]T
port 0/1/0:1
forward-digits all
01-27-2022 01:29 AM
Taking your dial-peer config, it covers the findings about your the call logs.
Since your called number begins with 4, it will use the CUCM dial-peers as outgoing dial-peers first.
Maybe you should re-configure your dial-plan, something like this:
Assuming, that you send all called numbers from CUCM to the GW starting with 9.
dial-peer voice 20 voip
description ### from CUCM ###
incoming called-number 9
voice-class codec 1
dtmf-relay h245-alphanumeric h245-signal cisco-rtp
no vad
huntstop
!
dial-peer voice 22 voip
description ### to CUCMPub ###
preference 2
destination-pattern 4...
session target ipv4:10.60.1.35
voice-class codec 1
dtmf-relay h245-alphanumeric h245-signal cisco-rtp
no vad
huntstop
!
dial-peer voice 23 voip
description ### to CUCMSub ###
preference 1
destination-pattern 4...
session target ipv4:10.60.1.36
voice-class codec 1
dtmf-relay h245-alphanumeric h245-signal cisco-rtp
no vad
!
dial-peer voice 10 pots
description ### From PSTN ###
incoming called-number 4 --> Put here your number range
direct-inward-dial
huntstop
!
dial-peer voice 10 pots
description ### To PSTN ###
destination-pattern 9
port 0/1/0:1
huntstop
01-27-2022 03:54 AM - edited 01-27-2022 05:39 AM
Absolutely sound advice, but I would suggest the following alterations to your configuration suggestion.
dial-peer voice 20 voip description ### Incoming from CUCM ### incoming called-number . voice-class codec 1 dtmf-relay h245-alphanumeric h245-signal cisco-rtp no vad ! dial-peer voice 22 voip description ### Outgoing to CUCMPub ### preference 2 destination-pattern 4...$ session target ipv4:10.60.1.35 voice-class codec 1 dtmf-relay h245-alphanumeric h245-signal cisco-rtp no vad huntstop ! dial-peer voice 23 voip description ### Outgoing to CUCMSub ### preference 1 destination-pattern 4...$ session target ipv4:10.60.1.36 voice-class codec 1 dtmf-relay h245-alphanumeric h245-signal cisco-rtp no vad ! dial-peer voice 1 pots description ### Incoming from PSTN ### tone ringback alert-no-PI incoming called-number . direct-inward-dial ! dial-peer voice 10 pots description ### Outgoing to PSTN ### tone ringback alert-no-PI destination-pattern 9T progress_ind setup enable 3 progress_ind alert enable 8 progress_ind progress enable 8 progress_ind connect enable 8 progress_ind disconnect enable 8 port 0/1/0:1 huntstop
@chaitusite Based on the shared configuration and debugs it looks like you have a loop in your call setup and this is caused by that you have overlaps between the match on your dial peers. This is not a good state to have. As advised by @b.winter suggest that you alter the way you send calls from CM to your VGW and how your match the calls outbound to PSTN. If you use a break out code, for example 9, the easist is to keep that in the called number as the call is passed from CM to the gateway. Then in the gateway you use this to match the call going to PSTN and consume that on it's way out to the service provider. There are many ways to achieve this, the simplest is to let the default function of POTS dial peers to consume any explicitly matched digits to be stripped. If you don't want that or have other needs for how to modify the called number you can do this with voice translation rules. Let us know you preference and we can lend you a hand with that part as well.
01-27-2022 04:54 AM
Please find the GW configuration.
version 15.5
service tcp-keepalives-in
service tcp-keepalives-out
service timestamps debug datetime msec localtime show-timezone year
service timestamps log datetime msec localtime show-timezone year
service password-encryption
service sequence-numbers
no platform punt-keepalive disable-kernel-core
!
hostname RTR
!
boot-start-marker
boot-end-marker
!
!
vrf definition Mgmt-intf
!
address-family ipv4
exit-address-family
!
address-family ipv6
exit-address-family
!
card type e1 0 1
logging count
logging buffered 500000
no logging console
!
!
!
!
!
!
aaa session-id common
clock timezone CST -6 0
clock summer-time CDT recurring
!
!
!
!
!
!
!
!
!
!
!
no ip domain lookup
XXXX.com
!
!
!
!
!
!
!
!
!
!
subscriber templating
multilink bundle-name authenticated
!
!
!
!
isdn switch-type primary-net5
!
!
!
!
voice call send-alert
voice rtp send-recv
!
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 t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback pass-through g711ulaw
!
voice class codec 1
codec preference 1 g711ulaw
codec preference 2 g711alaw
codec preference 3 g729r8
codec preference 4 g729br8
!
voice class h323 1
h225 timeout tcp establish 3
call start slow
!
!
!
!
!
!
voice translation-rule 200
rule 1 reject /87879/
!
!
voice translation-profile REJECT-CALLS
translate calling 200
!
!
!
!
!
voice-card 0/1
no watchdog
!
voice-card 0/2
no watchdog
!
license udi pid ISR4351/K9
license boot level appxk9 disable
license boot level uck9
license boot level securityk9 disable
!
spanning-tree extend system-id
!
username
!
redundancy
mode none
!
controller E1 0/1/0
framing no-crc4
clock source line primary
ds0-group 1 timeslots 1-15,17-31 type r2-digital r2-compelled ani
cas-custom 1
country telmex
category 2
answer-signal group-b 1
caller-digits 4
groupa-callerid-end
!
!
vlan internal allocation policy ascending
!
!
!
!
!
!
interface GigabitEthernet0/0/0
ip address 10.X.X.XX 255.255.X.X
negotiation auto
h323-gateway voip interface
h323-gateway voip bind srcaddr 10.X.X.X
!
interface GigabitEthernet0/0/1
no ip address
negotiation auto
!
interface GigabitEthernet0/0/2
no ip address
negotiation auto
!
interface Service-Engine0/1/0
!
interface Service-Engine0/2/0
!
interface GigabitEthernet0
vrf forwarding Mgmt-intf
no ip address
negotiation auto
!
interface Vlan1
no ip address
shutdown
!
ip forward-protocol nd
no ip http server
no ip http secure-server
ip route 0.0.0.0 0.0.0.0 10.X.X.X
ip ssh version 2
!
!
logging trap debugging
!
!
!
!
!
control-plane
!
!
voice-port 0/1/0:1
!
voice-port 0/2/0
timing hookflash-out 500
timing guard-out 1000
!
voice-port 0/2/1
pre-dial-delay 2
timing hookflash-out 500
timing guard-out 1000
!
voice-port 0/2/2
timing hookflash-out 500
timing guard-out 1000
!
voice-port 0/2/3
timing hookflash-out 50
!
!
!
!
!
mgcp rtp unreachable timeout 1000 action notify
mgcp modem passthrough voip mode nse
mgcp package-capability rtp-package
mgcp package-capability sst-package
mgcp package-capability pre-package
no mgcp package-capability res-package
no mgcp timer receive-rtcp
mgcp sdp simple
mgcp fax t38 inhibit
mgcp bind control source-interface GigabitEthernet0/0/0
mgcp bind media source-interface GigabitEthernet0/0/0
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
!
sccp local GigabitEthernet0/0/0
sccp ccm 10.6.X.X identifier 38 priority 2 version 4.1
sccp ccm 10.6.X.X identifier 37 priority 1 version 4.1
sccp
!
!
no ccm-manager fax protocol cisco
!
dial-peer voice 1 pots
call-block translation-profile incoming REJECT-CALLS
incoming called-number .
direct-inward-dial
!
dial-peer voice 10 pots
description OUTGOING
preference 9
destination-pattern [0-9]T
port 0/1/0:1
forward-digits all
!
dial-peer voice 20 voip
description to CUCMPub
preference 2
destination-pattern 3...
session target ipv4:10.6.X.X
voice-class codec 1
dtmf-relay h245-alphanumeric h245-signal cisco-rtp
no vad
!
dial-peer voice 21 voip
description to CUCMSub
preference 1
destination-pattern 3...
session target ipv4:10.6.X.X
voice-class codec 1
dtmf-relay h245-alphanumeric h245-signal cisco-rtp
no vad
!
dial-peer voice 22 voip
description to CUCMPub
preference 2
destination-pattern 4...
session target ipv4:10.6.X.X
voice-class codec 1
dtmf-relay h245-alphanumeric h245-signal cisco-rtp
no vad
!
dial-peer voice 23 voip
description to CUCMSub
preference 1
destination-pattern 4...
session target ipv4:10.6.X.X
voice-class codec 1
dtmf-relay h245-alphanumeric h245-signal cisco-rtp
no vad
!
dial-peer voice 24 voip
description to CUCMPub
preference 2
destination-pattern 6...
session target ipv4:10.6.X.X
voice-class codec 1
dtmf-relay h245-alphanumeric h245-signal cisco-rtp
no vad
!
dial-peer voice 25 voip
description to CUCMSub
preference 1
destination-pattern 6...
session target ipv4:10.6.X.X
voice-class codec 1
dtmf-relay h245-alphanumeric h245-signal cisco-rtp
no vad
!
dial-peer voice 11 voip
incoming called-number 9T
voice-class codec 1
dtmf-relay h245-alphanumeric h245-signal cisco-rtp
no vad
!
dial-peer voice 12 pots
destination-pattern 350
port 0/2/3
!
dial-peer voice 9 pots
description OUTGOING Emergency
destination-pattern 9911$
port 0/1/0:1
forward-digits 3
!
!
!
line con 0
stopbits 1
line aux 0
stopbits 1
line vty 0 4
transport input ssh
!
network-clock input-source 1 controller E1 0/1/0
!
end
01-27-2022 05:15 AM
AFAIKT none of the suggested changes has been implemented. What is you intent with posting your configuration?
01-27-2022 05:21 AM
Hi Sir,
Sorry i have not checked your post, i missed to post the complete configuration before.
01-27-2022 05:47 AM - edited 01-27-2022 07:07 AM
Based on your complete shared configuration I would suggest that you make these changes.
! voice service voip no allow-connections h323 to h323 no allow-connections h323 to sip no allow-connections sip to h323 no allow-connections sip to sip ! voice translation-rule 1 rule 1 /^9\(.*\)/ /\1/ ! voice translation-profile PSTN-OUT translate called 1 ! voice-port 0/1/0:1 translation-profile outgoing PSTN-OUT ! dial-peer voice 1 pots description ### Incoming from PSTN ### tone ringback alert-no-PI call-block translation-profile incoming REJECT-CALLS tone ringback alert-no-PI incoming called-number . direct-inward-dial ! dial-peer voice 10 pots description ### Outgoing to PSTN ### tone ringback alert-no-PI destination-pattern 9T progress_ind setup enable 3 progress_ind alert enable 8 progress_ind progress enable 8 progress_ind connect enable 8 progress_ind disconnect enable 8 port 0/1/0:1 huntstop forward-digits all ! dial-peer voice 20 voip description ### Outgoing to CUCMPub ### preference 2 destination-pattern [346]...$ session target ipv4:10.6.X.X voice-class codec 1 dtmf-relay h245-alphanumeric h245-signal cisco-rtp huntstop no vad ! dial-peer voice 21 voip description ### Outgoing to CUCMSub ### preference 1 destination-pattern [346]...$ session target ipv4:10.6.X.X voice-class codec 1 dtmf-relay h245-alphanumeric h245-signal cisco-rtp no vad !
dial-peer voice 11 voip
description ### Incoming from CUCM ###
incoming called-number .
voice-class codec 1
dtmf-relay h245-alphanumeric h245-signal cisco-rtp
no vad
! no dial-peer voice 22 voip no dial-peer voice 23 voip no dial-peer voice 24 voip no dial-peer voice 25 voip
01-28-2022 12:02 AM
Hi Sir,
If we give
voice service voip
no allow-connections h323 to h323
no allow-connections h323 to sip
no allow-connections sip to h323
no allow-connections sip to sip
i think Gateway will not be able to Communicate with CUCM for sending the calls back.
01-28-2022 12:29 AM - edited 01-28-2022 12:36 AM
No, those are for if the gateway should act as a Session Border Controller (SBC), or CUBE as Cisco calls it. What these commands do is to enable the gateway to handle VoIP to VoIP call legs, aka two voip dial peers in the call flow. Meaning that you have one voip dial peer match inbound and another, or the same depending on configuration, matched in the outbound direction.
What you have is a traditional TDM (Time Division Multiplex) gateway, meaning that it handles POTS to VoIP, and the reverse, call legs. This is what you have as you have one pots or voip dial peer match inbound, depending if the call comes from PSTN or CM, and then a voip or pots dial peer matched outbound, depending if the call is destined to CM or PSTN. For this none of these commands are needed.
01-27-2022 06:30 AM
As @Roger Kallberg mentioned, use $ at the end of the destination pattern. Instead of 6 dial peer you can achieve the same with two dial-peer.
use [346]...$
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide