anass kartit wrote: > Hi Benny, > I have been studying wav_player.c,is the voice data is in the > frame->buf, can I try the encryption on this buffer for streaming too? No. Before the media reaches stream.c, pjmedia expects frame->buf to be in plain PCM. Please see this for some ideas on how to implement SRTP: http://www.pjsip.org/trac/wiki/FAQ#srtp-zrtp cheers, -benny