summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2016-12-02 05:38:05 -0600
committerGerrit Code Review <gerrit2@gerrit.digium.api>2016-12-02 05:38:05 -0600
commit28b76ed66701cf28467e7a91e1451428402814c4 (patch)
tree22c077390583462f1f2c25433c60184ccd436892 /include
parentc3a509be7ebc1e8d2be8077b54474c32131a1187 (diff)
parent44fe4a576968a61fc3c0f6633e5ea9fc2c104105 (diff)
Merge "PJPROJECT logging: Made easier to get available logging levels." into 13
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/options.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/asterisk/options.h b/include/asterisk/options.h
index 21bd7a704..0f8c6f87e 100644
--- a/include/asterisk/options.h
+++ b/include/asterisk/options.h
@@ -132,6 +132,20 @@ 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)
+/*! Maximum log level defined by PJPROJECT. */
+#define MAX_PJ_LOG_MAX_LEVEL 6
+/*!
+ * Normal PJPROJECT active log level used by Asterisk.
+ *
+ * These levels are usually mapped to Error and
+ * Warning Asterisk log levels which shouldn't
+ * normally be suppressed.
+ */
+#define DEFAULT_PJ_LOG_MAX_LEVEL 2
+
+/*! Current pjproject logging level */
+extern int ast_option_pjproject_log_level;
+
extern struct ast_flags ast_options;
extern int option_verbose;