How should I wait in main thread for Endpoint threads

AS
Ali Shirvani
Wed, Jun 19, 2019 11:56 AM

Hi all,

I'm new in using pjsip, I just tried to implement simple SIP server that
send 200 OK to requests. I'm trying to use PJSUA2 API, I read the docs,
initialized and started the Endpoint, but instead of
pj_thread_sleep(10000) I want to wait infinity. In other words I want to
join the main thread with Endpoint threads. How can I do this?

Regards,
Ali

Hi all, I'm new in using pjsip, I just tried to implement simple SIP server that send 200 OK to requests. I'm trying to use PJSUA2 API, I read the docs, initialized and started the Endpoint, but instead of `pj_thread_sleep(10000)` I want to wait infinity. In other words I want to join the main thread with Endpoint threads. How can I do this? Regards, Ali