mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 20:56:39 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user