Hi, Have you tried to decrypt the RTP payload in on_rx_rtp() before codec->parse()? BR, nanang On Thu, Jan 28, 2010 at 11:47 PM, sangram desai <desaisang at gmail.com> wrote: > > Hi, > We are working on PJSIP 1.5 version on Windows mobile. > We are trying to implement encryption in PJSIP code WITHOUT enabling SRTP. The following link gave us some insight on implementing the same. > http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/2009-April/006979.html > As per suggestion in above post we tried to implement our encryption logic in put_frame_imp() method after Encoding & before RTP encapsulation and only for the following condition, > if (frame->type != PJMEDIA_FRAME_TYPE_NONE && frame->buf != NULL) // I suppose this condition is to make sure the frame is *normal* > > Similarly The decryption logic is been implemented in function get_frame() in stream.c when it receives the *normal* frame and before stream->codec->op->decode(..) method is called. > But Still we are not getting the desired result. The voice at both the ends is noisy and both the parties can only hear noise and nothing else. > The encryption/decryption logic? works correctly for strings so there should not be any issue with it. > > Can anyone please throw some light on it as where are going wrong and what we need to do? Is the place for encryption or decryption is correct? > > Thanks, > Sangram > > > _______________________________________________ > 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 >