Hi all, perhaps this a newbie question but I didn't find an anwer. I am trying to do some programming using the c++ pjsua library but I have this error everytime I try to execute it: "Calling pjlib from unknown/external thread. You must register external threads with pj_thread_register() before calling any pjlib functions." I looked for information about how to solve the problem but it is not clear to me. I saw this thread here: http://www.pjsip.org/pipermail/pjsip/2007-April/002871.html and they talk about calling REGISTER THREAD before any call to a pjlib function. static pj_thread_desc desc; static pj_thread_t * thread; #define REGISTER_THREAD() \ if(!pj_thread_is_registered()) {\ pj_thread_register(NULL,desc,&thread);\ } So, here are my questions: 1) Where exactly do I have to call register thread? I add this code just before calling pjsua_create, pjsua_init, etc but I keep having the same problem. 2) I am having different assertion problems, so I don't know if I have to call this funcion before the assertion. 3) I did a gui for the python library and I didn't have any problem so I am guessing the thread issue is different using python and c++ but I don't know why. Sorry if it is not clear to me. I hope someone can help me. Best regards, Sergio --------------------------------- S? un Mejor Amante del Cine ?Quieres saber c?mo? ?Deja que otras personas te ayuden!. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20071011/5d2e4e6f/attachment.html