[pjsip] How to register native thread

Samuel Vinson samuelv at laposte.net
Sun May 25 09:30:25 EDT 2008


Hi,

I copy the benny's answer from 13/05/2008 on mailing list ;-)

"Yep this has been discussed quite a number of times. Just do Google
site search (the little text box on the top right corner of pjsip.org
website) on pj_thread_register."

You should find something like that :
   if(!pj_thread_is_registered()) {
   pj_thread_register(NULL,desc,&thread);
   }

Samuel

loki1 at bezeqint.net a écrit :
> Hi.
> 
> In my pjsua application I'm working with some dll that 
> internally creates thread for callback function. I need 
> first to write data with dll function and then wait for the 
> callback response. I tried to use pj_event for this, but i 
> get error: "Calling pjlib from unknown/external thread..." 
> when i set event to signal from callback.
> 
> Is there any way to avoid it or how can i register this 
> internal dll's thread? Thanks. 
> 
> _______________________________________________
> 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
> 
> 





More information about the pjsip mailing list