Comments (10)
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.
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.
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.
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.
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.
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.
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.
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.
File transfer is peer to peer by design in XMPP (sometimes negotiating a proxy). There is no wiretapping feature.
from ejabberd.
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)
- Bad cookie in table definition muc_online_room HOT 2
- mod_shared_roster_ldap doesn't work HOT 1
- Replace default captcha script not working HOT 2
- If matrix_domain contains @HOST@, this isn't replaced when using the option
- ACME fails with IPv6 only ACME server HOT 2
- Can't set long node name!\nPlease check your configuration
- Matrix gateway not working HOT 4
- Registration date not stored when using Mnesia
- Invite-based account registration in ejabberd HOT 1
- Generic Server Error Upon Clients Connecting to Server HOT 7
- [BUG] MS SQL database backend reason: {port_exit,memory_allocation_failed} with Erlang >25.3 HOT 2
- repo.process-one.net gpg key expired 17/03/2024 HOT 5
- [BUG] Cannot connect to Postgres with `sql_ssl_verify: true`
- Matrix Gateway: Join Matrix Rooms from XMPP
- ejabberd sends 'presence's', 'photo' element with no hash value, after user publishes a new avatar HOT 1
- Can't set long node name! using kubernetes
- Self-Compile ejabberd rebar3 resulting in ejabberd init process crash. Erlang/OTP 25 HOT 2
- Crash compiling ejabberd with Erlang/OTP 27.0-rc2
- Docs link not working HOT 3
- Import from Prosody with "roster" has: "approved" attribute. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ejabberd.