summaryrefslogtreecommitdiff
path: root/channels/misdn/chan_misdn_config.h
diff options
context:
space:
mode:
authorChristian Richter <christian.richter@beronet.com>2006-07-03 16:41:43 +0000
committerChristian Richter <christian.richter@beronet.com>2006-07-03 16:41:43 +0000
commitf629ae18724cb4148a9fa0679a51aac7d8dfd3ab (patch)
tree377bb87fd14f18fa719bdf0b6e2824fc5c5f2eb6 /channels/misdn/chan_misdn_config.h
parentc6ab7e7164c30e41fea00186c0d3af7eb618fe06 (diff)
added misdn show config description[s] to show all the possible misdn.conf settings with a description in the CLI
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@36865 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/misdn/chan_misdn_config.h')
-rw-r--r--channels/misdn/chan_misdn_config.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/channels/misdn/chan_misdn_config.h b/channels/misdn/chan_misdn_config.h
index d60ea6973..9f9e7ab17 100644
--- a/channels/misdn/chan_misdn_config.h
+++ b/channels/misdn/chan_misdn_config.h
@@ -60,6 +60,7 @@ enum misdn_cfg_elements {
MISDN_CFG_MAX_OUT, /* int */
MISDN_CFG_MSNS, /* char[] */
MISDN_CFG_PTP, /* int (bool) */
+ MISDN_CFG_FAXDETECT, /* char[] */
MISDN_CFG_LAST,
/* general config items */
@@ -96,6 +97,15 @@ void misdn_cfg_update_ptp( void );
* case of a char* only its first byte will be nulled). */
void misdn_cfg_get(int port, enum misdn_cfg_elements elem, void* buf, int bufsize);
+/* returns the enum element for the given name, returns MISDN_CFG_FIRST if none was found */
+enum misdn_cfg_elements misdn_cfg_get_elem (char *name);
+
+/* fills the buffer with the name of the given config element */
+void misdn_cfg_get_name (enum misdn_cfg_elements elem, void *buf, int bufsize);
+
+/* fills the buffer with the description of the given config element */
+void misdn_cfg_get_desc (enum misdn_cfg_elements elem, void *buf, int bufsize, void *buf_default, int bufsize_default);
+
/* fills the buffer with a ',' separated list of all active ports */
void misdn_cfg_get_ports_string(char *ports);