This is a working config copied off a branch router (2851 running 12.4(24)T2 to avoid MGCP bugs in our environment and the CUCM is 7.1(2)). This is pretty raw but should compliment the rest of the guides in this forum for a working example.
!
ccm-manager mgcp
no ccm-manager fax protocol cisco
ccm-manager music-on-hold
ccm-manager config server 10.10.10.10 <--- Your CUCM Address
ccm-manager config
!
mgcp
mgcp call-agent 10.10.10.10 2427 service-type mgcp version 0.1 <--- Your CUCM Address
mgcp dtmf-relay voip codec all mode out-of-band
mgcp modem passthrough voip mode nse
mgcp package-capability rtp-package
mgcp package-capability sst-package
mgcp package-capability pre-package
mgcp default-package mt-package
no mgcp timer receive-rtcp
mgcp sdp simple
mgcp fax t38 inhibit
mgcp fax t38 nsf 000000
no mgcp fax-relay sg3-to-g3
mgcp rtp payload-type g726r16 static
mgcp bind control source-interface GigabitEthernet0/0.100 <--- Your Interface
mgcp bind media source-interface GigabitEthernet0/0.100 <--- Your Interface
!
mgcp profile default
!
![CUCM GW Capture1.jpg](/legacyfs/online/legacy/4/2/0/2024-CUCM%20GW%20Capture1.jpg)