Compare commits
10 Commits
7cd09efe87
...
15cecc97a2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
15cecc97a2 | ||
|
|
60ed2e246e | ||
|
|
b7dfa236c1 | ||
|
|
5a6c9f3ce4 | ||
|
|
265d1029e6 | ||
|
|
a668d4b4cc | ||
|
|
9298847097 | ||
|
|
60b6e2d816 | ||
|
|
e1d3ba8a69 | ||
|
|
5c14404c71 |
4
.github/workflows/cifuzz.yml
vendored
4
.github/workflows/cifuzz.yml
vendored
@ -20,7 +20,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
sanitizer: ["address", "memory", "undefined"]
|
sanitizer: ["address", "memory", "undefined"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: build fuzzers (${{ matrix.sanitizer }})
|
- name: build fuzzers (${{ matrix.sanitizer }})
|
||||||
id: build
|
id: build
|
||||||
@ -40,7 +40,7 @@ jobs:
|
|||||||
output-sarif: true
|
output-sarif: true
|
||||||
|
|
||||||
- name: upload crash
|
- name: upload crash
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v6
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.sanitizer }}_artifacts
|
name: ${{ matrix.sanitizer }}_artifacts
|
||||||
path: ./out/artifacts
|
path: ./out/artifacts
|
||||||
|
|||||||
6
.github/workflows/clang.yml
vendored
6
.github/workflows/clang.yml
vendored
@ -15,7 +15,7 @@ jobs:
|
|||||||
format:
|
format:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
uses: ./.github/workflows/actions/ubuntu-build-deps
|
uses: ./.github/workflows/actions/ubuntu-build-deps
|
||||||
@ -49,7 +49,7 @@ jobs:
|
|||||||
CC: clang
|
CC: clang
|
||||||
ASAN_OPTIONS: strict_string_checks=1:detect_stack_use_after_return=1:check_initialization_order=1:detect_leaks=0:detect_invalid_pointer_pairs=1:halt_on_error=0
|
ASAN_OPTIONS: strict_string_checks=1:detect_stack_use_after_return=1:check_initialization_order=1:detect_leaks=0:detect_invalid_pointer_pairs=1:halt_on_error=0
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
uses: ./.github/workflows/actions/ubuntu-build-deps
|
uses: ./.github/workflows/actions/ubuntu-build-deps
|
||||||
@ -74,7 +74,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
config: ["Release"]
|
config: ["Release"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
uses: ./.github/workflows/actions/ubuntu-build-deps
|
uses: ./.github/workflows/actions/ubuntu-build-deps
|
||||||
|
|||||||
2
.github/workflows/cmake.yml
vendored
2
.github/workflows/cmake.yml
vendored
@ -25,7 +25,7 @@ jobs:
|
|||||||
container: ${{ matrix.os }}
|
container: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
env:
|
env:
|
||||||
|
|||||||
2
.github/workflows/codeql.yml
vendored
2
.github/workflows/codeql.yml
vendored
@ -22,7 +22,7 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
security-events: write
|
security-events: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
uses: ./.github/workflows/actions/ubuntu-build-deps
|
uses: ./.github/workflows/actions/ubuntu-build-deps
|
||||||
|
|||||||
16
.github/workflows/docker.yml
vendored
16
.github/workflows/docker.yml
vendored
@ -34,7 +34,7 @@ jobs:
|
|||||||
- s390x
|
- s390x
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0 # for correct image labeling via `git describe --tags`
|
fetch-depth: 0 # for correct image labeling via `git describe --tags`
|
||||||
# TODO: Try remove once `moby/buildkit` image upgrades its default QEMU version.
|
# TODO: Try remove once `moby/buildkit` image upgrades its default QEMU version.
|
||||||
@ -70,7 +70,7 @@ jobs:
|
|||||||
- run: make docker.tar to-file=.cache/image.tar
|
- run: make docker.tar to-file=.cache/image.tar
|
||||||
tags=build-${{ github.run_number }}-${{ matrix.dist }}-${{ matrix.arch }}
|
tags=build-${{ github.run_number }}-${{ matrix.dist }}-${{ matrix.arch }}
|
||||||
working-directory: docker/coturn/
|
working-directory: docker/coturn/
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v6
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.dist }}-${{ matrix.arch }}-${{ github.run_number }}
|
name: ${{ matrix.dist }}-${{ matrix.arch }}-${{ github.run_number }}
|
||||||
path: docker/coturn/.cache/image.tar
|
path: docker/coturn/.cache/image.tar
|
||||||
@ -89,7 +89,7 @@ jobs:
|
|||||||
|| github.ref == 'refs/heads/master') }}
|
|| github.ref == 'refs/heads/master') }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v6
|
||||||
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
||||||
|
|
||||||
- name: Parse semver versions from Git tag
|
- name: Parse semver versions from Git tag
|
||||||
@ -134,7 +134,7 @@ jobs:
|
|||||||
arch: s390x
|
arch: s390x
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v6
|
||||||
- uses: docker/setup-qemu-action@v3
|
- uses: docker/setup-qemu-action@v3
|
||||||
- run: make npm.install
|
- run: make npm.install
|
||||||
working-directory: docker/coturn/
|
working-directory: docker/coturn/
|
||||||
@ -151,7 +151,7 @@ jobs:
|
|||||||
}
|
}
|
||||||
return out;
|
return out;
|
||||||
|
|
||||||
- uses: actions/download-artifact@v6
|
- uses: actions/download-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.dist }}-${{ matrix.arch }}-${{ github.run_number }}
|
name: ${{ matrix.dist }}-${{ matrix.arch }}-${{ github.run_number }}
|
||||||
path: docker/coturn/.cache/
|
path: docker/coturn/.cache/
|
||||||
@ -186,7 +186,7 @@ jobs:
|
|||||||
dist: ["alpine", "debian"]
|
dist: ["alpine", "debian"]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Parse Docker image name from Git repository name
|
- name: Parse Docker image name from Git repository name
|
||||||
id: image
|
id: image
|
||||||
@ -208,7 +208,7 @@ jobs:
|
|||||||
|| 'edge' }}-${{ matrix.dist }}"
|
|| 'edge' }}-${{ matrix.dist }}"
|
||||||
>> $GITHUB_OUTPUT
|
>> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- uses: actions/download-artifact@v6
|
- uses: actions/download-artifact@v7
|
||||||
with:
|
with:
|
||||||
path: docker/coturn/.cache/
|
path: docker/coturn/.cache/
|
||||||
|
|
||||||
@ -296,7 +296,7 @@ jobs:
|
|||||||
needs: ["push"]
|
needs: ["push"]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Parse semver versions from Git tag
|
- name: Parse semver versions from Git tag
|
||||||
id: semver
|
id: semver
|
||||||
|
|||||||
2
.github/workflows/linux.yml
vendored
2
.github/workflows/linux.yml
vendored
@ -47,7 +47,7 @@ jobs:
|
|||||||
working-directory: /tmp/
|
working-directory: /tmp/
|
||||||
if: ${{ contains('amazonlinux:2 ubuntu:16.04 ubuntu:18.04', matrix.os) }}
|
if: ${{ contains('amazonlinux:2 ubuntu:16.04 ubuntu:18.04', matrix.os) }}
|
||||||
|
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Install `apt` dependencies
|
- name: Install `apt` dependencies
|
||||||
# Set env variable or otherwise `tzdata` package requires interaction.
|
# Set env variable or otherwise `tzdata` package requires interaction.
|
||||||
|
|||||||
4
.github/workflows/macos.yml
vendored
4
.github/workflows/macos.yml
vendored
@ -20,7 +20,7 @@ jobs:
|
|||||||
ver: ["14", "15", "26"]
|
ver: ["14", "15", "26"]
|
||||||
runs-on: macos-${{ matrix.ver }}
|
runs-on: macos-${{ matrix.ver }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Relink `python` package in `brew`
|
- name: Relink `python` package in `brew`
|
||||||
# Unlink and re-link to prevent errors when GitHub `macos` runner images
|
# Unlink and re-link to prevent errors when GitHub `macos` runner images
|
||||||
@ -57,7 +57,7 @@ jobs:
|
|||||||
ver: ["15", "26"]
|
ver: ["15", "26"]
|
||||||
runs-on: macos-${{ matrix.ver }}
|
runs-on: macos-${{ matrix.ver }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Relink `python` package in `brew`
|
- name: Relink `python` package in `brew`
|
||||||
# Unlink and re-link to prevent errors when GitHub `macos` runner images
|
# Unlink and re-link to prevent errors when GitHub `macos` runner images
|
||||||
|
|||||||
6
.github/workflows/mingw.yml
vendored
6
.github/workflows/mingw.yml
vendored
@ -31,7 +31,7 @@ jobs:
|
|||||||
TOOSL_DIR: ${{ github.workspace }}\.cache\tools
|
TOOSL_DIR: ${{ github.workspace }}\.cache\tools
|
||||||
INSTALL_DIR: ${{ github.workspace }}\.cache\install_mingw_2022_02_15
|
INSTALL_DIR: ${{ github.workspace }}\.cache\install_mingw_2022_02_15
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
@ -58,7 +58,7 @@ jobs:
|
|||||||
cmake -E make_directory ${{ env.INSTALL_DIR }}
|
cmake -E make_directory ${{ env.INSTALL_DIR }}
|
||||||
|
|
||||||
- name: Cache installed
|
- name: Cache installed
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
id: cache-installed
|
id: cache-installed
|
||||||
with:
|
with:
|
||||||
path: ${{ env.INSTALL_DIR }}
|
path: ${{ env.INSTALL_DIR }}
|
||||||
@ -113,7 +113,7 @@ jobs:
|
|||||||
if: ${{ matrix.BUILD_TYPE == 'Release' }}
|
if: ${{ matrix.BUILD_TYPE == 'Release' }}
|
||||||
|
|
||||||
- name: Update artifacts
|
- name: Update artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v6
|
||||||
with:
|
with:
|
||||||
name: coturn_mingw_${{ matrix.os }}
|
name: coturn_mingw_${{ matrix.os }}
|
||||||
path: |
|
path: |
|
||||||
|
|||||||
6
.github/workflows/msvc.yml
vendored
6
.github/workflows/msvc.yml
vendored
@ -38,7 +38,7 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
security-events: write # required for all CodeQL to report detected outcomes
|
security-events: write # required for all CodeQL to report detected outcomes
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Create directories
|
- name: Create directories
|
||||||
run: |
|
run: |
|
||||||
@ -112,7 +112,7 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
shell: cmd
|
shell: cmd
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Install NSIS for packaging
|
- name: Install NSIS for packaging
|
||||||
uses: repolevedavaj/install-nsis@v1.1.0
|
uses: repolevedavaj/install-nsis@v1.1.0
|
||||||
@ -157,7 +157,7 @@ jobs:
|
|||||||
if: ${{ matrix.BUILD_TYPE == 'Release' }}
|
if: ${{ matrix.BUILD_TYPE == 'Release' }}
|
||||||
|
|
||||||
- name: Update artifacts
|
- name: Update artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v6
|
||||||
with:
|
with:
|
||||||
name: coturn_msvc-${{ matrix.VCPKG_PLATFORM_TOOLSET }}-${{ matrix.CMAKE_GENERATOR_PLATFORM }}-${{ matrix.BUILD_SHARED_LIBS }}
|
name: coturn_msvc-${{ matrix.VCPKG_PLATFORM_TOOLSET }}-${{ matrix.CMAKE_GENERATOR_PLATFORM }}-${{ matrix.BUILD_SHARED_LIBS }}
|
||||||
path: |
|
path: |
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@ -83,3 +83,4 @@ Thumbs.db
|
|||||||
# --------
|
# --------
|
||||||
*.dll
|
*.dll
|
||||||
*.exe
|
*.exe
|
||||||
|
.cache/*
|
||||||
|
|||||||
@ -9,7 +9,21 @@ Coturn TURN server Docker image changelog
|
|||||||
|
|
||||||
### Security updated
|
### Security updated
|
||||||
|
|
||||||
- [Debian Linux] "trixie" 20251020 (13.1): <https://github.com/docker-library/official-images/commit/7d7121f027cea92f35edf151aef7d1175b9e1464>
|
- [Debian Linux] "trixie" 20251208 (13.2): <https://github.com/docker-library/official-images/commit/11670f6c414419f5eb6febb8a94978354073a016>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## [4.7.0-r3] · 2025-12-04
|
||||||
|
[4.7.0-r3]: /../../tree/docker/4.7.0-r3
|
||||||
|
|
||||||
|
### Upgraded
|
||||||
|
|
||||||
|
- [Alpine Linux] 3.23: <https://www.alpinelinux.org/posts/Alpine-3.23.0-released.html>
|
||||||
|
|
||||||
|
### Security updated
|
||||||
|
|
||||||
|
- [Debian Linux] "trixie" 20251117 (13.2): <https://github.com/docker-library/official-images/commit/215fa7075010e3f2da20008b1a3a223b788beb0d>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -34,7 +34,7 @@ ALPINE_VER := alpine$(strip $(shell grep -m1 'alpine_ver=' alpine/Dockerfile \
|
|||||||
DEBIAN_VER := $(strip $(shell grep -m1 'debian_ver=' debian/Dockerfile \
|
DEBIAN_VER := $(strip $(shell grep -m1 'debian_ver=' debian/Dockerfile \
|
||||||
| cut -d '=' -f2))
|
| cut -d '=' -f2))
|
||||||
|
|
||||||
BUILD_REV ?= 2
|
BUILD_REV ?= 3
|
||||||
|
|
||||||
NAME := coturn
|
NAME := coturn
|
||||||
OWNER := $(or $(GITHUB_REPOSITORY_OWNER),coturn)
|
OWNER := $(or $(GITHUB_REPOSITORY_OWNER),coturn)
|
||||||
|
|||||||
@ -15,8 +15,8 @@ Coturn TURN server Docker image
|
|||||||
|
|
||||||
## Supported tags and respective `Dockerfile` links
|
## Supported tags and respective `Dockerfile` links
|
||||||
|
|
||||||
- [`4.7.0-r2`, `4.7.0-r2-debian`, `4.7.0`, `4.7.0-debian`, `4.7.0-trixie`, `4.7`, `4.7-debian`, `4.7-trixie`, `4`, `4-debian`, `4-trixie`, `debian`, `trixie`, `latest`][d1]
|
- [`4.7.0-r3`, `4.7.0-r3-debian`, `4.7.0`, `4.7.0-debian`, `4.7.0-trixie`, `4.7`, `4.7-debian`, `4.7-trixie`, `4`, `4-debian`, `4-trixie`, `debian`, `trixie`, `latest`][d1]
|
||||||
- [`4.7.0-r2-alpine`, `4.7.0-alpine`, `4.7.0-alpine3.22`, `4.7-alpine`, `4.7-alpine3.22`, `4-alpine`, `4-alpine3.22`, `alpine`, `alpine3.22`][d2]
|
- [`4.7.0-r3-alpine`, `4.7.0-alpine`, `4.7.0-alpine3.23`, `4.7-alpine`, `4.7-alpine3.23`, `4-alpine`, `4-alpine3.23`, `alpine`, `alpine3.23`][d2]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
# Dockerfile of coturn/coturn:alpine Docker image.
|
# Dockerfile of coturn/coturn:alpine Docker image.
|
||||||
#
|
#
|
||||||
|
|
||||||
ARG alpine_ver=3.22
|
ARG alpine_ver=3.23
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -2214,7 +2214,7 @@ static void set_option(int c, char *value) {
|
|||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
case PROMETHEUS_OPT:
|
case PROMETHEUS_OPT:
|
||||||
turn_params.prometheus = 1;
|
turn_params.prometheus = true;
|
||||||
break;
|
break;
|
||||||
case PROMETHEUS_PORT_OPT:
|
case PROMETHEUS_PORT_OPT:
|
||||||
turn_params.prometheus_port = atoi(value);
|
turn_params.prometheus_port = atoi(value);
|
||||||
@ -2226,7 +2226,7 @@ static void set_option(int c, char *value) {
|
|||||||
STRCPY(turn_params.prometheus_path, value);
|
STRCPY(turn_params.prometheus_path, value);
|
||||||
break;
|
break;
|
||||||
case PROMETHEUS_ENABLE_USERNAMES_OPT:
|
case PROMETHEUS_ENABLE_USERNAMES_OPT:
|
||||||
turn_params.prometheus_username_labels = 1;
|
turn_params.prometheus_username_labels = true;
|
||||||
break;
|
break;
|
||||||
case AUTH_SECRET_OPT:
|
case AUTH_SECRET_OPT:
|
||||||
turn_params.use_auth_secret_with_timestamp = 1;
|
turn_params.use_auth_secret_with_timestamp = 1;
|
||||||
|
|||||||
@ -112,7 +112,7 @@ MHD_RESULT promhttp_handler(void *cls, struct MHD_Connection *connection, const
|
|||||||
}
|
}
|
||||||
|
|
||||||
void start_prometheus_server(void) {
|
void start_prometheus_server(void) {
|
||||||
if (turn_params.prometheus == 0) {
|
if (!turn_params.prometheus) {
|
||||||
TURN_LOG_FUNC(TURN_LOG_LEVEL_INFO, "prometheus collector disabled, not started\n");
|
TURN_LOG_FUNC(TURN_LOG_LEVEL_INFO, "prometheus collector disabled, not started\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -238,7 +238,7 @@ void start_prometheus_server(void) {
|
|||||||
|
|
||||||
void prom_set_finished_traffic(const char *realm, const char *user, unsigned long rsvp, unsigned long rsvb,
|
void prom_set_finished_traffic(const char *realm, const char *user, unsigned long rsvp, unsigned long rsvb,
|
||||||
unsigned long sentp, unsigned long sentb, bool peer) {
|
unsigned long sentp, unsigned long sentb, bool peer) {
|
||||||
if (turn_params.prometheus == 1) {
|
if (turn_params.prometheus) {
|
||||||
|
|
||||||
const char *label[] = {realm, NULL};
|
const char *label[] = {realm, NULL};
|
||||||
if (turn_params.prometheus_username_labels) {
|
if (turn_params.prometheus_username_labels) {
|
||||||
@ -270,33 +270,33 @@ void prom_set_finished_traffic(const char *realm, const char *user, unsigned lon
|
|||||||
}
|
}
|
||||||
|
|
||||||
void prom_inc_allocation(SOCKET_TYPE type) {
|
void prom_inc_allocation(SOCKET_TYPE type) {
|
||||||
if (turn_params.prometheus == 1) {
|
if (turn_params.prometheus) {
|
||||||
const char *label[] = {socket_type_name(type)};
|
const char *label[] = {socket_type_name(type)};
|
||||||
prom_gauge_inc(turn_total_allocations, label);
|
prom_gauge_inc(turn_total_allocations, label);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void prom_dec_allocation(SOCKET_TYPE type) {
|
void prom_dec_allocation(SOCKET_TYPE type) {
|
||||||
if (turn_params.prometheus == 1) {
|
if (turn_params.prometheus) {
|
||||||
const char *label[] = {socket_type_name(type)};
|
const char *label[] = {socket_type_name(type)};
|
||||||
prom_gauge_dec(turn_total_allocations, label);
|
prom_gauge_dec(turn_total_allocations, label);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void prom_inc_stun_binding_request(void) {
|
void prom_inc_stun_binding_request(void) {
|
||||||
if (turn_params.prometheus == 1) {
|
if (turn_params.prometheus) {
|
||||||
prom_counter_add(stun_binding_request, 1, NULL);
|
prom_counter_add(stun_binding_request, 1, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void prom_inc_stun_binding_response(void) {
|
void prom_inc_stun_binding_response(void) {
|
||||||
if (turn_params.prometheus == 1) {
|
if (turn_params.prometheus) {
|
||||||
prom_counter_add(stun_binding_response, 1, NULL);
|
prom_counter_add(stun_binding_response, 1, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void prom_inc_stun_binding_error(void) {
|
void prom_inc_stun_binding_error(void) {
|
||||||
if (turn_params.prometheus == 1) {
|
if (turn_params.prometheus) {
|
||||||
prom_counter_add(stun_binding_error, 1, NULL);
|
prom_counter_add(stun_binding_error, 1, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user