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

sipcall: reset sdp when removing call

Change-Id: If0fa3dd862404b19d024c08814292b5bba846569
GitLab: #355
parent ecf94dcf
No related branches found
No related tags found
No related merge requests found
......@@ -142,11 +142,6 @@ Sdp::setActiveLocalSdpSession(const pjmedia_sdp_session* sdp)
void
Sdp::setActiveRemoteSdpSession(const pjmedia_sdp_session* sdp)
{
if (!sdp) {
JAMI_ERR("Remote sdp is NULL");
return;
}
activeRemoteSession_ = sdp;
}
......
......@@ -913,6 +913,10 @@ SIPCall::removeCall()
{
std::lock_guard<std::recursive_mutex> lk {callMutex_};
JAMI_WARN("[call:%s] removeCall()", getCallId().c_str());
if (sdp_) {
sdp_->setActiveLocalSdpSession(nullptr);
sdp_->setActiveRemoteSdpSession(nullptr);
}
Call::removeCall();
mediaTransport_.reset();
tmpMediaTransport_.reset();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment