interface FastEthernet0/0
ip address 10.1.1.101 255.255.255.0
h323-gateway voip bind srcaddr 10.1.1.101
voice class h323 1
h225 timeout tcp establish 3
dial-peer voice 11 voip
destination-pattern 511555....
session target ipv4:10.1.1.1
codec g711ulaw
On the POTS dial peer
direct-inward-dial will avoid the router from providing a dial tone to PSTN caller
The number is forwarded directly to CUCM to route the call
The router/gateway does not present a dial tone to the caller and does not collect digits. It forwards the call directly to the configured destination. This is called one-stage dialing.
dial-peer voice 21 pots
destination-pattern 9T
direct-inward-dial
port 0/0/0:23
voice service voip
h323
h225 listen-port <new port>
call service stop
no call service stop
Router# debug voip dialpeer
Sep 24 22:08:40.659: //-1/80E92C480500/DPM/dpAssociateIncomingPeerCore:
Calling Number=2123945001, Called Number=90113432141891, Voice-Interface=0x0,
Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
Peer Info Type=DIALPEER_INFO_SPEECH
Sep 24 22:08:40.659: //-1/80E92C480500/DPM/dpAssociateIncomingPeerCore:
Result=Success(0) after DP_MATCH_INCOMING_DNIS; Incoming Dial-peer=2
Sep 24 22:08:40.659: //-1/80E92C480500/DPM/dpAssociateIncomingPeerCore:
Calling Number=2123945001, Called Number=90113432141891, Voice-Interface=0x0,
Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
Peer Info Type=DIALPEER_INFO_SPEECH
Sep 24 22:08:40.659: //-1/80E92C480500/DPM/dpAssociateIncomingPeerCore:
Result=Success(0) after DP_MATCH_INCOMING_DNIS; Incoming Dial-peer=2
Sep 24 22:08:40.659: //-1/80E92C480500/DPM/dpMatchPeersCore:
Calling Number=, Called Number=90113432141891, Peer Info Type=DIALPEER_INFO_SPEECH
Sep 24 22:08:40.659: //-1/80E92C480500/DPM/dpMatchPeersCore:
Match Rule=DP_MATCH_DEST; Called Number=90113432141891
Sep 24 22:08:40.659: //-1/80E92C480500/DPM/dpMatchPeersCore:
Result=Success(0) after DP_MATCH_DEST
Sep 24 22:08:40.659: //-1/80E92C480500/DPM/dpMatchPeersMoreArg:
Result=SUCCESS(0)
List of Matched Outgoing Dial-peer(s):
1: Dial-peer Tag=901134
2: Dial-peer Tag=1
Router#
Router# show call active voice brief
Telephony call-legs: 1
SIP call-legs: 0
H323 call-legs: 1
Call agent controlled call-legs: 0
SCCP call-legs: 0
Multicast call-legs: 0
Total call-legs: 2
19C9 : 996 608319968ms.1 +2510 pid:2 Answer 2123945001 active
dur 00:00:08 tx:149/23363 rx:405/64800
IP 192.168.100.205:24596 SRTP: off rtt:33ms pl:7030/0ms lost:0/2/0 delay:55/55/75ms g711ulaw TextRelay: off
media inactive detected:n media contrl rcvd:n/a timestamp:n/a
long duration call detected:n long duration call duration:n/a timestamp:n/a
19C9 : 997 608319988ms.1 +2490 pid:901134 Originate 90113432141891 active
dur 00:00:08 tx:405/68040 rx:149/23363
Tele 0/0/0:15 (997) [0/0/0.1] tx:10530/2920/0ms g711ulaw noise:-62 acom:37 i/0:-62/-43 dBm
Telephony call-legs: 1
SIP call-legs: 0
H323 call-legs: 1
Call agent controlled call-legs: 0
SCCP call-legs: 0
Multicast call-legs: 0
Total call-legs: 2
Router#
Debug setup message coming from Call Manager
Can't really read the message, but at least you can see the fields included in the message e.g.
Display - caller name
Calling Party number
Called Party number
Router# debug h225 q931
Q931 Message IE Decodes
Protocol Discriminator : 0x08
CRV Length : 2
CRV Value : 0x0001
Message Type : 0x05: SETUP
Bearer Capability: Length Of IE=3
Data 8090A2
Display: Length Of IE=8
Data 4875622037393731
Calling Party Number: Length Of IE=12
Data 008132313233393435303032
Called Party Number: Length Of IE=15
Data 803930313133343332313431383931
User-User: Length Of IE=189
Data 0520B0060008914A000501401F00480
Router#