65 static const char app[] =
"ChannelRedirect";
67 static int asyncgoto_exec(
struct ast_channel *chan,
const char *data)
78 if (ast_strlen_zero(data)) {
79 ast_log(LOG_WARNING,
"%s requires an argument (channel,[[context,]exten,]priority)\n", app);
86 if (ast_strlen_zero(args.channel) || ast_strlen_zero(args.label)) {
87 ast_log(LOG_WARNING,
"%s requires an argument (channel,[[context,]exten,]priority)\n", app);
92 ast_log(LOG_WARNING,
"No such channel: %s\n", args.channel);
106 static int unload_module(
void)
111 static int load_module(
void)
117 AST_MODULE_INFO_STANDARD(
ASTERISK_GPL_KEY,
"Redirects a given channel to a dialplan target");
Main Channel structure associated with a channel.
Asterisk locking-related definitions:
Asterisk main include file. File version handling, generic pbx functions.
#define ast_channel_unref(c)
Decrease channel reference count.
#define AST_STANDARD_APP_ARGS(args, parse)
Performs the 'standard' argument separation process for an application.
Generic File Format Support. Should be included by clients of the file handling routines. File service providers should instead include mod_format.h.
int ast_unregister_application(const char *app)
Unregister an application.
General Asterisk PBX channel definitions.
#define ast_strdupa(s)
duplicate a string in memory from the stack
Core PBX routines and definitions.
Module has failed to load, may be in an inconsistent state.
int ast_async_parseable_goto(struct ast_channel *chan, const char *goto_string)
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...
Call Parking and Pickup API Includes code and algorithms from the Zapata library. ...
#define ASTERISK_GPL_KEY
The text the key() function should return.
struct ast_channel * ast_channel_get_by_name(const char *name)
Find a channel by name.
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...
#define ast_register_application_xml(app, execute)
Register an application using XML documentation.
#define AST_APP_ARG(name)
Define an application argument.