The fact that you can hear the DTMF tones is bad. I know, that sounds counter intuitive, but in the IP World, DTMF "should" be passed as data and not as audio. It sounds like you'll need some DSPs in the middle to convert from inband audio to a DTMF Relay technology, preferably an Out of Band one, so that your CUCM side can properly interwork the DTMF between different systems (E.g., UCCX is CTI based, CUC is RFC2833 or SCCP or SIP).