Crash in cpool_create_pool when pjsip setup in a worker thread

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

 



Hello,

I'm using a worker thread to startup pjsip, otherwise  
pjsua_media_transports_create blocks the UI for a few seconds, while  
ICE is initialized.

The thread calls: pjsip_create(), pjsua_pool_create(), etc.

When the thread is done, it ends.  The main thread is then registered  
with pjsip.

When a call is made (about one out of three calls) and  
pjsua_verify_sip_url is called (from the main thread), the application  
crashes in cpool_create_pool with an EXEC_BAD_ACCESS.

Am I doing something wrong?  Do I have to initialize pjsip from the  
main thread?  If so, can pjsua_media_transports_create be called from  
a worker thread?

Can pjsip be initialized in a worker thread that ends after the  
initialization is done?

Do I have to keep the worker thread around and call  
pjsua_verify_sip_url from the worker thread?

--
Eric Chamberlain




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20091026/0e14d9b5/attachment.html>


[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