Is this for windows or Linux?
Also note support for HD codecs (AMR / GSM / G722 ) are only available when running the application is 3PCC mode in this case. Is you application running in 3PCC mode?
Since you can only specify the codec in IPML level via ipm_startmedia,
Jeff