From d7e761b09e132c0942d12e3497f0006d6c82415c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Grisez?= Date: Wed, 6 Jan 2016 10:07:40 +0100 Subject: [PATCH] Send REFER with BYE in dialog --- coreapi/conference.cc | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/coreapi/conference.cc b/coreapi/conference.cc index df8a6c92f..6cc888a2f 100644 --- a/coreapi/conference.cc +++ b/coreapi/conference.cc @@ -607,22 +607,14 @@ int RemoteConference::addParticipant(LinphoneCall *call) { } int RemoteConference::removeParticipant(const LinphoneAddress *uri) { - SalOp *op; - const char *from; char *tmp, *refer_to; int res; switch(m_state) { case ConnectedToFocus: - op = sal_op_new(m_core->sal); - - from = sal_op_get_from(m_focusCall->op); - sal_op_set_from(op, from); - sal_op_set_to(op, m_focusContact); - tmp = linphone_address_as_string_uri_only(uri); refer_to = ms_strdup_printf("%s;method=BYE", tmp); - res = sal_call_refer(op, refer_to); + res = sal_call_refer(m_focusCall->op, refer_to); ms_free(tmp); ms_free(refer_to);