Here is a link to a tech note on configuring H.323 gateways with CM
http://www.cisco.com/en/US/products/sw/voicesw/ps556/products_tech_note09186a0080094636.shtml
You will have to use H.323 for the analog DID function, discussed in the doc on CM DID support:
DID Supported Solutions
Cisco CallManager supports DID on three types of circuits:
*
Analog VIC-DID (two- or four-port hardware configuration)For the configuration and dial restrictions of this card, refer to Understanding Direct Inward Dial (DID) Voice Interface Cards. Remember that all past and current versions of Cisco CallManager only support these cards when the gateway uses H.323 signaling.
http://www.cisco.com/en/US/tech/tk652/tk653/technologies_tech_note09186a00801c43f6.shtml
Mary Beth