Hello again,

I'd be interested to hear comments about 'nua' (the main high-level API to libsofia-sip-ua), and possible ideas for improvement.

The intention is to release a stable release of Sofia-SIP in a few months, and now we'd still have some time to fine-tune the API before it.

Here's a couple of current concerns:

Authentication
--------------

Currently the application needs to parse the SIP authentication scheme
and realm (think of how WWW authentication works in browsers) from the SIP header structs. One open item is whether NUA should help the application more in this task.

But, but, the Sofia gaim plugin code (ssip.c) actually has pretty good example of how to perform this, so this might actually be pretty ok as it is now. Of course, more documentation never hurts. The nua_foobar() API functions are already well documented [1], but some of the callbacs are less so [2].

[1] http://sofia-sip.sourceforge.net/refdocs/nua/
    http://sofia-sip.sourceforge.net/refdocs/nua/nua_8c.html
[2] http://sofia-sip.sourceforge.net/refdocs/nua/nua_8h.html#a154a50

But, but, any positive/negative experiences from using these interfaces?

Effects of threading
--------------------

By default, Sofia creates a separate thread for the signaling stack. This is useful for single-threaded application that might block the main thread's event loop for relatively long periods of time (file i/o, GUI operations, etc).

On the other hand, for apps that do not block the event loop (at least not long enough to harm SIP stack operation), do not require this. Applications can already enable/disable stack threading with the su_root_threading() call. But, but, which mode should be the default?

Anyways, there are some known corner cases where threading can cause trouble (related to structs visible to both applications and the signaling stack).

--
 under work: Sofia-SIP at http://sofia-sip.sf.net


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to