diff options
author | Joshua Colp <jcolp@digium.com> | 2016-12-02 05:37:38 -0600 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2016-12-02 05:37:38 -0600 |
commit | 197e4083950721861f4377ffb1d4a798a0fcbc0e (patch) | |
tree | b41fefdddc203b56ab1bbee17c3e1e1563168ee0 /include/asterisk | |
parent | a2343aa20049f1d7174aa599b093a7206155cffb (diff) | |
parent | 1dfa11b65cd3bd768605eb7779214e4330f52ed3 (diff) |
Merge "PJPROJECT logging: Made easier to get available logging levels."
Diffstat (limited to 'include/asterisk')
-rw-r--r-- | include/asterisk/options.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/asterisk/options.h b/include/asterisk/options.h index 345bacf6c..ff35c16c4 100644 --- a/include/asterisk/options.h +++ b/include/asterisk/options.h @@ -132,6 +132,20 @@ enum ast_option_flags { #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) +/*! 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; |