DTMF and g729

I have some issues on the DTMF with g729. When I use the alaw and DTMF=inband, DTMFmode=auto, it works. But once I add the g729, the key press is not recognized in my IVR. Any help would be greatly appreciated.

g729 can’t support inband DTMF the compression is too extreme.

RFC2833 or SIP info method are acceptable.