Thanks Nanang, For all with similar question, who want a quick answer (or seem to be a blockhead as I am ;) ),this did the trick: #if PJMEDIA_HAS_INTEL_IPP_CODEC_AMR /* Set extra high priority for AMR codecs */ codec_id = pj_str("AMR/8000"); pjmedia_codec_mgr_set_codec_priority( pjmedia_endpt_get_codec_mgr(pjsua_var.med_endpt), &codec_id, PJMEDIA_CODEC_PRIO_NORMAL+5); #endif /* PJMEDIA_HAS_INTEL_IPP_CODEC_AMR */ #if PJMEDIA_HAS_INTEL_IPP_CODEC_AMRWB codec_id = pj_str("AMR-WB/16000"); pjmedia_codec_mgr_set_codec_priority( pjmedia_endpt_get_codec_mgr(pjsua_var.med_endpt), &codec_id, PJMEDIA_CODEC_PRIO_NORMAL+6); #endif /* PJMEDIA_HAS_INTEL_IPP_CODEC_AMRWB */ I entered the passage above into pjsua_media.c directly behind the "#if PJMEDIA_HAS_INTEL_IPP_CODEC". Of course you can as well directly use the "status=pjsua_codec_... line from below to achieve the setting of priorities. It was as "easy" as expected and today I wonder why my first tries failed, but thanks anyway, you gave me the right hint, that's all that counts. H?lsningar, have a nice day folks, Markus On Mon, 15 Sep 2008 18:53:37 +0700, "Nanang Izzuddin" <nanang at pjsip.org> wrote: > Hi, > > If you are using pjsua-lib, you can use pjsua_codec_set_priority(), > see the doc :) > ------- > pj_str_t codec_id; > > codec_id = pj_str("AMR/8000"); > status = pjsua_codec_set_priority(&codec_id, > PJMEDIA_CODEC_PRIO_NORMAL+11); > > codec_id = pj_str("AMR-WB/16000"); > status = pjsua_codec_set_priority(&codec_id, > PJMEDIA_CODEC_PRIO_NORMAL+10); > ------- > > Regards, > nanang > > > On Mon, Sep 15, 2008 at 3:37 PM, Markus Fischer <list at mail.mafis-ing.de> > wrote: >> >> Hej, >> >> I would need a little help setting code c priorities. My idea is to set > AMR and AMR-WB by default as the preferred codecs. >> I looked into the code and saw how it is done for speex to get the > higher priority by default, but I don't know how to adopt it for AMR/AMR-WB > included from the IPP Suite. The best option for my purpose would probably > even be to set this in the "config_site.h" file. Any solutions/ideas for > this task. >> Any help is very much appreciated. >> >> Best regards, Markus >> >> >> _______________________________________________ >> 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 >> > > _______________________________________________ > 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