Set codec priority for AMR and AMR-WB

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
>



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux