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

This commit is contained in:
Ghislain MARY 2017-09-27 15:02:09 +02:00
parent b0b2309038
commit f049a10da8
3 changed files with 8 additions and 0 deletions

View file

@ -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);

View file

@ -16,8 +16,10 @@
* 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 "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<Address> &addresses, const
shared_ptr<CallSession> 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);
}

View file

@ -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);