Rahul, one solution would be to create your own module which receives the SIP msgs before the rest of PJSIP. It would pass on the initial Invite to PJSIP for processing and on the re-Invite, you can reject it with a 488 and not pass on the re-Invite to PJSIP. The following Ack should be consumed too. There are other ways involving dealing with transactions yourself which would give you full control of the SIP session but at much more work. --- On Mon, 2/27/12, rahul yadav <connect2ry at gmail.com> wrote: From: rahul yadav <connect2ry@xxxxxxxxx> Subject: Re: Is it possible to send 488 response by ourself. To: "pjsip list" <pjsip at lists.pjsip.org> Date: Monday, February 27, 2012, 8:32 AM ??? Main problem is i want rdata somehow so that i can use pjsip_endpt_respond() to create 488 response msg. ??? 1. on_rx_offer callback is used by pjsip when RE-INVITE is received.This callback has pjsip_inv_session as an argument. ?????? pjsip_inv_session has invite_tsx( pjsip_transaction *) as a member. ????? on_rx_offer() is called from inv_on_state_confirmed(), which is defined in sip_inv.c. Before on_rx_offer is being called, inside inv_on_state_confirmed(), tsx from rdata is copied to invite_tsx of pjsip_inv_session. ????? pjsip_transaction has some fields like cseq, branch. ????? Can i use these fields to create incoming message as pjsip_endpt_respond() needs incoming msg from rdata to create response msg. ??? 2. on_tsx_state_change() callback can be registered with invite method. It has pjsip_event_e as one of the argument. We can get rdata from this argument. ??????? But on_tsx_state_change() is called after response to RE-INVITE is sent. ??????? So it seems i can't use this callback. ? ? 3. I am using pjproject1.0 and linux as OS. -thanks -----Inline Attachment Follows----- _______________________________________________ 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