mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
add participant devices on participant added notifications
This commit is contained in:
parent
532020bb4c
commit
6cdd92ef8a
1 changed files with 12 additions and 1 deletions
|
|
@ -115,10 +115,21 @@ string LocalConferenceEventHandlerPrivate::createNotifyParticipantAdded (const A
|
|||
ConferenceType confInfo = ConferenceType(entity);
|
||||
UsersType users;
|
||||
confInfo.setUsers(users);
|
||||
|
||||
UserType user = UserType();
|
||||
UserRolesType roles;
|
||||
UserType::EndpointSequence endpoints;
|
||||
|
||||
shared_ptr<Participant> p = conf->findParticipant(addr);
|
||||
if (p) {
|
||||
for (const auto &device : p->getPrivate()->getDevices()) {
|
||||
const string &gruu = device.getGruu().asStringUriOnly();
|
||||
EndpointType endpoint = EndpointType();
|
||||
endpoint.setEntity(gruu);
|
||||
endpoint.setState("full");
|
||||
user.getEndpoint().push_back(endpoint);
|
||||
}
|
||||
}
|
||||
|
||||
user.setRoles(roles);
|
||||
user.setEntity(addr.asStringUriOnly());
|
||||
user.getRoles()->getEntry().push_back("participant");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue