FW: Audio codec

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

 



Hi, you can use the code bellow. The last argument is
the priority, when its zero the codec i disables (I
think...).

		pj_str_t	tmp;
		pjsua_codec_set_priority(pj_cstr(&tmp, "pcmu"),
240);
		pjsua_codec_set_priority(pj_cstr(&tmp, "pcma"),
100);
		pjsua_codec_set_priority(pj_cstr(&tmp,
"speex/8000"), 0);
		pjsua_codec_set_priority(pj_cstr(&tmp, "ilbc"), 0);
		pjsua_codec_set_priority(pj_cstr(&tmp,
"speex/16000"), 0);
		pjsua_codec_set_priority(pj_cstr(&tmp,
"speex/32000"), 0);
		pjsua_codec_set_priority(pj_cstr(&tmp, "gsm"), 0);	


Thiago Paiva Flores

>  
> Hi everybody.
>  
> Please tell me which codec is defualt codec in
> PJSUA. And if  I want ti
> change onother codec to default codec. How should I
> do?
> > _______________________________________________
> 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
> 



      Flickr agora em portugu?s. Voc? clica, todo mundo v?.
http://www.flickr.com.br/



[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