Hello,

I've just pushed a few updates to the sofsip-cli darcs tree. You'll need 
to refresh the autotools setup with "autoreconf -i" after update.

One of the things I did was to better mark the glib-dependent parts of 
sofsip-cli, and a source code define (SOFSIP_USE_GLIB_EVENT_LOOP) for 
forcing use of the sofia eventloop. The reason for doing this is a strange 
bug found in the interaction with the glib event loop:

With a test client, the Sofia timers (su_timer_create() + su_timer_run()) 
work fine with a glib backend, but once you launch nua_create(), the timer 
callbacks are triggered in bursts. OTOH, by running sofsip-cli with 
Sofia's own event loop implementation, the timing is perfect in both 
cases. So there's a bug somewhere in either glib, or in 
libsofia-sip-ua-glib (su_source.c)...

Generally, some people have complained about lack of example code, and 
having all the example clients dependent on glib (not quite true as we 
have sip-options.c, sip-data.c, etc). Sofsip-cli still uses glib/object 
(and will continue to use), but now the dependent parts are at least 
better marked. It should be straightforward still to use sofsip-cli as an 
example, even if in your own app you don't use glib.

As a quick summary, glib/object are used in sofsip-cli for:
   - parsing command-line arguments with GOption
   - linked lists for managing pending authentications
   - gobject is used to define the media subsystem interface and
     all implementations are in fact gobject (read "basic OO for C")

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

-------------------------------------------------------------------------
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
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to