Hi, Yes, any thread calling PJLIB function needs to be registered to PJLIB. Please see the doc & the example of pj_thread_register() : http://www.pjsip.org/pjlib/docs/html/group__PJ__THREAD.htm#g600d2f8baddfd78de3b6b60cce027a9a http://www.pjsip.org/pjlib/docs/html/page_pjlib_thread_test.htm Regards, nanang On Fri, Sep 5, 2008 at 11:49 PM, jaspreet madan <jaspreet_madan at yahoo.co.in> wrote: > > Hi, > I am using pjsip 0.8.0 on Windows mobile 6. I am facing similar issue. I am using windows API to get incoming GSM notification. On notification when I try to release on going Viop call using pjsip function it asserts at > > pj_assert(! > "Calling pjlib from unknown/external thread. You must " > "register external threads with pj_thread_register() " > "before calling any pjlib functions."); > > This according to my understanding is happening because the release function is called from the different thread i.e. in the callback thread.. How can i register that thread? or is there any other reason for this and how can i handle it?? > > > Regards, > Jaspreet > > > > --- On Fri, 5/9/08, Nanang Izzuddin <nanang at pjsip.org> wrote: > > From: Nanang Izzuddin <nanang@xxxxxxxxx> > Subject: Re: How can i Handle an incoming GSM call during an active VoIP call > To: rammeth at yahoo.co.in, "pjsip list" <pjsip at lists.pjsip.org> > Date: Friday, 5 September, 2008, 5:04 PM > > Hi, > I have no idea what caused the crash, never tried this scenario actually. It would be great if you could run in debug mode and inspect the location & variables condition when crash happens. > In case it's related to sound device sharing, please try to set pjsua media config "snd_auto_close_time" to 0 (it's hardcoded to 5 seconds in symbian_ua_gui), this will make sound device instantly closed when it is unused, e.g: call disconnected. > Regards, > nanang > > On Fri, Sep 5, 2008 at 12:26 PM, rams <rammeth at yahoo.co.in> wrote: >> >> Hi >> >> I downloaded Latest Symbian Version from SVN Trunk. >> >> i compiled and run the symbian_ua_gui, ported in Mobile device and its registered successfully. >> >> i made a call from A to B, call is connected perfectly. >> >> when A and B are in connected state,if any incoming GSM call for A, at this time Application is Crashing. >> >> So iam detecting the incoming GSM call using ETEL 3rd Party API and in the Ringing state i called the symbian_ua_endcall() [Voip Call Hangup Function]. At this time also Application is crashing. >> >> Please tell me how can i handle this senario in PJSIP. >> >> >> Thanks & Regards >> Rams >> >> >> >> ________________________________ >> Unlimited freedom, unlimited storage. Get it now >> _______________________________________________ >> 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 > > ________________________________ > Add more friends to your messenger and enjoy! Invite them now. > _______________________________________________ > 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 >