diff options
author | crichter <crichter@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-07-03 16:41:43 +0000 |
---|---|---|
committer | crichter <crichter@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-07-03 16:41:43 +0000 |
commit | 69b854b61fedcf0d2ec4e6126ca2d9e66bff7620 (patch) | |
tree | 377bb87fd14f18fa719bdf0b6e2824fc5c5f2eb6 /channels/misdn | |
parent | 53e5a081367f5e08c2c376bb8273dace3d90bd9f (diff) |
added misdn show config description[s] to show all the possible misdn.conf settings with a description in the CLI
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@36865 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/misdn')
-rw-r--r-- | channels/misdn/chan_misdn_config.h | 10 |
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); |