How to answer with 100 Trying when receiving a reINVITE?

PG
Pedro Gonçalves
Fri, Sep 12, 2008 2:52 PM

Hi!

I would like to know how to answer a reINVITE (received in on_rx_offer
callback, whose only parameters are pjsip_inv_session *inv and const
pjmedia_sdp_session *offer).
In the initial INVITE (received in on_rx_request), I can answer it using
pjsip_endpt_respond_stateless(), since on_rx_request receives as
parameter pjsip_rx_data.
However, since I don't receive pjsip_rx_data in on_rx_offer callback,
how can I answer with 100 TRYING?

Best Regards
Pedro Gonçalves

Hi! I would like to know how to answer a reINVITE (received in on_rx_offer callback, whose only parameters are pjsip_inv_session *inv and const pjmedia_sdp_session *offer). In the initial INVITE (received in on_rx_request), I can answer it using pjsip_endpt_respond_stateless(), since on_rx_request receives as parameter pjsip_rx_data. However, since I don't receive pjsip_rx_data in on_rx_offer callback, how can I answer with 100 TRYING? Best Regards Pedro Gonçalves
BP
Benny Prijono
Mon, Sep 15, 2008 12:59 PM

On Fri, Sep 12, 2008 at 3:52 PM, Pedro Gonçalves pedro.pandre@gmail.comwrote:

Hi!

I would like to know how to answer a reINVITE (received in on_rx_offer
callback, whose only parameters are pjsip_inv_session *inv and const
pjmedia_sdp_session *offer).
In the initial INVITE (received in on_rx_request), I can answer it using
pjsip_endpt_respond_stateless(), since on_rx_request receives as
parameter pjsip_rx_data.
However, since I don't receive pjsip_rx_data in on_rx_offer callback,
how can I answer with 100 TRYING?

If I recall correctly that's not suported.

-benny

On Fri, Sep 12, 2008 at 3:52 PM, Pedro Gonçalves <pedro.pandre@gmail.com>wrote: > Hi! > > I would like to know how to answer a reINVITE (received in on_rx_offer > callback, whose only parameters are pjsip_inv_session *inv and const > pjmedia_sdp_session *offer). > In the initial INVITE (received in on_rx_request), I can answer it using > pjsip_endpt_respond_stateless(), since on_rx_request receives as > parameter pjsip_rx_data. > However, since I don't receive pjsip_rx_data in on_rx_offer callback, > how can I answer with 100 TRYING? > > If I recall correctly that's not suported. -benny
GL
Gang Liu
Tue, Sep 16, 2008 5:19 AM

Hi Pedro,

You need hack pjsip source code to do this.
 I add a new callback function on_reinvite() for inv session.Inv session

will call this function if have, and don't call on_rx_offer() anymore.
And then I handle the response myself.

regards,
Gang

On Fri, Sep 12, 2008 at 10:52 PM, Pedro Gonçalves pedro.pandre@gmail.comwrote:

Hi!

I would like to know how to answer a reINVITE (received in on_rx_offer
callback, whose only parameters are pjsip_inv_session *inv and const
pjmedia_sdp_session *offer).
In the initial INVITE (received in on_rx_request), I can answer it using
pjsip_endpt_respond_stateless(), since on_rx_request receives as
parameter pjsip_rx_data.
However, since I don't receive pjsip_rx_data in on_rx_offer callback,
how can I answer with 100 TRYING?

Best Regards
Pedro Gonçalves


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Hi Pedro, You need hack pjsip source code to do this. I add a new callback function on_reinvite() for inv session.Inv session will call this function if have, and don't call on_rx_offer() anymore. And then I handle the response myself. regards, Gang On Fri, Sep 12, 2008 at 10:52 PM, Pedro Gonçalves <pedro.pandre@gmail.com>wrote: > Hi! > > I would like to know how to answer a reINVITE (received in on_rx_offer > callback, whose only parameters are pjsip_inv_session *inv and const > pjmedia_sdp_session *offer). > In the initial INVITE (received in on_rx_request), I can answer it using > pjsip_endpt_respond_stateless(), since on_rx_request receives as > parameter pjsip_rx_data. > However, since I don't receive pjsip_rx_data in on_rx_offer callback, > how can I answer with 100 TRYING? > > Best Regards > Pedro Gonçalves > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >