you need use sdp parser to parse msg body if type is sdp. 1, check application/SDP is there; 2, parse SDP yourself pjmedia_sdp_session * remote_sdp = NULL; pj_status_t status = pjmedia_sdp_parse(rdata->tp_info.pool, (char *)rdata->msg_info.msg->body->data, rdata->msg_info.msg->body->len, &remote_sdp); regards, Gang On Wed, Apr 8, 2009 at 2:02 PM, vipula nandipati <alupiv at gmail.com> wrote: > hi > > can i access the SDP data from Invite request in stateless_proxy ? > > when i was trying to print > > pjmedia_sdp_session *sdp = (pjmedia_pdp_session *) > rdata->msg_info.msg->body->data; > printf("%s",sdp->name); > > in stateless_proxy.c's on_rx_request method.. > > it's giving segmentation fault. > > > Thanks in advance > > > > _______________________________________________ > 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/20090408/75757ed3/attachment.html>