Hello, Okay. I found that when I use NUTAG_M_USERNAME() tag, then the Contact header IS correct (I thought it wasn't)).
So you can disregard this issue. Best Regards, Jerry -----Original Message----- From: Jerry Richards [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 13, 2008 12:23 PM To: 'Pekka Pessi' Cc: 'sofia-sip-devel@lists.sourceforge.net' Subject: RE: [Sofia-sip-devel] Sofia-Sip UA with Multiple Lines Hello, Below you mentioned use of NUTAG_M_USERPART() to cause the Contact header to be correct when running multiple lines in a single agent. I see no NUTAG_M_USERPART() tag defined in sofia-sip (version 1.12.7). I did fine a NUTAG_M_USERNAME() tag, but this does not work with nua_invite(). Even with this tag, sofia-sip is generating the wrong user part in the Contact header of the INVITE message. Do you know why? Best Regards, Jerry -----Original Message----- From: Pekka Pessi [mailto:[EMAIL PROTECTED] Sent: Thursday, April 19, 2007 2:21 AM To: Jerry Richards Cc: sofia-sip-devel@lists.sourceforge.net Subject: Re: [Sofia-sip-devel] Sofia-Sip UA with Multiple Lines 2007/4/18, Jerry Richards <[EMAIL PROTECTED]>: > Just for clarification, I am building a UA that will have up to 50 > lines and have questions related to it: > > 1) Must I have a process/thread per line? I want only one application > with multi-line capability. > 2) Must I call su_root_create() once per line? Nope. > 3) Must I call nua_create() once per line? You don't have to call nua_create() for each line, but you can do. If you end up doing so, you can force all the nua agents to run in the same thread by calling su_root_threading(root, 0) before nua_create() calls. > I have an embedded environment, so I want to minimize memory/CPU > utilization. What is the best way to do this using Sofia SIP stack? So how to run multiple lines in single agent? You can use the SIP url userpart to identify the line. Because the From and To headers don't always identify correct line, you have to use userpart in the Contact and request-URI. You can either add the Contact header explicitly to the nua_register(), nua_invite() and nua_respond() calls (and other dialog-initiating reques/responses like REFER, SUBSCRIBE and NOTIFY if you use them) or let the stack generate the Contact header but specify the userpart with NUTAG_M_USERPARTt(). -- Pekka.Pessi mail at nokia.com ------------------------------------------------------------------------- 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 Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel