Equivalent pj_register_thread method in java / Android

We are integrating PJSUA2 into our Android app. Everything is integrated and works fine. An accidental crash occurred in the error log:

../src/pj/os_core_unix.c:692: 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

What does this error mean?

We don't find a method pj_thread_register()

in java / Android PJSUA2. What is the equivalent method for this and how to use it?

+3


source to share


1 answer


According to the PJSUA2 documentation . Use the following to register an external stream:

void Endpoint::libRegisterThread(const string &name)

      



To check if a stream is registered:

bool Endpoint::libIsThreadRegistered()

      

0


source







All Articles