Skip to content
Snippets Groups Projects
Commit 28bde72c authored by Adrien Béraud's avatar Adrien Béraud Committed by Sébastien Blin
Browse files

sipvoiplink: avoid deadlock in transaction callback

Change-Id: I2fddb42df950f84449c4246820bd45752e99d93e
parent 50a6d9fe
No related branches found
No related tags found
No related merge requests found
......@@ -1118,9 +1118,12 @@ transaction_state_changed_cb(pjsip_inv_session* inv, pjsip_transaction* tsx, pjs
onRequestInfo(inv, rdata, msg, *call);
else if (methodName == "NOTIFY")
onRequestNotify(inv, rdata, msg, *call);
else if (methodName == "MESSAGE")
else if (methodName == "MESSAGE") {
if (msg->body)
call->onTextMessage(im::parseSipMessage(msg));
runOnMainThread([call, m = im::parseSipMessage(msg)]() mutable {
call->onTextMessage(std::move(m));
});
}
}
int SIPVoIPLink::getModId()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment