
Poll pjsua for events, and if necessary block the caller thread for the specified maximum interval (in miliseconds).Īpplication doesn’t normally need to call this function if it has configured worker thread ( thread_cnt field) in pjsua_config structure, because polling then will be done by these worker threads instead. int libHandleEvents (unsigned msec_timeout ) Note that this function is only applicable for library main & worker threads and external/native threads registered using libRegisterThread(). Name: The optional name to be assigned to the thread.Ĭheck if this thread has been registered to the library. Note that each time this function is called, it will allocate some memory to store the thread description, which will only be freed when the library is destroyed. Register a thread that was created by external or native API to the library. void libRegisterThread ( const string & name ) Note that create() MUST be called before calling this function.Ĭall this function after all initialization is done, so that the library can do additional checking set up.Īpplication may call this function any time after init(). Initialize pjsua with the specified settings.Īll the settings are optional, and the default values will be used when the config is not specified. void libInit ( const EpConfig & prmEpConfig )

Once this function has returned success, application must call libDestroy() before quitting. Version libVersion ( ) constĪpplication must call this function before calling any other functions, to make sure that the underlying libraries are properly initialized.
