[pjsip] FW: Audio codec

tloginbr-pjsip at yahoo.com.br tloginbr-pjsip at yahoo.com.br
Mon Sep 24 08:33:51 EDT 2007


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/




More information about the pjsip mailing list