On 9/27/06, Michael Jerris <[EMAIL PROTECTED]> wrote: > For those that are interested, the following is a work in progress > patch, that:
> Add's nua_i_register event > Uses nua_respond, currently you can really only 200 OK. > This patch does not currently setup the reply correctly with a contact > header and other necessary headers, or handle 407 auth properly. > Input welcome and appreciated. I have applied you patch to repo. I moved the nua_stack_process_register() to its own C file. The patch is quite straightforward, so I don't have much to comment. I'd like to see a test case added to test_nua, e.g., B could send a register request to C (registrar would be ctx->c.contact). I've been thinking how to handle responses to non-INVITE requests cleanly. The main problem is that there could be multiple requests to respond on a single handle.I think the best approach here is to select the correct server transaction with help of pointer to the request message. So, you would include a NUTAG_WITH() to the nua_response() tags, like this case nua_i_register: .... registrar logic ... nua_respond(nh, SIP_200_OK, SIPTAG_CONTACT(m), TAG_END()); -- Pekka.Pessi mail at nokia.com ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel