Hi, I had a similar problem, and have made a new callback "on_create_sdp" for that. See my contribution in: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2010-November/012170.html I hope this is also useful to you. Regards, Arie > Date: Wed, 5 Jan 2011 16:50:25 +0200 > From: alxvasilev@xxxxxxxxx > To: pjsip at lists.pjsip.org > Subject: Change codec priorities on incoming call > > 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 > > _______________________________________________ > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20110105/868bb01f/attachment.html>