Commit f049a10d authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Add the "text" feature tag in the Contact header of the group chat room creation INVITE.

parent b0b23090
...@@ -29,6 +29,8 @@ LINPHONE_BEGIN_NAMESPACE ...@@ -29,6 +29,8 @@ LINPHONE_BEGIN_NAMESPACE
class AddressPrivate; class AddressPrivate;
class LINPHONE_PUBLIC Address : public ClonableObject { class LINPHONE_PUBLIC Address : public ClonableObject {
friend class ClientGroupChatRoom;
public: public:
Address (const std::string &address = ""); Address (const std::string &address = "");
Address (const Address &src); Address (const Address &src);
......
...@@ -16,8 +16,10 @@ ...@@ -16,8 +16,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "address/address-p.h"
#include "client-group-chat-room-p.h" #include "client-group-chat-room-p.h"
#include "c-wrapper/c-wrapper.h" #include "c-wrapper/c-wrapper.h"
#include "conference/session/call-session-p.h"
#include "conference/participant-p.h" #include "conference/participant-p.h"
#include "content/content.h" #include "content/content.h"
#include "logger/logger.h" #include "logger/logger.h"
...@@ -67,6 +69,9 @@ void ClientGroupChatRoom::addParticipants (const list<Address> &addresses, const ...@@ -67,6 +69,9 @@ void ClientGroupChatRoom::addParticipants (const list<Address> &addresses, const
shared_ptr<CallSession> session = focus->getPrivate()->createSession(*this, &csp, false, this); shared_ptr<CallSession> session = focus->getPrivate()->createSession(*this, &csp, false, this);
session->configure(LinphoneCallOutgoing, nullptr, nullptr, me->getAddress(), focus->getAddress()); session->configure(LinphoneCallOutgoing, nullptr, nullptr, me->getAddress(), focus->getAddress());
session->initiateOutgoing(); 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); session->startInvite(nullptr, d->subject);
d->setState(ChatRoom::State::CreationPending); d->setState(ChatRoom::State::CreationPending);
} }
......
...@@ -34,6 +34,7 @@ class CallSessionPrivate; ...@@ -34,6 +34,7 @@ class CallSessionPrivate;
class CallSession : public Object { class CallSession : public Object {
friend class CallPrivate; friend class CallPrivate;
friend class ClientGroupChatRoom;
public: public:
CallSession (const Conference &conference, const CallSessionParams *params, CallSessionListener *listener); CallSession (const Conference &conference, const CallSessionParams *params, CallSessionListener *listener);
......
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