aboutsummaryrefslogtreecommitdiff
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-04-28Support XEP-0215: External Service DiscoveryHolger Weiss2-0/+711
Add the 'mod_stun_disco' module, which allows XMPP clients to discover STUN/TURN services and to obtain temporary credentials for using them as per XEP-0215: External Service Discovery. The temporary credentials handed out to clients have the format described in: https://tools.ietf.org/html/draft-uberti-behave-turn-rest-00 Also add the new module to the example configuration file. Closes #2947.
2020-04-23gen_mod: Reload modules after reloading listenersHolger Weiss1-2/+2
Make sure modules won't be reloaded before listeners. This is necessary to allow the (not yet committed) 'mod_stun_disco' module to parse the listener configuration after configuration reloads.
2020-04-23ejabberd_stun: Fix 'turn_ip' fallbackHolger Weiss1-13/+20
The 'turn_ip' option validator doesn't accept an inet:ip4_address() tuple. While at it, change the logic to only perform the fallback address lookup if no 'turn_ip' is configured (analogous to the fallback mechanism for the case where the 'auth_realm' is undefined).
2020-04-23use dsn-less config for mssql (#3131)ChaosKid422-47/+9
2020-04-22ejabberd_stun: Handle hashed passwords gracefullyHolger Weiss1-1/+8
Don't crash when STUN/TURN authentication is performed against a SCRAM-hashed password.
2020-04-22ejabberd_stun: Add 'stun_get_password' hookHolger Weiss1-2/+11
Add a hook that allows modules to offer a password for STUN/TURN authentication.
2020-04-21Fix some English typosBadlop3-5/+5
2020-04-21Rephrase mod_admin_extra doc, a2x screwed the format when building DocsBadlop1-10/+10
2020-04-20Make a few more strings translatable in MUC and Shared Roster WebAdminBadlop2-11/+11
2020-04-20ejabberd_stun: Set a default 'turn_ip'Holger Weiss3-17/+19
Try to resolve the local hostname, use the result as the default 'turn_ip', and only log a warning if that fails. Using the local hostname's address by default is analogous to mod_proxy65's behavior.
2020-04-17Fix doc content in mod_admin_extra so it can be extracted by make translationsBadlop1-28/+27
2020-04-17Check if mod_muc_log is enabled before setting logging option (#3215)Badlop1-0/+9
2020-04-17When rescode is some unexpected, probably error message, print itBadlop1-1/+3
2020-04-17Restart offline pop_messages when there is mismatch between select and deletePaweł Chmielowski1-4/+10
When another connection is inserting something to spool at this same time as we do pop_messages, it's possible that insert will happen between we fetch messages and delete them, so we effectively will delete it without delivering it to client. This change catch this situation and restart transaction, so we should always have consistent results.
2020-04-16Update documentation of mod_shared_roster (#3214)Badlop1-15/+16
2020-04-16Make session iq response have from be set to server jidPaweł Chmielowski1-1/+5
It looks like old version of Smack don't accept request that are have from sent to sender jid, but are only working when jid is set to server address. This is also how it looks in old xmpp rfc examples.
2020-04-16Resending unacked stanzas should send even archived msgs if mod_offline is ↵Paweł Chmielowski1-14/+16
enabled Messages that are received when no c2s is active will be stored in offline, even when mam archived them, so i don't think we should be doing something different in this case.
2020-04-14Fix unused variables from previous commitBadlop1-2/+2
2020-04-14Update links to the ejabberd Docs page in WebAdminBadlop4-7/+7
2020-04-14Rename opts->name to label, to avoid confusion with the group name (#3214)Badlop2-55/+96
Also updated WebAdmin to show more meaningful explanations Also fixed a bug that break support for group@host in Displayed
2020-04-09Minor fixes in docBadlop3-9/+12
2020-04-08Copy more option explanations from ejabberd Docs siteBadlop12-39/+122
2020-04-08Add ejabberd version number to man pagesBadlop1-3/+4
2020-04-08Indicate which ejabberd version is used to produce the pageBadlop1-1/+2
2020-04-08Don't make commands subsections, so Docs TOC plage is cleanerBadlop1-1/+1
2020-04-08Fix set_loglevel example argument documentationBadlop1-1/+1
2020-04-08Improve formatting of mod_announce docBadlop1-5/+5
2020-04-07Make resumed sessions try to deliver possibly queued messages to new sessionPaweł Chmielowski1-2/+17
Between receiving resume request and being closed by new session, it's possible (even if not very likely) that new messages would arrive to process that is resumed. In that case try to reroute messages that were received after we sent resume reply to new process.
2020-04-07Log errors that happen when retrieving http headers in ejabberd_httpPaweł Chmielowski1-1/+4
It seems that ssl errors can be generated here, so lets have abily to show them instead of swallowing them silently.
2020-04-05mod_carboncopy: Bump supported XEP revisionHolger Weiss1-1/+1
Since mod_carboncopy supports "urn:xmpp:carbons:rules:0", it implements version 0.13.x of XEP-0280.
2020-04-02Document mod_shared_roster_ldap optionsBadlop1-1/+136
2020-04-02Add ejabberd_auth_http auth_opts brief descriptionBadlop1-0/+6
2020-04-02Document sql_prepared_statementsBadlop1-0/+5
2020-04-02Quick document with forward link api_permissionsBadlop1-0/+7
2020-04-02Document some global optionsBadlop1-0/+53
2020-04-02Add three missing mod_bosh optionsBadlop1-0/+19
2020-04-02add missing mod_mam optionsBadlop1-2/+15
2020-04-02Fix mod_pubsub indentationBadlop1-104/+108
2020-04-02Add mod_pubsub configuration documentationBadlop1-1/+202
2020-04-01Fix potential message loss in terminating c2s sessionsPaweł Chmielowski8-36/+43
Calling sync version of xmpp_stream_in/out:stop could lead to messages never being processed by c2s process if they were queued in p1_server. This could be reproduced by when having messages in offline storage, starting sessions, enabling stream_mgmt, sending initial presence, and then immediately </stream:stream>, messages that mod_offline would send process would not be bounced back by stream_mgmt.
2020-03-30sql_type should be taken for LServer, not LHost (#3202)Boris Chernov1-1/+1
sql_type option should be retrieved for the main domain, not the MUC subdomain
2020-03-26Make webadmin redirect to page that end with /Paweł Chmielowski2-6/+21
2020-03-26Revert "Pass base path instead of level to support URL missing slash (#3177)"Paweł Chmielowski1-107/+124
This reverts commit e9d1201ea813d19c6c7403c7aa883e314991d664.
2020-03-25Do not change to attribute of sent messages from bare to full jidPaweł Chmielowski1-1/+5
This is not correct per xmpp spec
2020-03-24Fix unsubscribe command result, handle_sync_event result, and dialyzerBadlop1-2/+4
How to reproduce the problems fixed by this commit: Create temporary room, other account subscribes, and owner leaves Unsubscribe that account with the command: ejabberdctl unsubscribe_room ...
2020-03-23Make bounce_message_queue wait for 100ms for incoming messagesPaweł Chmielowski1-1/+1
There is possibilty that between c2s process unregistering itself from sm and terminating, some other process could try to send something to c2s, which could result in messages to triggering mam/offline hooks, and causing them not to be stored in any way.
2020-03-23Make mod_muc_room:unsubscirbe handle that unsubscribe may stop roomPaweł Chmielowski1-1/+4
2020-03-23Better handling of xml parse errors in send_stanzaPaweł Chmielowski1-0/+3
2020-03-18Also add "escape '\'" to prepared statements in pgsqllike_escapePaweł Chmielowski1-1/+1
2020-03-18Add escape '\' to like expression in pgsql to fix problem cockroachdbPaweł Chmielowski1-1/+1
Cockroachdb doesn't properly handle escaping of _ in like expressions, having "like ... escape '\'" makes it work, by disabling optimization that causes this broken behaviour