anass kartit wrote: > Hi, > I have been modifying transport_udp.c traying to access the payload and > encrypt it should I modify the on_rx_rtp in stream.c for that instead ? Don't. Work strictly in transport_udp.c, since stream.c doesn't need to know about encryption in the transport layer. If you need to access the payload, you can parse the RTP packet with pjmedia_rtp_decode_rtp() (by creating a dummy RTP session first every time you need to parse the RTP packet). regards, -benny