Are chat requests, or something similar, implemented in ejabberd? What I mean is this scenario.
Precondition: User A does not know User B
1. User A sends a message to User B
2. User B recives a special message, "chat request", that shows that User A wants to chat with User B
3. User B accepts User As "chat request"
4. User B recives User As message and a chat sessions between User A and User B.
alt
1. User A sends a message to User B
2. User B recives a special message, "chat request", that shows that User A wants to chat with User B
3. User B rejects User As "chat request"
4. The message is dropped at the server
In Jabber, messages and
In Jabber, messages and presence subscription are independent. This means that you can send a message to a JID, no need to be subscribed to him. This is like in email world.
This allows anybody to send you messages (that includes spam). Maybe some client, or server, provides a feature "don't show me messages that come from people unknown".
So, there aren't such a thing as 'chat request' because all chats are allowed by default in Jabber.
Maybe privacy lists could
Maybe privacy lists could help:
http://www.xmpp.org/extensions/xep-0016.html
It is supported by ejabberd:
http://www.ejabberd.im/protocols
Thanks both of you. I've had
Thanks both of you.
I've had a look at privacy lists and they're not really what I wanted. It is more that I would like a special type of message to be sent that always will be the first message of a chat conversation. Until I accept this message all other messages in this conversation would be blocked. I can not use a privacy list because it isn't possible to block a user per conversation.
Anywas, thanks again.