ejabberd - Comments for "dispatcher" https://www.ejabberd.im/node/4668 en Clients send the history, or use MUC https://www.ejabberd.im/node/4668#comment-57300 <div class="quote-msg"> <div class="quote-author"><em>fei</em> wrote:</div> <p>If worker5 handles the conversation, then later transfers to worker6. How to enable worker6 to see all the history conversation between the client and worker5?</p></div> <p>ejabberd doesn't store history of private chats. Two ideas:</p> <p>A) Your worker5 client, or the asking client, stores all the conversation and sends it to worker6.</p> <p>B) Or, instead of private conversations, use MUC roomsin some way: ejabberd stores the last 20 messages of a room (you can configure that to 9999...), and sends that history to clients that join the room.</p> Tue, 10 May 2011 22:39:24 +0000 mfoss comment 57300 at https://www.ejabberd.im badlop, I have a follow up https://www.ejabberd.im/node/4668#comment-57285 <p>badlop,<br /> I have a follow up question. If worker5 handles the conversation, then later transfers to worker6. How to enable worker6 to see all the history conversation between the client and worker5?</p> <p>Thanks</p> Thu, 05 May 2011 14:27:17 +0000 fei comment 57285 at https://www.ejabberd.im badlop, Thanks for your https://www.ejabberd.im/node/4668#comment-57284 <p>badlop,<br /> Thanks for your reply, and I greatly appreciated.</p> Thu, 05 May 2011 14:11:31 +0000 fei comment 57284 at https://www.ejabberd.im fei wrote: Should I write a https://www.ejabberd.im/node/4668#comment-57281 <div class="quote-msg"> <div class="quote-author"><em>fei</em> wrote:</div> <p>Should I write a BOT, and use this BOT as a dispatcher? So, user first talk with the BOT, and BOT does some logic and forward the chat to the right one. Then, user can chat with the chosen one to talk with.</p></div> <p>Yes, this looks a good idea. Some proposals:</p> <p>1. You can use mod_shared_roster to ensure anon users get the dispatcher as a contact. See example 3: <a href="http://www.ejabberd.im/shared-roster-all#example-3" title="http://www.ejabberd.im/shared-roster-all#example-3">http://www.ejabberd.im/shared-roster-all#example-3</a></p> <p>2. Example: user1 talks to bot, bot decides that worker5 will handle the conversation, bot sends a special Message XMPP stanza to client, that contains this: &lt;forward-to&gt;worker5@example.org&lt;/forward-to&gt;. You implement in your Strophe.js user client that when a stanza with forward-to is received, the client sends a new message to that worker JID.</p> Thu, 05 May 2011 11:54:41 +0000 mfoss comment 57281 at https://www.ejabberd.im