diff --git a/daemon/src/sip/sipvoiplink.cpp b/daemon/src/sip/sipvoiplink.cpp index 2afd40b29d56c16a70e7c47fddd30d373ad0c522..4c9dd1638e61573c61324201efcc19b0fbc845fc 100644 --- a/daemon/src/sip/sipvoiplink.cpp +++ b/daemon/src/sip/sipvoiplink.cpp @@ -519,7 +519,7 @@ bool SIPVoIPLink::getEvent() // We have to register the external thread so it could access the pjsip frameworks if (!pj_thread_is_registered()) { DEBUG("%s: Registering thread", __PRETTY_FUNCTION__); - pj_thread_register(NULL, desc, &thread); + pj_thread_register(NULL, desc, &thread_); } static const pj_time_val timeout = {0, 10};