You can use #define PJMEDIA_SDP_NEG_PREFER_REMOTE_CODEC_ORDER 0 On 18/09/2012 21:49, Alex wrote: > Hi, > > I am currently setting the codec priority to prefer SILK using "pjsua_codec_set_priority", it works fine when making an outbound call but for incoming calls, pjsip is using PCMU which is the one the server is sending as the preferred codec. > > AFAIK, setting the codec priority with "pjsua_codec_set_priority" should work for both incoming and outgoing calls. > > Is there a way to force using SILK for incoming calls even if the server server preference is PCMU? > > Thanks, > Alex. > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org