Change getResourceLists to use address

This commit is contained in:
Benjamin Reis 2017-09-22 15:24:07 +02:00
parent 3abfd2749d
commit 2221411791
2 changed files with 6 additions and 6 deletions

View file

@ -60,13 +60,13 @@ void RemoteConference::removeParticipant (const shared_ptr<const Participant> &p
}
string RemoteConference::getResourceLists(const list<shared_ptr<const Participant>> &participants) {
string RemoteConference::getResourceLists(const list<shared_ptr<const Address>> &addresses) {
ResourceLists rl = ResourceLists();
ListType l = ListType();
for(const auto &p : participants) {
EntryType entry = EntryType(p->getAddress().asStringUriOnly());
if(p->getAddress().getDisplayName() != "") {
entry.setDisplayName(DisplayName(p->getAddress().getDisplayName()));
for(const auto &addr : addresses) {
EntryType entry = EntryType(addr->asStringUriOnly());
if(addr->getDisplayName() != "") {
entry.setDisplayName(DisplayName(addr->getDisplayName()));
}
l.getEntry().push_back(entry);
}

View file

@ -39,7 +39,7 @@ public:
std::shared_ptr<Participant> addParticipant (const Address &addr, const CallSessionParams *params, bool hasMedia) override;
void removeParticipant (const std::shared_ptr<const Participant> &participant) override;
std::string getResourceLists(const std::list<std::shared_ptr<const Participant>> &participants);
std::string getResourceLists(const std::list<std::shared_ptr<const Address>> &addresses);
protected:
/* ConferenceListener */