Handling 302 w/pjsua API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




P.J. Cast. schrieb:
> I have a question about handling the 302 Moved
> Temporarily Message from an Invite session. 
> 
> Using the pjsua_call_make_call to place an Invite,
> when the other side is not available, the Sip Proxy is
> sending 302 Moved with the new destination in the
> Contact header field of the Sip message.
> 
> Now, with pjsip, I see I can detect this 302 condition
> in the on_call_state callback, when the state is
> PJSIP_INV_STATE_DISCONNECTED and the last_status is
> 302. However, I do I go about continuing the call?
> 
> To make this work correctly, I need to be able to get
> another Invite sent out with the new destination (as
> received in the Contact field) using the old CallID
> header field value - since it is part of the same
> transaction as far as I know. I see there is the
> reinvite method in the pjsua API, but it appears just
> to be used for taking a call off hold.

The INVITE transaction is terminated with 302 as this is a final 
response. If the SIP UAC decides to try to reach the callee under the 
provided contact then this is a new session, thus, a new transaction. 
Thus, IMO the callid should change.

regards
klaus

> Is there a method I need to call to enable 302
> handling? Or, is there method I can call from the
> callback to continue on with the dialog using the new
> contact... or, do I have to place a completely new
> call with make call method and somehow specify the
> callid from the previous call. I've tried to search
> the mailing list but searching for 302/moved/etc
> didn't yield very good results. And, I couldn't find
> anything in the documentation - if it is there, I'm
> extremely sorry and would love a link to the location
> so I can find future questions :-)
> 
> Thanks a bunch.
> 
> 
> 
> 
>       ____________________________________________________________________________________
> Be a better friend, newshound, and 
> know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 
> 
> 
> _______________________________________________
> 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



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux