summaryrefslogtreecommitdiff
path: root/src/ejabberd_sm.erl (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright datesEvgeniy Khramtsov2018-01-051-1/+1
|
* ejabberd_sm: Fix get_session_sid/3Holger Weiss2017-12-191-2/+5
| | | | | Let get_session_sid/3 cope with multiple session table entries for a given resource.
* mod_mam: Make sure a stanza ID is always addedHolger Weiss2017-11-091-4/+11
| | | | | | | | Let mod_mam store incoming messages from a new hook in ejabberd_sm. This makes sure all messages are tagged with a stanza ID, including those that are forked to multiple resources in ejabberd_sm. Closes #1344.
* Apply cosmetic changes to previous commitHolger Weiss2017-08-181-2/+2
|
* Suppress push notifications for online clientsHolger Weiss2017-08-181-1/+2
| | | | | | | When a client enabled push notifications during the current session, notifications should be suppressed as long as the client is online. Suppressing the notification didn't work for the case where the notification was triggered by MAM, but this is now fixed.
* Add support of section 4.9.3.16 on rfc6120Christophe Romain2017-08-101-1/+5
|
* Merge pull request #1881 from weiss/pushChristophe Romain2017-08-041-1/+19
|\ | | | | Support XEP-0357: Push Notifications
| * Support XEP-0357: Push NotificationsHolger Weiss2017-07-201-1/+19
| | | | | | | | Closes #1379.
* | Change policy of user_resources commandPaweł Chmielowski2017-08-031-1/+1
| | | | | | | | This fixes issue #1908
* | Fix errors from 1a0db3dChristophe Romain2017-07-211-1/+1
| |
* | Describe commands arguments and results in ejabberd_sm, ext_mod, mod_mamBadlop2017-07-211-8/+14
|/
* Cosmetic change: Fix indentation errorsHolger Weiss2017-05-241-1/+1
|
* Implement cache for rosterEvgeniy Khramtsov2017-05-171-1/+1
|
* Rename is_user_exists -> user_existsEvgeniy Khramtsov2017-05-111-2/+2
|
* Add type specs for Module:opt_type/1Evgeniy Khramtsov2017-05-081-0/+6
|
* Don't validate an option in ejabberd_config:get_option() functionsEvgeniy Khramtsov2017-04-291-11/+2
| | | | | | | | | | | | | The commit introduces the following changes: * Now there is no need to pass validating function in ejabberd_config:get_option() functions, because the configuration keeps already validated values. * New function ejabberd_config:get_option/1 is introduced * Function ejabberd_config:get_option/3 is deprecated. If the function is still called, the second argument (validating function) is simply ignored. * The second argument for ejabberd_config:get_option/2 is now a default value, not a validating function.
* Better process session closeEvgeniy Khramtsov2017-04-141-4/+6
|
* Use cache in front of Redis/SQL RAM backendsEvgeniy Khramtsov2017-04-141-38/+196
|
* Merge pull request #1664 from weiss/fix-routingChristophe Romain2017-04-071-5/+8
|\ | | | | Fix routing of groupchat and headline messages
| * ejabberd_sm: Fix routing of headline messagesHolger Weiss2017-04-051-3/+6
| | | | | | | | | | As per RFC 6121, silently drop headline messages sent to the bare JID of an offline user or to the full JID of an unavailable resource.
| * ejabberd_sm: Fix routing of groupchat messagesHolger Weiss2017-04-051-2/+2
| | | | | | | | | | As per RFC 6121, don't (re)route groupchat messages sent to a bare JID or to an unavailable resource.
| * ejabberd_sm: Fix typo in debug messageHolger Weiss2017-04-051-1/+1
| |
* | Set 'read_concurrency' for some ETS tablesEvgeniy Khramtsov2017-04-051-1/+1
|/
* Get rid of jid:to_string/1 and jid:from_string/1Evgeniy Khramtsov2017-02-261-1/+1
|
* Don't pass empty resource to jid:make()Evgeniy Khramtsov2017-02-251-2/+2
|
* Return ejabberd_sm:stop/0 backEvgeniy Khramtsov2017-02-241-0/+7
|
* Improve startup procedureEvgeniy Khramtsov2017-02-241-14/+1
|
* Include stanza ID with archived offline messagesHolger Weiss2017-02-231-6/+5
| | | | Fixes #1480.
* Start/stop virtual hosts when reloading configuration fileEvgeniy Khramtsov2017-02-231-24/+47
|
* Fix some dialyzer warningsEvgeniy Khramtsov2017-02-181-8/+8
|
* Change routing APIEvgeniy Khramtsov2017-02-161-56/+50
| | | | | | | | | | | Now 'From' and 'To' arguments must be omitted in functions and structures related to routing. The commit deprecates the following functions: ejabberd_router:route/3 in favor of ejabberd_router:route/1 ejabberd_router:route_error/4 in favor of ejabberd_router:route_error/2 ejabberd_local:route_iq/4 in favor of ejabberd_local:route_iq/2 ejabberd_local:route_iq/5 in favor of ejabberd_local:route_iq/3 The format of {route, From, To, Packet} is changed in favor of {route, Packet}
* Only use GEN_SERVER macro where appropriateEvgeniy Khramtsov2017-02-141-4/+7
|
* Improve modules start/stop proceduresEvgeniy Khramtsov2017-02-141-18/+19
|
* Check result of gen_mod:start/2 callback (#1534)Evgeniy Khramtsov2017-02-131-14/+6
|
* Speedup features list when a lot of virtual hosts configuredEvgeniy Khramtsov2017-01-241-6/+6
|
* Make a message is not bounced if it's archivedEvgeniy Khramtsov2017-01-211-6/+9
|
* Merge branch 'new_stream'Evgeniy Khramtsov2017-01-201-54/+89
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/cyrsasl.erl src/ejabberd_c2s.erl src/ejabberd_cluster.erl src/ejabberd_frontend_socket.erl src/ejabberd_node_groups.erl src/ejabberd_router.erl src/mod_bosh.erl src/mod_ip_blacklist.erl src/mod_muc_mnesia.erl src/mod_offline.erl src/mod_proxy65_sm.erl
| * Implement database backend interface for MUC, BOSH and auth_anonyousEvgeniy Khramtsov2017-01-131-3/+13
| |
| * Implement database backend interface for ejabberd_routerEvgeniy Khramtsov2017-01-111-4/+8
| |
| * Adopt remaining code to support new hooksEvgeniy Khramtsov2017-01-091-24/+13
| |
| * More refactoring on session managementEvgeniy Khramtsov2016-12-301-1/+2
| |
| * Add xmpp_stream_out behaviour and rewrite s2s/SM codeEvgeniy Khramtsov2016-12-281-10/+10
| |
| * Initial version of new XMPP stream behaviour (for review)Evgeniy Khramtsov2016-12-111-23/+54
| |
* | Update copyright date automatically (#1442)Badlop2017-01-021-1/+1
|/
* Use ejabberd_router:route_error/4 wherever possibleEvgeniy Khramtsov2016-11-251-12/+8
|
* Use xmpp:put_meta/3 to update metadataHolger Weiss2016-11-241-2/+1
|
* Let ejabberd_sm mark copied messagesHolger Weiss2016-11-221-4/+19
| | | | | | | | | | When multiple resources have the same (highest) priority, ejabberd_sm dispatches messages addressed to the bare JID (or to an unavailable resource) to each of these resources. Such messages are now marked with an 'sm_copy' flag for all but one of the resources. This makes it easier for other modules to identify those duplicates. Resolves #1356.
* Merge branch 'master' into xml-ngEvgeniy Khramtsov2016-11-121-20/+34
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/adhoc.erl src/cyrsasl_oauth.erl src/ejabberd_c2s.erl src/ejabberd_config.erl src/ejabberd_service.erl src/gen_mod.erl src/mod_admin_extra.erl src/mod_announce.erl src/mod_carboncopy.erl src/mod_client_state.erl src/mod_configure.erl src/mod_echo.erl src/mod_mam.erl src/mod_muc.erl src/mod_muc_room.erl src/mod_offline.erl src/mod_pubsub.erl src/mod_stats.erl src/node_flat_sql.erl src/randoms.erl
| * ejabberd_sm: Clean up old offline session entriesHolger Weiss2016-10-021-3/+11
| | | | | | | | | | If the number of offline sessions exceeds the 'max_user_sessions' limit, remove the oldest entry from the table.
| * Preserve PID for offline sessionsHolger Weiss2016-07-231-18/+24
| | | | | | | | | | | | | | Don't set the PID to 'undefined' when a session goes offline, as this looses the information which node created the session table entry. Fixes #1196.