Configure a Gateway to use SIP and SIP Trunk between Gateway and CUCM
1- Configure the switchtype and clocking on Gateway
isdn switchtype primary-ni
network-clock-participate wic 0
2- Configure the T1 PRI Card
controller t1 0/0/0
framing esf
linecode b8zs
pri-group timeslots 1-24
3- Enable IE delivery for the T1
interface serial 0/0/0:23
isdn outgoing display-ie
4- Bind signaling and media to the most reliable interface, here we’re using loopback interface of our gateway
voice service voip
sip
bind all source-interface loopback 0
SIP Gateway works like H323 Gateway so need to configure dial-peer’s to handle incoming and outgoing calls.
5- Configure the incoming dial-peer
dial-peer voice 1 pots
incoming called-number .
direct-inward-dial
6-Configure two dial-peers. One to the SUB and one to the PUB and add the session protocol statement (needed for SIP Gateway)
dial-peer voice 2 voip
destination-pattern 202301….$
session target ipv4:192.168.10.20
session protocol sipv2
dial-peer voice 3 voip
destination-pattern 202301….$
session target ipv4:192.168.10.10
session protocol sipv2
7- Now Configure the outgoing dial-peers
dial-peer voice 4 pots
destination-pattern 911
port 0/0/0:23
forward-digits all
dial-peer voice 5 pots
destination-pattern 9911
port 0/0/0:23
forward-digits 3
dial-peer voice 6 pots
destination-pattern 9[2-9]……$
port 0/0/0:23
dial-peer voice 7 pots
destination-pattern 91[2-9]..[2-9]……$
port 0/0/0:23
prefix 1
dial-peer voice 8 pots
destination-pattern 9011T
port 0/0/0:23
prefix 011
our gateway configuration is done , now let’s configure CUCM so we can start receiving calls and yes , can make also.
- Login to CUCM
- Device > Trunk > Add New>Trunk Type = SIP Trunk
- Device Protocol = SIP
- Specify correct Device Pool
- Set the Significant Digits filed to 4. Enable Inbound/Outbound Header delivery.
- Set the destination address to the loopback IP of our Gateway.
- Specify ‘Presence Group’, ‘SIP Trunk Security Profile’, ‘SIP Profile’.
- Save and Reset the trunk.
Try making a call from PSTN to your IP Phone and see if call is coming or not. Hurry!!! mine is working fine, let’s test yours and let me know if any issues.
Confirm if SIP Service is running/active on our gateway or not?
SIPGW# show sip service
if need to see SIP Messages on Gateway can enable:
SIPGW# debug ccsip messages