Skip to content
Snippets Groups Projects
Commit 266c2db3 authored by Adrien Béraud's avatar Adrien Béraud Committed by Guillaume Roguez
Browse files

sipcall: stop medias in a consistent way

Refs #68135

Change-Id: I25e10f78540dbe50ab84e8d4796458d8664f6a78
parent f9fe17df
No related branches found
No related tags found
No related merge requests found
...@@ -356,7 +356,7 @@ SIPCall::refuse() ...@@ -356,7 +356,7 @@ SIPCall::refuse()
if (!isIncoming() or getConnectionState() == Call::CONNECTED or !inv) if (!isIncoming() or getConnectionState() == Call::CONNECTED or !inv)
return; return;
avformatrtp_->stop(); stopAllMedia();
const pj_str_t contactStr(getSIPAccount().getContactHeader(transport_ ? transport_->get() : nullptr)); const pj_str_t contactStr(getSIPAccount().getContactHeader(transport_ ? transport_->get() : nullptr));
...@@ -545,10 +545,7 @@ SIPCall::onhold() ...@@ -545,10 +545,7 @@ SIPCall::onhold()
if (not setState(Call::HOLD)) if (not setState(Call::HOLD))
return; return;
avformatrtp_->stop(); stopAllMedia();
#ifdef RING_VIDEO
videortp_.stop();
#endif
if (getConnectionState() == Call::CONNECTED) { if (getConnectionState() == Call::CONNECTED) {
if (SIPSessionReinvite() != PJ_SUCCESS) if (SIPSessionReinvite() != PJ_SUCCESS)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment