Hi,
I'm using pjsua2 in an Android application and get the following error:
pj_thread_this: assertion "!"Calling pjlib from unknown/external thread.
You must " "register external threads with pj_thread_register() " "before
calling any pjlib functions."" failed
My question is how can I register my thread using the pjsua2 API. Hope
there is a solution! Thanks!
On 08 Jul 2014, at 14:28, Stefan Winkler inst27@gmail.com wrote:
Hi,
I'm using pjsua2 in an Android application and get the following error:
pj_thread_this: assertion "!"Calling pjlib from unknown/external thread. You must " "register external threads with pj_thread_register() " "before calling any pjlib functions."" failed
My question is how can I register my thread using the pjsua2 API. Hope there is a solution! Thanks!
The answer is written in the assertion message itself: "register external threads with pj_thread_register() “.
--
Saúl Ibarra Corretgé
AG Projects
Yes but as far as I know pj_thread_register() is not part of the pjsua2
API. How can I call this from the Java world?
2014-07-08 15:31 GMT+02:00 Saúl Ibarra Corretgé saul@ag-projects.com:
On 08 Jul 2014, at 14:28, Stefan Winkler inst27@gmail.com wrote:
Hi,
I'm using pjsua2 in an Android application and get the following error:
pj_thread_this: assertion "!"Calling pjlib from unknown/external thread.
You must " "register external threads with pj_thread_register() " "before
calling any pjlib functions."" failed
My question is how can I register my thread using the pjsua2 API. Hope
there is a solution! Thanks!
The answer is written in the assertion message itself: "register external
threads with pj_thread_register() “.
--
Saúl Ibarra Corretgé
AG Projects
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Maybe you can enhance the Java API ;-)
Pjsip is open source, isn't it ? ;-)
Samuel
Le 8 juil. 2014 à 15:45, Stefan Winkler inst27@gmail.com a écrit :
Yes but as far as I know pj_thread_register() is not part of the pjsua2 API. How can I call this from the Java world?
2014-07-08 15:31 GMT+02:00 Saúl Ibarra Corretgé saul@ag-projects.com:
On 08 Jul 2014, at 14:28, Stefan Winkler inst27@gmail.com wrote:
Hi,
I'm using pjsua2 in an Android application and get the following error:
pj_thread_this: assertion "!"Calling pjlib from unknown/external thread. You must " "register external threads with pj_thread_register() " "before calling any pjlib functions."" failed
My question is how can I register my thread using the pjsua2 API. Hope there is a solution! Thanks!
The answer is written in the assertion message itself: "register external threads with pj_thread_register() “.
--
Saúl Ibarra Corretgé
AG Projects
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Hi,
I'm facing the same problem , Did you manage to register external threads
in java ?
On Tue, Jul 8, 2014 at 2:28 PM, Stefan Winkler inst27@gmail.com wrote:
Hi,
I'm using pjsua2 in an Android application and get the following error:
pj_thread_this: assertion "!"Calling pjlib from unknown/external thread.
You must " "register external threads with pj_thread_register() " "before
calling any pjlib functions."" failed
My question is how can I register my thread using the pjsua2 API. Hope
there is a solution! Thanks!
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
The error says how to do it, call pj_thread_register() from any threads you create that then call a PJ function.
Norman Franke
Answering Service for Directors, Inc.
www.myasd.com
On Jul 10, 2014, at 6:19 AM, Akram dh.akram@gmail.com wrote:
Hi,
I'm facing the same problem , Did you manage to register external threads in java ?
On Tue, Jul 8, 2014 at 2:28 PM, Stefan Winkler inst27@gmail.com wrote:
Hi,
I'm using pjsua2 in an Android application and get the following error:
pj_thread_this: assertion "!"Calling pjlib from unknown/external thread. You must " "register external threads with pj_thread_register() " "before calling any pjlib functions."" failed
My question is how can I register my thread using the pjsua2 API. Hope there is a solution! Thanks!
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
But the error doesn't say how the native method pj_thread_register() is exported to the PJSUA2 Java API so how can you call it from withing a Java application?
@Akram: As for now I figured out that the problem is not using different threads in my application, but it is the Java/Android garbage collector. This is a known problem which is documented.
Von: pjsip [mailto:pjsip-bounces@lists.pjsip.org] Im Auftrag von Norman Franke
Gesendet: Donnerstag, 10. Juli 2014 17:45
An: pjsip list
Betreff: Re: [pjsip] Threading in Android using pjsua2
The error says how to do it, call pj_thread_register() from any threads you create that then call a PJ function.
Norman Franke
Answering Service for Directors, Inc.
www.myasd.comhttp://www.myasd.com
On Jul 10, 2014, at 6:19 AM, Akram <dh.akram@gmail.commailto:dh.akram@gmail.com> wrote:
Hi,
I'm facing the same problem , Did you manage to register external threads in java ?
On Tue, Jul 8, 2014 at 2:28 PM, Stefan Winkler <inst27@gmail.commailto:inst27@gmail.com> wrote:
Hi,
I'm using pjsua2 in an Android application and get the following error:
pj_thread_this: assertion "!"Calling pjlib from unknown/external thread. You must " "register external threads with pj_thread_register() " "before calling any pjlib functions."" failed
My question is how can I register my thread using the pjsua2 API. Hope there is a solution! Thanks!
Visit our blog: http://blog.pjsip.orghttp://blog.pjsip.org/
pjsip mailing list
pjsip@lists.pjsip.orgmailto:pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.orgmailto:pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org