On date Thursday 2008-12-11 11:22:16 +0800, mingcheng hu phoned this: > Hi, all > I want to write a soft phone .The idea is to modify > sofsip_cli(reusing the functionality in C),writing a GUI bindings for these > C functions. > The problem is how do I send a event from GUI to sofia event callback?
In your application you may need two threads, the application thread which manages user/GUI events, and eventually executes sofia-sip/NUA operations, and the sofia-sip/NUA thread which manages SIP events and eventually executes application specific operations (e.g., ring a tone, refresh a view). Every thread manages its own events, so you don't need to "send" events to the other thread, you just need to perform some action (e.g. nua_invite, nua_message) and this will create some corresponding event which will be managed by the other thread (e.g. a state change, an incoming nua_r_invite 180/200 event). HTH, regards. -- Stefano Sabatini http://www.reilabs.com ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel