Dialplan group functions check if a dialplan entry exists.
More...
Go to the source code of this file.
Dialplan group functions check if a dialplan entry exists.
- Author
- Gregory Nietsky AKA irroot grego.nosp@m.ry@n.nosp@m.etwor.nosp@m.ksen.nosp@m.try.c.nosp@m.o.za
-
Russell Bryant russe.nosp@m.ll@d.nosp@m.igium.nosp@m..com
Definition in file func_dialplan.c.
◆ __reg_module()
| static void __reg_module |
( |
void |
| ) |
|
|
static |
◆ __unreg_module()
| static void __unreg_module |
( |
void |
| ) |
|
|
static |
◆ AST_MODULE_SELF_SYM()
◆ isexten_function_read()
| static int isexten_function_read |
( |
struct ast_channel * |
chan, |
|
|
const char * |
cmd, |
|
|
char * |
data, |
|
|
char * |
buf, |
|
|
size_t |
len |
|
) |
| |
|
static |
Definition at line 57 of file func_dialplan.c.
59{
60 char *parse;
65 );
66
68
71 return -1;
72 }
73
76
78 int priority_num;
79 if (sscanf(
args.priority,
"%30d", &priority_num) == 1 && priority_num > 0) {
80 int res;
84 if (res)
86 } else {
87 int res;
91 if (res > 0)
93 }
95 int res;
99 if (res)
104 } else {
106 return -1;
107 }
108
109 return 0;
110}
#define ast_strdupa(s)
duplicate a string in memory from the stack
struct ast_party_caller * ast_channel_caller(struct ast_channel *chan)
#define AST_APP_ARG(name)
Define an application argument.
#define AST_DECLARE_APP_ARGS(name, arglist)
Declare a structure to hold an application's arguments.
#define AST_STANDARD_APP_ARGS(args, parse)
Performs the 'standard' argument separation process for an application.
int ast_findlabel_extension(struct ast_channel *c, const char *context, const char *exten, const char *label, const char *callerid)
Find the priority of an extension that has the specified label.
struct ast_context * ast_context_find(const char *name)
Find a context.
int ast_exists_extension(struct ast_channel *c, const char *context, const char *exten, int priority, const char *callerid)
Determine whether an extension exists.
#define S_COR(a, b, c)
returns the equivalent of logic or for strings, with an additional boolean check: second one if not e...
static force_inline int attribute_pure ast_strlen_zero(const char *s)
References args, AST_APP_ARG, ast_channel_caller(), ast_context_find(), AST_DECLARE_APP_ARGS, ast_exists_extension(), ast_findlabel_extension(), ast_log, AST_STANDARD_APP_ARGS, ast_strdupa, ast_strlen_zero(), buf, ast_channel::context, LOG_ERROR, NULL, priority, and S_COR.
◆ load_module()
| static int load_module |
( |
void |
| ) |
|
|
static |
◆ unload_module()
| static int unload_module |
( |
void |
| ) |
|
|
static |
◆ __mod_info
◆ ast_module_info
◆ isexten_function
Initial value:= {
.name = "DIALPLAN_EXISTS",
.read_max = 2,
}
static int isexten_function_read(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len)
Definition at line 112 of file func_dialplan.c.
112 {
113 .name = "DIALPLAN_EXISTS",
115 .read_max = 2,
116};
Referenced by load_module(), and unload_module().