Nanang, Thanks! What you are telling me makes sense. (I must admit, I did not know about the auto answer setting and the functionality. I implemented it myself by calling the "Answer" method programatically.) Regards, Jerry. -----Original Message----- From: pjsip-bounces@xxxxxxxxxxxxxxx [mailto:pjsip-bounces at lists.pjsip.org] On Behalf Of Nanang Izzuddin Sent: Tuesday, April 13, 2010 4:40 AM To: pjsip list Subject: Re: PJSIP and Threads. Hi, Not really aware about this issue, or perhaps platform specific issue (?). And just FYI, the auto-answer feature in pjsua is handled in the worker thread context (not main thread), and it just works fine on (at least) win, mac, linux/unix, please check on_incoming_call() of pjsua_app.c. People usually face thread problem caused by missing external thread registration (into pjlib), please see doc of pj_thread_register() [1] for more info: --- [1] http://www.pjsip.org/pjlib/docs/html/group__PJ__THREAD.htm#g600d2f8baddfd78d e3b6b60cce027a9a BR, nanang On Fri, Apr 9, 2010 at 2:12 PM, Jerry Augustine <jerrya at excelanz.com> wrote: > Hi All, > > Are there any considerations to be kept in mind regarding threads when > working with PJSIP? > > E.g. "Auto Answer" on a separate thread does not have sound! (Sound is > available when auto accepting incoming calls from the main thread). Any > thing that I should keep in mind. Any docs on this subject? > > Please guide if possible. > > Regards, > Jerry. > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > _______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip at lists.pjsip.org http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org