diff --git a/src/conference/remote-conference.cpp b/src/conference/remote-conference.cpp index 8218cf31c..269ed635e 100644 --- a/src/conference/remote-conference.cpp +++ b/src/conference/remote-conference.cpp @@ -60,13 +60,13 @@ void RemoteConference::removeParticipant (const shared_ptr &p } -string RemoteConference::getResourceLists(const list> &participants) { +string RemoteConference::getResourceLists(const list> &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); } diff --git a/src/conference/remote-conference.h b/src/conference/remote-conference.h index 94100bb21..718bf6edb 100644 --- a/src/conference/remote-conference.h +++ b/src/conference/remote-conference.h @@ -39,7 +39,7 @@ public: std::shared_ptr addParticipant (const Address &addr, const CallSessionParams *params, bool hasMedia) override; void removeParticipant (const std::shared_ptr &participant) override; - std::string getResourceLists(const std::list> &participants); + std::string getResourceLists(const std::list> &addresses); protected: /* ConferenceListener */