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

sips_transport_ice: detect dead connections

If a TCP timeout occurs, the ICE session will emit a signal. SipsIceTransport
should handle this case to avoid video freezes

Change-Id: I1294606fd51283c03fd0d0cd1a966b4840f2b312
parent 6546fffa
No related branches found
No related tags found
No related merge requests found
...@@ -232,6 +232,10 @@ SipsIceTransport::SipsIceTransport(pjsip_endpoint* endpt, ...@@ -232,6 +232,10 @@ SipsIceTransport::SipsIceTransport(pjsip_endpoint* endpt,
}; };
tls_ = std::make_unique<TlsSession>(std::move(iceSocket), param, cbs); tls_ = std::make_unique<TlsSession>(std::move(iceSocket), param, cbs);
ice_->setOnShutdown([this]() {
if (tls_) tls_->shutdown();
});
if (pjsip_transport_register(base.tpmgr, &base) != PJ_SUCCESS) if (pjsip_transport_register(base.tpmgr, &base) != PJ_SUCCESS)
throw std::runtime_error("Can't register PJSIP transport."); throw std::runtime_error("Can't register PJSIP transport.");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment