Browse Source

MT#55283 change amr_cn_dtx option to bool

Change-Id: Ife3d89d8c133b14bf42b6c3468675a6147882681
pull/1912/head
Richard Fuchs 10 months ago
parent
commit
7e30f816e4
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      daemon/main.c
  2. +2
    -2
      include/main.h

+ 1
- 1
daemon/main.c View File

@ -1156,7 +1156,7 @@ static void options(int *argc, char ***argv, charp_ht templates) {
if (amr_dtx) {
if (!strcasecmp(amr_dtx, "native")) {}
else if (!strcasecmp(amr_dtx, "CN"))
rtpe_config.amr_cn_dtx = 1;
rtpe_config.amr_cn_dtx = true;
else
die("Invalid --amr-dtx ('%s')", amr_dtx);
}


+ 2
- 2
include/main.h View File

@ -81,7 +81,6 @@ enum endpoint_learning {
X(dtx_buffer) \
X(dtx_lag) \
X(dtx_shift) \
X(amr_cn_dtx) \
X(kernel_player) \
X(kernel_player_media) \
X(audio_buffer_length) \
@ -122,7 +121,8 @@ enum endpoint_learning {
X(player_cache) \
X(poller_per_thread) \
X(redis_resolve_on_reconnect) \
X(measure_rtp)
X(measure_rtp) \
X(amr_cn_dtx) \
#define RTPE_CONFIG_CHARP_PARAMS \
X(b2b_url) \


Loading…
Cancel
Save