Commit 266c2db3 authored by Adrien Béraud's avatar Adrien Béraud Committed by Guillaume Roguez

sipcall: stop medias in a consistent way

Refs #68135

Change-Id: I25e10f78540dbe50ab84e8d4796458d8664f6a78
parent f9fe17df
......@@ -356,7 +356,7 @@ SIPCall::refuse()
if (!isIncoming() or getConnectionState() == Call::CONNECTED or !inv)
return;
avformatrtp_->stop();
stopAllMedia();
const pj_str_t contactStr(getSIPAccount().getContactHeader(transport_ ? transport_->get() : nullptr));
......@@ -545,10 +545,7 @@ SIPCall::onhold()
if (not setState(Call::HOLD))
return;
avformatrtp_->stop();
#ifdef RING_VIDEO
videortp_.stop();
#endif
stopAllMedia();
if (getConnectionState() == Call::CONNECTED) {
if (SIPSessionReinvite() != PJ_SUCCESS)
......
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