Commit 22214117 authored by Benjamin REIS's avatar Benjamin REIS
Browse files

Change getResourceLists to use address

parent 3abfd274
...@@ -60,13 +60,13 @@ void RemoteConference::removeParticipant (const shared_ptr<const Participant> &p ...@@ -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(); ResourceLists rl = ResourceLists();
ListType l = ListType(); ListType l = ListType();
for(const auto &p : participants) { for(const auto &addr : addresses) {
EntryType entry = EntryType(p->getAddress().asStringUriOnly()); EntryType entry = EntryType(addr->asStringUriOnly());
if(p->getAddress().getDisplayName() != "") { if(addr->getDisplayName() != "") {
entry.setDisplayName(DisplayName(p->getAddress().getDisplayName())); entry.setDisplayName(DisplayName(addr->getDisplayName()));
} }
l.getEntry().push_back(entry); l.getEntry().push_back(entry);
} }
......
...@@ -39,7 +39,7 @@ public: ...@@ -39,7 +39,7 @@ public:
std::shared_ptr<Participant> addParticipant (const Address &addr, const CallSessionParams *params, bool hasMedia) override; std::shared_ptr<Participant> addParticipant (const Address &addr, const CallSessionParams *params, bool hasMedia) override;
void removeParticipant (const std::shared_ptr<const Participant> &participant) 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: protected:
/* ConferenceListener */ /* ConferenceListener */
......
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