Pekka Pessi wrote:
On 2/2/07, Colin Whittaker <[EMAIL PROTECTED]> wrote:
  
 I've tried a few more things, and still can't get it all the way working.
 Here is where I am at now:
 1. Use NUTAG_M_USERNAME() in the nua_set_hparams(). This seems to work well
with all out going requests, but does work with incomming requests that have
handles allocated by the stack.
 2. Use SIPTAG_CONTACT_STR() in all the nua_respond(). This seems to work
for incoming handles allocated by the stack work.
    

I pushed yet another patch, which takes care of including
NUTAG_M_USERNAME() contents in the stack-provided Contact.

  
Great!!! This is working well now.
I got rid of all my SIPTAG_CONTACT_STR() tags and I only have the NUTAG_M_USERNAME() in the nua_set_hparams() called right after the handle is created or received in the callback and all my Contact: headers are good now.


  
 I still have the problem of a the bogus Contact: header for all incoming
requests that get auto acknowledged. e.g.
 An incoming re-INVITE to an active dialog that was generated via an
incoming INVITE, gets automatically responded to with 200 OK, but the
Contact: header has no username in the URL.
    

But you have used NUTAG_M_USERNAME() with nua_set_params()? Did you
call nua_set_params() or nua_set_hparams() before or after you called
nua_register()?

  
I only use NUTAG_M_USERNAME() with nua_set_hparams() since I want to support multiple usernames in the same nua instance.
I call nua_set_hparams() after nua_handle() and from the callback after the nua_handle_bind() on new stack created handles.
These are all done before any other nua_() function call.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to