Giter Site home page Giter Site logo

Comments (10)

rraptorr avatar rraptorr commented on May 2, 2024

Quote from the documentation about allow_multiple_connections: "This option is only used when the anonymous mode is enabled. Setting it to true means that the same username can be taken multiple times in anonymous login mode if different resource are used to connect. This option is only useful in very special occasions. The default value is false.". So this is clearly not what you want.

Simply limit the number of simultaneous logins for a single user to 1. This is described in section "Limiting Opened Sessions with ACL" in the documentation.

from ejabberd.

bitraft avatar bitraft commented on May 2, 2024

I set max_user_sessions to 1, but it not work graceful.

for example I use Jitsi login on my PC, and then use a mobile client to login again on my phone. the Jitsi will be offline. but after a few seconds the Jitsi login again, and the phone application exit with error.

If I use Jitsi login same account on two PC. they will be online and offline for every 5 seconds.

How can I fix this ?

from ejabberd.

rraptorr avatar rraptorr commented on May 2, 2024

You can't, this is not a problem with ejabberd. This is a problem with your client. You must change it not to reconnect when another session kicks it out. This might be available as an option in your client, but if it is not then you must change your client source code, to behave differently.

You cannot do anything about this from server side. ejabberd has completely no way to distinguish reconnect from a normal connection (on the other hand, the client is aware if the disconnection was because another client connected or not).

from ejabberd.

rraptorr avatar rraptorr commented on May 2, 2024

Since XMPP was designed from the beginning to allow multiple sessions, it might be hard to change the client the way you want.

from ejabberd.

bitraft avatar bitraft commented on May 2, 2024

the problem is, if message sent to login device A, it will not show in login device B. Skype will get all message for multi login device, but in Jitsi will missing message from one login device.

Is this a client implement problem or is there some configure I can use to prevent it ?

And I want to confim again, the ejabberd already use XMPP protocol to tell client this account is login form other client so you are kick out ? If so I will report bug for Jitsi team.

I think a solution is require captcha from account login. I can see there is some captcha option but I do not know how to configure it to use on login ?

from ejabberd.

rraptorr avatar rraptorr commented on May 2, 2024

The messaging "problem" you describe is a standard feature of XMPP in fact. First message is routed to all clients, subsequent messages are routed to the client that responded. It is called 'resource locking'.

If you want to synchronize all messages across all clients then there is nothing that you can do currently out of the box. XEP-0280 describes a mechanism that allows such thing, but it requires both server support (there is some module in ejabberd 3.x, but I don't know if it works) and client side support (I haven't heard about any).

Yes, ejabberd tells the client that it was kicked out because of other client connection, I've already written that.

CAPTCHA has nothing to do with your problem (it is used only for MUC, in-band registration and web pages).

from ejabberd.

sinjar666 avatar sinjar666 commented on May 2, 2024

Hi Sushant
Read about resources here
http://wiki.xmpp.org/web/Jabber_Resources
This should clarify your doubt.
On Dec 23, 2014 6:02 PM, "Janusz Dziemidowicz" [email protected]
wrote:

Nothing, just configure different resources on your clients. This is not a
support forum for client configuration. If you are new then please read
Adium and/or Ichat documentation.


Reply to this email directly or view it on GitHub
#72 (comment).

from ejabberd.

saint7007 avatar saint7007 commented on May 2, 2024

Thanks Sinjar sir! one question related to file transfer, wanted to save transferred file on server itself or to any other location I did taping of all messages from Packets. Same thing wanted to to tap for files transferred. i.e. to: sushant from: srijan file: Help.zip :). Can you tell me which eel file will serve the purpose of taping file??

from ejabberd.

mremond avatar mremond commented on May 2, 2024

File transfer is peer to peer by design in XMPP (sometimes negotiating a proxy). There is no wiretapping feature.

from ejabberd.

lock avatar lock commented on May 2, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from ejabberd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.