PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, September 21, 2022

[FIXED] How can shared roster groups in different virtual hosts get presence of each other?

 September 21, 2022     configuration, ejabberd, rosters, virtualhost     No comments   

Issue

I'm struggling to get the presence of the users of a shared roster group in a different virtual host. My current structure is this:

Virtual Host: users
   User: user1@users
   User: user2@users

   Shared Roster group: accessgroup
         Users in it:
             user1@users
             user2@users

Virtual Host: monitor
   User: admin@monitor

   Shared Roster group: watcher
       Users in it: 
             admin@monitor

       Displayed groups:
            accessgroup@users

I want admin@monitor to get the presence of user1@users and user2@users, however, when i log into my client (pidgin) as admin@monitor they are not displayed as online.

What I'm missing here?

Thanks.


Solution

Well, I have found a solution that worked out for me. According to mfoss in this post at ejabberd forum, there is no way to create a "police office" effect, where one user can see presence of other one, but can't be seen.

To solve my problem, I had to add watcher@monitor in Displayed Groups: field of accessgroup, enabling admin@monitor get the presence of user1@users and user2@users.

Virtual Host: users
   User: user1@users
   User: user2@users

   Shared Roster group: accessgroup
         Users in it:
             user1@users
             user2@users

         Displayed groups: 
              watcher@monitor <---ADDED

Virtual Host: monitor
   User: admin@monitor

   Shared Roster group: watcher
       Users in it: 
             admin@monitor

       Displayed groups:
            accessgroup@users


Answered By - Vikto
Answer Checked By - David Goodson (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing