80 static const char *
stasis =
"Stasis";
93 ast_assert(chan != NULL);
94 ast_assert(data != NULL);
103 ast_log(LOG_WARNING,
"Stasis app_name argument missing\n");
126 static int load_module(
void)
131 static int unload_module(
void)
136 AST_MODULE_INFO(
ASTERISK_GPL_KEY, AST_MODFLAG_DEFAULT,
"Stasis dialplan application",
137 .support_level = AST_MODULE_SUPPORT_CORE,
139 .unload = unload_module,
140 .requires =
"res_stasis",
Main Channel structure associated with a channel.
Asterisk main include file. File version handling, generic pbx functions.
#define MAX_ARGS
Maximum number of arguments for the Stasis dialplan application.
#define AST_STANDARD_APP_ARGS(args, parse)
Performs the 'standard' argument separation process for an application.
Stasis Message Bus API. See Stasis Message Bus API for detailed documentation.
int stasis_app_exec(struct ast_channel *chan, const char *app_name, int argc, char *argv[])
Control a channel using stasis_app.
int ast_unregister_application(const char *app)
Unregister an application.
#define ast_strdupa(s)
duplicate a string in memory from the stack
Core PBX routines and definitions.
int ast_check_hangup(struct ast_channel *chan)
Check to see if a channel is needing hang up.
Backend API for implementing components of res_stasis.
const char * app_name(struct ast_app *app)
static const char * stasis
Dialplan application name.
int pbx_builtin_setvar_helper(struct ast_channel *chan, const char *name, const char *value)
Add a variable to the channel variable stack, removing the most recently set value for the same name...
#define ASTERISK_GPL_KEY
The text the key() function should return.
Asterisk module definitions.
#define AST_DECLARE_APP_ARGS(name, arglist)
Declare a structure to hold an application's arguments.
Application convenience functions, designed to give consistent look and feel to Asterisk apps...
static int app_exec(struct ast_channel *chan, const char *data)
Stasis dialplan application callback.
#define ast_register_application_xml(app, execute)
Register an application using XML documentation.
#define AST_APP_ARG(name)
Define an application argument.