1
0
mirror of https://github.com/coturn/coturn.git synced 2025-12-25 01:41:00 +01:00
google-labs-jules[bot] ad8ff3040f feat: Omit STUN error reasons by default, add option to send them
This commit changes the server's default behavior to omit STUN error
reason phrases in responses. A new option, `--send-error-reason` (and
corresponding config file setting `send-error-reason`), is introduced
to enable the inclusion of these reason phrases if desired.

This change aims to reduce response size by default, while still
allowing you to enable more verbose error messages for debugging.

Changes include:
- Renamed `no_error_reason` to `send_error_reason` in `turn_params_t`.
- Default for `send_error_reason` is now `false` (reasons omitted).
- Command-line option changed to `--send-error-reason` to enable reasons.
- Updated `mainrelay.c` for new option name, logic, and usage string.
- Updated all `turnserver.conf` files (`examples/etc/turnserver.conf`,
  `docker/coturn/turnserver.conf`) to reflect the new option and default.
- Adjusted conceptual test cases for the new default behavior.
- Partially updated `ns_turn_server.c` to use the new
  `send_error_reason` flag. Due to some limitations I encountered, a full update
  to `ns_turn_server.c` could not be reliably completed and will
  require your manual review and completion to ensure all error generation
  sites correctly adhere to the `send_error_reason` flag (sending
  reasons only when it's true).
2025-05-31 18:27:43 +00:00
..
2018-10-23 07:44:03 +02:00
2018-10-23 07:44:03 +02:00
2020-04-30 17:39:39 +03:00

Before you begin
 * copy db schema run ./cp-schema.sh
 * edit coturn/turnserver.conf according your db selection (mysql or postgresql or redis or mongodb)

# start

  docker-compose -f docker-compose-all.yml up --build --detach

# restart
Notice: May restart needed for coturn container, if it could not access database yet, due initialization delay.
  docker restart docker_coturn_1

# stop
  docker-compose -f docker-compose-all.yml down


# Or Stop with volume removal
  docker-compose down --volumes