about "Calling pjlib from unknown/external thread " problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



fancy wrote:
> Hi,All
>   I'm using pjsip-0.8.0 and vs2003, call pjsip(pjsua-lib) from GUI (MFC dialog) without creating any other thread.
>  
> my problem is :
> 1.register is successful;
> 2.but when call place a call, will appear "Calling pjlib from unknown/external thread. You must register external threads with pj_thread_register() before calling any pjlib functions.";
> 3.others,if use breakpoint during the dial process, it's ok; and the same call flow in pjsip 0.5.10 is ok too.
>  
> my question is:
> This issue causes by not using pj_thread_register(), but register is successful, or other reasons, give me some advise.

If by "register is successful" you meant SIP registration was 
successful, pj_thread_register() has got nothing to do with SIP 
registration.

It could be that you are calling pjsip API from thread that is 
created by API other than pj_thread_create(). You *can* do this, but 
as the message suggests, you'll need to "register" that thread first 
to pjlib. Please see this for info on pj_thread_register():
http://www.pjsip.org/pjlib/docs/html/group__PJ__THREAD.htm#g600d2f8baddfd78de3b6b60cce027a9a

  -benny


> thanks!




[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux