Commit 8e05e6a2 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩
Browse files

Fixed a crash with group chat rooms created when receiving a REFER, see...

Fixed a crash with group chat rooms created when receiving a REFER, see comment for details and check it doesn't impact server
parent 2a64f69f
......@@ -799,9 +799,12 @@ static void refer_received(SalOp *op, const SalAddress *refer_to){
} else {
LinphoneChatRoom *cr = _linphone_client_group_chat_room_new(lc, addr.asString().c_str(), nullptr);
/* The following causes a crash because chat room hasn't yet a peer address.
The above call to join() will create a CallSession which will call onConferenceCreated when it'll reach the Connected state.
onConferenceCreated will then call the following commented lines, no need for them here. */
static_cast<SalReferOp *>(op)->reply(SalReasonNone);
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