From f049a10da8d6fc51b158d89d35ab0c2d90bca4f1 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Wed, 27 Sep 2017 15:02:09 +0200 Subject: [PATCH] Add the "text" feature tag in the Contact header of the group chat room creation INVITE. --- src/address/address.h | 2 ++ src/chat/client-group-chat-room.cpp | 5 +++++ src/conference/session/call-session.h | 1 + 3 files changed, 8 insertions(+) diff --git a/src/address/address.h b/src/address/address.h index eb3d74ed0..5a57c2f72 100644 --- a/src/address/address.h +++ b/src/address/address.h @@ -29,6 +29,8 @@ LINPHONE_BEGIN_NAMESPACE class AddressPrivate; class LINPHONE_PUBLIC Address : public ClonableObject { + friend class ClientGroupChatRoom; + public: Address (const std::string &address = ""); Address (const Address &src); diff --git a/src/chat/client-group-chat-room.cpp b/src/chat/client-group-chat-room.cpp index 47ade072f..147616bf8 100644 --- a/src/chat/client-group-chat-room.cpp +++ b/src/chat/client-group-chat-room.cpp @@ -16,8 +16,10 @@ * along with this program. If not, see . */ +#include "address/address-p.h" #include "client-group-chat-room-p.h" #include "c-wrapper/c-wrapper.h" +#include "conference/session/call-session-p.h" #include "conference/participant-p.h" #include "content/content.h" #include "logger/logger.h" @@ -67,6 +69,9 @@ void ClientGroupChatRoom::addParticipants (const list
&addresses, const shared_ptr session = focus->getPrivate()->createSession(*this, &csp, false, this); session->configure(LinphoneCallOutgoing, nullptr, nullptr, me->getAddress(), focus->getAddress()); session->initiateOutgoing(); + Address addr = me->getAddress(); + addr.setParam("text", ""); + sal_op_set_contact_address(session->getPrivate()->getOp(), addr.getPrivate()->getInternalAddress()); session->startInvite(nullptr, d->subject); d->setState(ChatRoom::State::CreationPending); } diff --git a/src/conference/session/call-session.h b/src/conference/session/call-session.h index 07f8ab262..cd5484cc2 100644 --- a/src/conference/session/call-session.h +++ b/src/conference/session/call-session.h @@ -34,6 +34,7 @@ class CallSessionPrivate; class CallSession : public Object { friend class CallPrivate; + friend class ClientGroupChatRoom; public: CallSession (const Conference &conference, const CallSessionParams *params, CallSessionListener *listener);