diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-05-21 15:15:58 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-05-21 15:15:58 +0000 |
commit | e8592e128a3c7abb2a56626dbdeaebec354c0f5e (patch) | |
tree | 37c899cf6cf183ae2d3609da82fba035ebfb7ff3 /include | |
parent | ed8784131530b7759259c43e960939b2bc882061 (diff) |
Log spandsp's fax debug output to the FAX logger level.
Review: https://reviewboard.asterisk.org/r/658
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@264953 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/res_fax.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/asterisk/res_fax.h b/include/asterisk/res_fax.h index 9d83f6c2d..8e8cb3b92 100644 --- a/include/asterisk/res_fax.h +++ b/include/asterisk/res_fax.h @@ -256,4 +256,15 @@ unsigned int ast_fax_maxrate(void); /*! \brief convert an ast_fax_state to a string */ const char *ast_fax_state_to_str(enum ast_fax_state state); +/*! + * \brief Log message at FAX or recommended level + * + * The first four parameters can be represented with Asterisk's + * LOG_* levels. In other words, this function may be called + * like + * + * ast_fax_log(LOG_DEBUG, msg); + */ +void ast_fax_log(int level, const char *file, const int line, const char *function, const char *msg); + #endif |