Commit b631c8f3 authored by Guillaume Roguez's avatar Guillaume Roguez Committed by Stepan Salenikovich

sips: fix bad ended call when hangup

When SIPS transport receives a BYE sip method,
the TLS connection is also closed at mostly the same moment.
But the handling of the BYE causes PJSIP trying to also send
an acknowledgement to this BYE. As the send cannot succeed
as the TLS session is closed and as the send return an error
in such case, PSIP ends the current INVITE by an error
and not by a success as it should do to process the BYE.
This patch fixes this problem by queueing PJSIP msg when
the TLS session is disconnected.

Change-Id: I416c1e98a8934bd794a654358c50f58141c76bac
Tuleap: #998
parent 7eea48ef
......@@ -482,7 +482,7 @@ SipsIceTransport::updateTransportState(pjsip_transport_state state)
bool connected = state == PJSIP_TP_STATE_CONNECTED;
{
std::lock_guard<std::mutex> lk {txMutex_};
syncTx_ = true;
syncTx_ = connected;
}
getInfo(&ev.ssl_info, connected);
if (connected)
......
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