Hi Gang, i tried to set the codec parameter with this code, before i run pjsua_start() pjmedia_codec_param* pCodecParam = ??? PJ_POOL_ZALLOC_T(m_pMemPool, struct pjmedia_codec_param); ??? if (pjsua_codec_get_param(pj_cstr(&tmp, "pcma"),pCodecParam)==PJ_SUCCESS) ??? {? pCodecParam->setting.frm_per_pkt=160;? /*Number of frames per packet.*/ ??? ??? pCodecParam->setting.vad=0; ??? ??? pCodecParam->setting.plc=0; ??? ??? pjsua_codec_set_param(pj_cstr(&tmp, "pcma"),pCodecParam); ??? } i increase the setting.frm_per_pkt to 320, maby this is like a? ptime=40? ptime=ffp*1000/8000 for g711 but it doesn't work. the pjmedia_codec_param struct has a info variable ptime but it is only info!! pCodecParam->info.frm_ptime;? any idea ? --- Gang Liu <gangban.lau at gmail.com> schrieb am Do, 4.6.2009: Von: Gang Liu <gangban.lau at gmail.com> Betreff: Re: [pjsip] pjusa-lib Can i set the sender ptime for G711 codec? An: "pjsip list" <pjsip at lists.pjsip.org> Datum: Donnerstag, 4. Juni 2009, 8:49 Did you try pjsua_codec_set_param() this function? BTW, I didn't try it before. regards, Gang On Wed, Jun 3, 2009 at 10:55 PM, M.S. <hamstiede at yahoo.de> wrote: Hello, i want to set the ptime in pjsua-lib/application only in RTP sender direction. Now it is fixed to the ptime default (20ms). I mean the RTP ptime for G711 codec, not the conference ptime. regards mark _______________________________________________ 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 -----Integrierter Anhang folgt----- _______________________________________________ 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/20090604/13525c5b/attachment-0001.html>