Using XMPP developing a client which acts a mediator in two users

93 Views Asked by At

I am working on a requirement in which user will ask query and that query will be routed to group of users. Group of users can directly communicate with seeker. All using XMPP python client and XMPP server(ejabberd)

Detailed scenario:

  1. [email protected] asks a query and it is destined to [email protected]
  2. [email protected] select a list of users(g1) from database and forwards query to them.
  3. Each member of g1 replies individually to [email protected] even though message is sent from [email protected]

Step 1 is trivial XMPP and done already

Step 2 can be taken care of

Step 3 I am doubtful if it can be done. What features of XMPP I need to focus on. Please enlighten.

PS: I am writing custom clients using xmppp.py

1

There are 1 best solutions below

0
Haroldo_OK On

I don't think step 3 can quite be done with plain XMPP, but, if your XMPP server is your own, and it supports plugins, one possible workaround would be to write a plugin that "fakes" this interaction by making [email protected] pretend to be [email protected] from the point of view of the other users when making the question.

Another possibility would be to use the multi-user-chat, but that won't quite give the result you want, either.