Commit 8ebf379a authored by ethan's avatar ethan

SIPVoIPLink initializer need register_thread first before pj_pool_create

Change-Id: I729d8a34aa48b73fe3800119f7dac666bb9e96a9
parent ffae6639
......@@ -493,6 +493,7 @@ SIPVoIPLink::SIPVoIPLink() : pool_(nullptr, pj_pool_release)
throw VoipLinkException(#ret " failed"); \
} while (0)
sip_utils::register_thread();
pj_caching_pool_init(&cp_, &pj_pool_factory_default_policy, 0);
pool_.reset(pj_pool_create(&cp_.factory, PACKAGE, 64 * 1024, 4096, nullptr));
if (!pool_)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment