put_frame_imp(), it seems quite clear that right after a frame processed by codec (stream->codec->op->encode), the frame is packed in to an RTP packet immediately by pjmedia_rtp_encode_rtp(). Regards, nanang 2009/4/2 Elias AC <ace__1981 at hotmail.com>: > Thank you for your replies. > > I've been skimming through stream.c, but to tell you the truth, I'm a bit > confused where's the boundary between the codec and the RTP stream. > > In other words, which function (in stream.c) hands the frame from the codec > to the RTP stream? Is it put_frame? or put_frame_imp? > > Kind regards, > Elias. > >> Date: Tue, 31 Mar 2009 20:35:12 +0700 >> From: nanang@xxxxxxxxx >> To: pjsip at lists.pjsip.org >> Subject: Re: Encryption the RTP (voice) payload >> >> Hi, >> >> If you are using stream port, this can only be done by modifying the >> stream.c which is not recommended. >> >> In case you haven't seen the SRTP encryption approach, here is the >> short description. The encryption is done after the RTP encapsulation >> in media transport layer. pjmedia_transport_srtp (which do the >> encryption) is stacked before pjmedia_transport_udp (which do the real >> sending/receving packets). So perhaps you can use the same approach. >> >> Regards, >> nanang >> >> >> 2009/3/29 Elias AC <ace__1981 at hotmail.com>: >> > Dear all, >> > >> > I'm interested in exclusively encrypting the RTP payload, i.e. right >> > after >> > the codec output and before RTP encapsulation. >> > >> > Is there any schematic diagram or any document that explains the >> > architecure >> > of PJSIP? >> > >> > And if not, do you know in which file or on which function should I >> > focus? >> > >> > Thanks in advance, >> > Elias. >> > >> > P.S: sRTP is not an option for me. >> > >> > ________________________________ >> > Hotmail? is up to 70% faster. Now good news travels really fast. Find >> > out >> > more. >> > _______________________________________________ >> > 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 >> > >> > >> >> _______________________________________________ >> 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 > > ________________________________ > Windows Live?: Keep your life in sync. Check it out. > _______________________________________________ > 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 > >