Hello All,
I am having difficulty invoking nua_respond() from an application thread
different than the callback function thread (I want to reply with 200 OK for
an OPTIONS request). If the nua_respond() function is called from the other
thread, I get a "500 Responding to Non-Existing Request" from the sofia
stack.
Here is a code excerpt from the callback function:
nua_saved_event(nuaH, &savedEvent);
// ... And later in callback function a msg is sent to
// another thread
Here is a code excerpt from the other thread:
// This fails if I used the saved nh (from callback) or
// create a new handle or add NUTAG_WITH_THIS(nuaH)
nua_respond(saved_nh, 200, "OK", NUTAG_M_USERNAME(username),
NUTAG_WITH_SAVED(&savedEvent),
SOATAG_USER_SDP_STR(sdp),
TAG_END());
However, if I invoke the following inside the callback function, then the
200 OK is sent properly:
nua_respond(nh, 200, "OK", NUTAG_M_USERNAME(username),
NUTAG_WITH_THIS(nuaH),
SOATAG_USER_SDP_STR(sdp),
TAG_END());
Does anyone know how I can get the other thread to respond properly?
Best Regards,
Jerry
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel