48 ast_debug(3,
"%s: Sending answer command\n",
54 ast_log(LOG_WARNING,
"%s: Failed to answer channel\n",
62 static int load_module(
void)
67 static int unload_module(
void)
72 AST_MODULE_INFO(
ASTERISK_GPL_KEY, AST_MODFLAG_GLOBAL_SYMBOLS,
"Stasis application answer support",
73 .support_level = AST_MODULE_SUPPORT_CORE,
75 .unload = unload_module,
76 .requires =
"res_stasis",
Main Channel structure associated with a channel.
Asterisk main include file. File version handling, generic pbx functions.
int stasis_app_send_command(struct stasis_app_control *control, stasis_app_command_cb command, void *data, command_data_destructor_fn data_destructor)
Invokes a command on a control's channel.
int ast_raw_answer(struct ast_channel *chan)
Answer a channel.
int stasis_app_control_answer(struct stasis_app_control *control)
Answer the channel associated with this control.
#define ast_debug(level,...)
Log a DEBUG message.
Backend API for implementing components of res_stasis.
const char * stasis_app_control_get_channel_id(const struct stasis_app_control *control)
Returns the uniqueid of the channel associated with this control.
#define ASTERISK_GPL_KEY
The text the key() function should return.
Asterisk module definitions.