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 DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to