[pjsip] Capture 302 Moved temporarily
bennylp at pjsip.org
Mon Apr 28 10:49:50 EDT 2008
On Mon, Apr 28, 2008 at 3:38 PM, André Teixeira <coelho at wit-software.com> wrote:
> I need to capture a 302 Moved temporarily, but i'm not being able to.
> (using pjsip)
> I send a INVITE to a gateway, which responds with a 302 containing the
> new contact uri ... how can I capture the response in order to parse it
> and re-send the INVITE to the proper uri?
The 302 is reported in the "event" parameter of on_call_state()
callback when the call state is disconnected. Then you can follow this
link to parse the headers in pjsip_event:
More information about the pjsip