aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* mod_stun_disco: Bump credentials_lifetime defaultHolger Weiss2020-05-111-13/+18
| | | | | | | | | | | Increase the default lifetime of temporary credentials to 12 hours. ejabberd's built-in TURN server re-queries the temporary password from mod_stun_disco whenever a TURN client attempts to refresh an allocation, and mod_stun_disco will only return the password as long as the credentials didn't expire. Therefore, the credentials lifetime effectively limits the maximum lifetime of a TURN allocation when ejabberd's TURN service is used, so the default value shouldn't be too short.
* Fix link in mod_sip to SIP Docs sectionBadlop2020-05-091-3/+3
|
* Provide minimal mod_bosh configuration exampleBadlop2020-05-091-1/+14
|
* Add link in acme option to ACME section in ejabberd DocsBadlop2020-05-091-1/+1
|
* Hide false-positive warnings about mod_delegation Type atom and NS binaryBadlop2020-05-071-0/+4
|
* Remove ancient and rather useless incode ejabberd_commands documentationBadlop2020-05-071-201/+0
|
* Don't use string:take, as it isn't available in Erlang/OTP 19.3 (#3256)Badlop2020-05-071-3/+2
|
* Fix webadmin muc room sorting broken due to trailing slash patch (#3256)Badlop2020-05-071-1/+2
|
* Unconditionally send presence unavailable to all pres_a recipientPaweł Chmielowski2020-05-071-26/+37
| | | | | | | Previously we only send that presence to direct presence recipients if client also sent general self presence (without to attribute). This should help with issue #3245
* Show deprecation warning if ejabberd_xmlrpc is configured as listen module ↵Badlop2020-05-061-0/+7
| | | | (#2915)
* Remove access_commands useless lines, api_permission replaced it years agoBadlop2020-05-061-14/+8
|
* ejabberd_listener: Let supervisor terminate childHolger Weiss2020-05-051-1/+6
| | | | | | | If a TCP connection was closed before the socket was handed over to a supervised child process, let the supervisor terminate the process rather than killing it directly. This avoids crash log entries generated by the supervisor.
* Set 'max_fsm_queue' default value (back) to 10000Holger Weiss2020-05-054-4/+4
| | | | | | | | | | The default value for the 'max_fsm_queue' option was set to 10000 in commit 79685da90b514a49f9c412e31dccc17be9dd8680, and that value is still documented to be the default. It was (probably unintentionally) changed to 5000 in commit 03de853e4fdcf852ae75a86922c08bb1a0950e6d. It makes sense to keep it larger than the value of mod_stream_mgmt's 'max_ack_queue' option.
* mod_stun_disco: Log discovered services on startupHolger Weiss2020-05-051-4/+4
| | | | | | If the 'offer_local_services' option isn't set to 'false', log an [info] message for each auto-discovered ejabberd_stun listener on startup (and on configuration reload).
* Extract translatable strings also from the xmpp libraryBadlop2020-05-042-5/+4
|
* Fix the new service_subscription_subscribers test (#2696)Badlop2020-05-041-3/+3
|
* Fix @from attribute on MucSub 'subscribers' node messagesMarc Tonnes2020-05-041-1/+50
|
* mod_stun_disco: Remove unnecessary inclusionHolger Weiss2020-05-031-2/+0
|
* mod_stun_disco: Apply minor documentation cleanupsHolger Weiss2020-05-031-4/+4
|
* mod_stun_disco: Try to resolve listener addressHolger Weiss2020-04-301-2/+28
| | | | | | | | | | | | | | | | | In some IPv6-only networks, hostnames that have no AAAA record are resolved to an IPv6 address that's mapped to the host's IPv4 address. This allows the IPv6-only clients to communicate with IPv4-only services such as ejabberd's built-in STUN/TURN server. If STUN/TURN clients try to contact the IPv4 address directly rather than using the mapped IPv6 address, the connection will fail. Therefore, try to resolve the IP address of local ejabberd_stun services to the hostname and announce that hostname rather than the IP address if (and only if) the hostname resolves back to the original IP address, and not to any additional IPv4 or IPv6 address(es). This can (and should) be reverted once IPv6 support is added to ejabberd's built-in STUN/TURN server.
* Set ejabberd version to 20.0420.04Jerome Sautret2020-04-291-1/+1
|
* Fix English typos in configure.acBadlop2020-04-291-2/+2
|
* Merge pull request #3232 from weiss/enable-stunJérôme Sautret2020-04-292-2/+9
|\ | | | | Enable STUN/TURN support by default
| * Enable STUN/TURN by defaultHolger Weiss2020-04-202-2/+9
| | | | | | | | | | Build ejabberd with STUN/TURN support by default, and add a STUN/TURN listener to the example configuration file.
* | Rewrite sentences in modules options examples, to not break Docs indentationBadlop2020-04-282-8/+4
| |
* | Update dependences in mixPaweł Chmielowski2020-04-282-14/+14
| |
* | Run tests for mssql only if configured with --enable-mssqlPaweł Chmielowski2020-04-283-50/+29
| |
* | Update depsPaweł Chmielowski2020-04-281-6/+6
| |
* | enable tests with mssql-backend (#3136)ChaosKid422020-04-2811-14/+237
| |
* | Merge pull request #3235 from weiss/xep-0215Jérôme Sautret2020-04-2812-13/+932
|\ \ | | | | | | Support STUN/TURN service discovery
| * | ejabberd_stun: Tone down 'auth_realm' warningHolger Weiss2020-04-281-7/+7
| | | | | | | | | | | | | | | | | | | | | These days, STUN/TURN authentication can be performed with ephemeral credentials, where the REALM is irrelevant. Therefore, just log an [info] message rather than a [warning] in the case where no authentication REALM is configured but multiple virtual domains exist.
| * | Add tests for mod_stun_discoHolger Weiss2020-04-285-0/+207
| | |
| * | Support XEP-0215: External Service DiscoveryHolger Weiss2020-04-283-0/+712
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | mix.exs: Update 'xmpp' and 'stun'Christoph Scholz2020-04-231-2/+2
| | |
| * | rebar.config: Update 'xmpp' and 'stun'Holger Weiss2020-04-231-2/+2
| | | | | | | | | | | | | | | Use the current versions of 'xmpp' (to get XEP-0215 support) and 'stun' (to fix TURN issues).
| * | gen_mod: Reload modules after reloading listenersHolger Weiss2020-04-231-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.
* | | Don't offer X-OAUTH2 if the only auth method enabled is Anonymous (#3209)Badlop2020-04-271-1/+1
| | |
* | | Don't store caps information for direct presences of muc roomPaweł Chmielowski2020-04-271-1/+13
| | | | | | | | | | | | | | | | | | We really don't need those, and thanks to each individual room having different hash (as one of hashed data is room description) we end with lot of data that we really don't need.
* | | Clean some unused functions in ejabberd_ctl, this makes "make hooks" happyBadlop2020-04-241-60/+2
|/ /
* | ejabberd_stun: Fix 'turn_ip' fallbackHolger Weiss2020-04-231-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).
* | use dsn-less config for mssql (#3131)ChaosKid422020-04-232-47/+9
| |
* | Bump jiffy so it compiles on older GCC (#3218)Licaon_Kter2020-04-232-2/+2
| | | | | | | | | | * Update jiffy * And here
* | ejabberd_stun: Handle hashed passwords gracefullyHolger Weiss2020-04-221-1/+8
| | | | | | | | | | Don't crash when STUN/TURN authentication is performed against a SCRAM-hashed password.
* | ejabberd_stun: Add 'stun_get_password' hookHolger Weiss2020-04-221-2/+11
| | | | | | | | | | Add a hook that allows modules to offer a password for STUN/TURN authentication.
* | Fix some English typosBadlop2020-04-213-5/+5
| |
* | Rephrase mod_admin_extra doc, a2x screwed the format when building DocsBadlop2020-04-211-10/+10
| |
* | Make a few more strings translatable in MUC and Shared Roster WebAdminBadlop2020-04-202-11/+11
| |
* | Update some translated strings where only print chars had changedBadlop2020-04-2025-408/+268
| |
* | ejabberd_stun: Set a default 'turn_ip'Holger Weiss2020-04-203-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.
* Travis CI: Test against Erlang/OTP 22.3Holger Weiss2020-04-191-1/+1
|