Dan i'm little confusing for you proposition to using module. Before sending signalling packet on_tx_request gives me pjsip_tx_data *tdata structure. Inside there i find only one member, which i think i can using pjsip_msg *msg; but there is i can change body only, but not headers. Simply enumeration: const pjsip_hdr *h; unsigned cnt = 0; h = tdata->msg->hdr.next; while (h != &tdata->msg->hdr) { ++cnt; h = h->next; PJ_LOG(1,(THIS_FILE, "proxy_on_tx_request hsrc.name->%s hsrc.sname->%s", h->name.ptr,h->sname.ptr)); } Show me only header attrubutes, but not values inside. I didn't find possibility to change final sip message there, all buffers (pjsip_buffer) empty there. Thank you for u future helps, Alex. Sep 19, 2013, ? 11:51 AM, Dan Arrhenius <dan at keystream.se> ???????(?): > Hi, > for the SIP signaling I think you should be able to accomplish this with implementing a pjsip module in which you modify the messages when they are received and sent. Have a look at pjsip_endpt_register_module(). > For the RTP traffic you can implement your own media transport that uses one of the existing media transports as a slave transport and then do your own modifications on the RX/TX packets. Have a look at http://www.pjsip.org/docs/latest/pjmedia/docs/html/group__PJMEDIA__TRANSPORT.htm > > Good luck! > Dan > > On 9/19/13 8:56 AM, Oleksii Vynogradov wrote: >> Hi >> For some reason i need implement own protocol to change all sip/rtp packets. Can you suggest me a right way? >> Alex >> _______________________________________________ >> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130919/d33a292a/attachment-0001.html>