Not logged in. · Lost password · Register
Forum: agsXMPP RSS
ElastiGirl #1
Member since Feb 2012 · 1 post
Group memberships: Members
Show profile
Subject: Receive all incoming 1:1 chat messages

Is there a way to connect to the server and  listen to/receive all 1:1 messages sent to the server  - not caring who it is from and who it is to?  Basically I'm interested in developing a bot which connects to the server and simply listens to all messages and logs them to our database - basically message archiving.

Currently the OnMessage in my code only picks up 1:1 messages sent to the jid I connect with - which is what it should be doing :)!...  
I currently use OpenFire as my server with LDAP for authentication. Is this possible or only achievable with MUC rooms?

Alex #2
Member since Feb 2003 · 4298 posts · Location: Germany
Group memberships: Administrators, Members
Show profile
I am not aware of such an XMPP extensions. You have to solve this on the server side. There are plugins for message archiving in openfire. If they don't fit for your use case you have to modify them or write your own server plugin.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS