pjsip init shutdown in the thread