Get the state of a hinted extension for dialplan control.
More...
Go to the source code of this file.
Get the state of a hinted extension for dialplan control.
- Author
- Adam Gundy adam@.nosp@m.star.nosp@m.silk..nosp@m.net
Definition in file func_extstate.c.
◆ __reg_module()
| static void __reg_module |
( |
void |
| ) |
|
|
static |
◆ __unreg_module()
| static void __unreg_module |
( |
void |
| ) |
|
|
static |
◆ ast_extstate_str()
| static const char * ast_extstate_str |
( |
int |
state | ) |
|
|
static |
◆ AST_MODULE_SELF_SYM()
◆ extstate_read()
| static int extstate_read |
( |
struct ast_channel * |
chan, |
|
|
const char * |
cmd, |
|
|
char * |
data, |
|
|
char * |
buf, |
|
|
size_t |
len |
|
) |
| |
|
static |
Definition at line 101 of file func_extstate.c.
103{
105
108 return -1;
109 }
110
115
118 return -1;
119 }
120
123
124 return 0;
125}
char * strsep(char **str, const char *delims)
static const char * ast_extstate_str(int state)
static int len(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen)
int ast_extension_state(struct ast_channel *c, const char *context, const char *exten)
Uses hint and devicestate callback to get the state of an extension.
static force_inline int attribute_pure ast_strlen_zero(const char *s)
void ast_copy_string(char *dst, const char *src, size_t size)
Size-limited null-terminating string copy.
References ast_copy_string(), ast_extension_state(), ast_extstate_str(), ast_log, ast_strlen_zero(), buf, len(), LOG_WARNING, and strsep().
◆ load_module()
| static int load_module |
( |
void |
| ) |
|
|
static |
◆ unload_module()
| static int unload_module |
( |
void |
| ) |
|
|
static |
◆ __mod_info
◆ ast_module_info
◆ extstate_function
Initial value:= {
.name = "EXTENSION_STATE",
.read_max = 12,
}
static int extstate_read(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len)
Definition at line 127 of file func_extstate.c.
127 {
128 .name = "EXTENSION_STATE",
130 .read_max = 12,
131};
Referenced by load_module(), and unload_module().