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