Python multi-threaded pjsua

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

 



Hello everyone,

First off let me say congratulations on this perfect library.

I'm new to PJSIP and I am trying to create a simple python app that will create a separate pjsua lib thread that will register a user to a remote server (one thread per registration). I created a new class extending threading.Thread and in the run I started the library using .start() only to be greeted by:

Assertion `!"Calling pjlib from unknown/external thread. You must " "register external threads with pj_thread_register() " "before calling any pjlib functions."' failed.

I tried googling the error and I found that there is a thread_register() in _pjsua but I haven't figured out the intended use.

Could anyone throw in an example or give me directions on where to search?

Regards,
Paris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20110419/5196eb3e/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