There are a few ways to configure a VG224 to work with Cisco CallManager Express.
Skinny (SCCP)
This Layer 2 option treats the VG224 as a SCCP device or phone. There is very little configuration on the VG224 router other than the SCCP integration with CME. Think of the VG224 as a device containing 24 ephones. Configuring each voice port with "service stcapp" converts an FXS port to a SCCP phone, so this must be done to all VG224 voice ports.
Example:
(VG224)
(VG224)
sccp local FastEthernet0/0
sccp ccm 192.168.25.2 identifier 10
sccp
!
sccp ccm group 1
associate ccm 10 priority 1
dial-peer voice 200 pots
service stcapp
port 2/0
service stcapp
port 2/0
.
H.323
The Layer 3 option treats the VG224 as a separate voice gateway. There is much more configuration on the VG224 router, but less configuration on CME. When CME receives a call, it uses its outbound dial-peers to send the call and one or more of those outbound dial-peers points to the IP Address of the VG224.
Example:
(CME)
voice service voip
allow-connections h323 to h323
!
interface GigabitEthernet0/1
ip address 192.168.25.1 255.255.255.0
no ip mroute-cache
duplex auto
speed auto
h323-gateway voip interface
h323-gateway voip bind srcaddr 192.168.25.1
!
dial-peer voice 100 voip
incoming called-number .
dtmf-relay h245-alphanumeric
codec g711alaw
no vad
!
dial-peer voice 200 voip
destination-pattern 200
modem passthrough nse codec g711alaw
voice-class h323 1
session target ipv4:192.168.25.2
codec g711alaw
fax rate disable
fax protocol none
no vad
(VG224)
h323
!
voice class h323 1
h225 timeout tcp establish 3
!
interface FastEthernet0/0
ip address 192.168.25.2 255.255.255.0
duplex auto
speed auto
h323-gateway voip interface
h323-gateway voip bind srcaddr 192.168.25.2
!
dial-peer voice 100 voip
description OUTGOING TO CME
destination-pattern OT
modem passthrough nse codec g711alaw
session target ipv4:192.168.25.1
voice-class h323 1
codec g711alaw
no vad
fax protocol none
!
dial-peer voice 101 voip
description INCOMING FROM CME
incoming called-number .
modem passthrough nse codec g711alaw
voice-class h323 1
codec g711alaw
no vad
fax protocol none
dial-peer voice 200 pots
description INCOMING TO VG PORT
destination-pattern 200
port 0/0
forward-digits all
.