Commit 1ca77097 authored by Sébastien Blin's avatar Sébastien Blin Committed by Adrien Béraud

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
......@@ -232,6 +232,10 @@ SipsIceTransport::SipsIceTransport(pjsip_endpoint* endpt,
};
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)
throw std::runtime_error("Can't register PJSIP transport.");
}
......
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