0

I would like to use the XMPP roster provided by my server to also contain contacts of common external contacts for my group (eg. our commonly called distributors, the ISP support line, pizza we always order, etc.) Obviously these contacts don't need presence or the ability to message. They just exist in the roster with a vCard containing the phone numbers. Is this possible?

Jippers
  • 2,635
  • 5
  • 37
  • 58

1 Answers1

2

It's possible but (if I understood correctly your requirements) not out-of-the-box. And more information would be needed: will those contacts have any JID? Or do you want to use roster as sort of a personal "addressbook" (so you could add there whatever you want)? Do you want to manually edit those entries (vCards) or will they be provided by the server/shared in your group? There could be a couple of solutions to this problem:

  • if the contact information were to come from external sources you could use Tigase's Dynamic Rosters which would allow additional, shared contacts within the group
  • you could create additional entity/(external)component, let's call it "Address Book", which would allow you set/edit vCards of entities within those components (that could also be shared with users)
  • you could use XEP-0049: Private XML Storage
DzaveD
  • 13
  • 4
Wojtek
  • 1,845
  • 1
  • 14
  • 33
  • These particular contacts are like a shared read-only address book. They would be server created so that everyone has the same data. We would like them to exist in the roster used for messaging as that's our main data source in our UC solution. The idea is scrolling through the roster you can open these read-only no-message contacts and click the vcard to make calls easily, and everyone has the same "dead" contacts to hold numbers and maybe email addresses. – Jippers Jan 31 '20 at 18:03
  • 1
    In that case mentioned Tigase's Dynamic Rosters would fit the description perfectly. – Wojtek Jan 31 '20 at 22:04