summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Joseph <gjoseph@digium.com>2018-03-16 09:19:11 -0600
committerGeorge Joseph <gjoseph@digium.com>2018-03-19 15:36:09 -0600
commit5d097f82367f61bdae7d799c7815e69ba089d6d6 (patch)
tree1e8494dcc9a164a0c6f2615bee6531363d244374 /include
parent5843a197979d10b336a041c6cb8bef90dfa0484a (diff)
channel.c: Allow generic plc then channel formats are equal
If the two formats on a channel are equal, we don't transcode and since the generic plc needs slin to work, it doesn't get invoked. * A new configuration option "genericplc_on_equal_codecs" was added to the "plc" section of codecs.conf to allow generic packet loss concealment even if no transcoding was originally needed. Transcoding via SLIN is forced in this case. ASTERISK-27743 Change-Id: I0577026a179dea34232e63123254b4e0508378f4
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/options.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asterisk/options.h b/include/asterisk/options.h
index 78f596a88..fc366caa5 100644
--- a/include/asterisk/options.h
+++ b/include/asterisk/options.h
@@ -98,6 +98,8 @@ enum ast_option_flags {
AST_OPT_FLAG_LOCK_CONFIG_DIR = (1 << 29),
/*! Generic PLC */
AST_OPT_FLAG_GENERIC_PLC = (1 << 30),
+ /*! Generic PLC onm equal codecs */
+ AST_OPT_FLAG_GENERIC_PLC_ON_EQUAL_CODECS = (1 << 31),
};
/*! These are the options that set by default when Asterisk starts */
@@ -134,6 +136,7 @@ enum ast_option_flags {
#define ast_opt_lock_confdir ast_test_flag(&ast_options, AST_OPT_FLAG_LOCK_CONFIG_DIR)
#define ast_opt_generic_plc ast_test_flag(&ast_options, AST_OPT_FLAG_GENERIC_PLC)
#define ast_opt_ref_debug ast_test_flag(&ast_options, AST_OPT_FLAG_REF_DEBUG)
+#define ast_opt_generic_plc_on_equal_codecs ast_test_flag(&ast_options, AST_OPT_FLAG_GENERIC_PLC_ON_EQUAL_CODECS)
/*! Maximum log level defined by PJPROJECT. */
#define MAX_PJ_LOG_MAX_LEVEL 6