summaryrefslogtreecommitdiff
path: root/include/asterisk/res_fax.h
diff options
context:
space:
mode:
authorJonathan Rose <jrose@digium.com>2014-07-18 15:49:46 +0000
committerJonathan Rose <jrose@digium.com>2014-07-18 15:49:46 +0000
commit5c988cc4e6c5693f03080f88e3057cb7a5358597 (patch)
tree63fc4304613e087700537d6ca35c5f0b1b495508 /include/asterisk/res_fax.h
parentdd23637195bf83d6b4cee2c88caf3c2ae5dbc8a5 (diff)
res_fax: Provide AMI equivalents for fax CLI commands
Specifically the following equivalents were created: fax show session -> FAXSession fax show sessions -> FAXSessions fax show stats -> FAXStats Review: https://reviewboard.asterisk.org/r/3666/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@418911 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/res_fax.h')
-rw-r--r--include/asterisk/res_fax.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asterisk/res_fax.h b/include/asterisk/res_fax.h
index b397bd445..4d1ada6ef 100644
--- a/include/asterisk/res_fax.h
+++ b/include/asterisk/res_fax.h
@@ -29,6 +29,7 @@
#include <asterisk/frame.h>
#include <asterisk/cli.h>
#include <asterisk/stringfields.h>
+#include <asterisk/manager.h>
/*! \brief capabilities for res_fax to locate a fax technology module */
enum ast_fax_capabilities {
@@ -255,6 +256,9 @@ struct ast_fax_tech {
char * (* const cli_show_capabilities)(int);
/*! displays details about the fax session */
char * (* const cli_show_session)(struct ast_fax_session *, int);
+ /*! Generates manager event detailing the fax session */
+ void (* const manager_fax_session)(struct mansession *,
+ const char *, struct ast_fax_session *);
/*! displays statistics from the fax technology module */
char * (* const cli_show_stats)(int);
/*! displays settings from the fax technology module */
@@ -276,6 +280,9 @@ 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 get string representation of a FAX session's operation */
+const char *ast_fax_session_operation_str(struct ast_fax_session *s);
+
/*!
* \brief Log message at FAX or recommended level
*