Hi all, I am working on an iPhone app based on pjsip, more specificly on pjsua. I would like to be able to force the use of different codecs depending on the type of connectivity the device has at the moment of making a call or receiving a call (EDGE/WiFi). For making a call it works - I call pjsua_codec_set_priority() just before making the call and pjsip uses the single codec that I enable. I would like to do the same when receiving a call. However I don't seem to find the right place to call pjsua_codec_set_priority() in the incoming call setup sequence. It seems that pjsip uses the previously defined codec instead. Is there an early enough point (callback, state), where I can set the codec preference so that it is picked up when negotiating the codecs for the incoming call? If yes, which is it? Thanks in advance Alex