57 static char *
app =
"IVRDemo";
61 ast_verbose(
"IVR Demo, data is %s!\n", (
char *) data);
65 AST_IVR_DECLARE_MENU(ivr_submenu,
"IVR Demo Sub Menu", 0,
80 AST_IVR_DECLARE_MENU(ivr_demo,
"IVR Demo Main Menu", 0,
95 static int skel_exec(
struct ast_channel *chan,
const char *data)
100 if (ast_strlen_zero(data)) {
101 ast_log(LOG_WARNING,
"skel requires an argument (filename)\n");
117 static int unload_module(
void)
122 static int load_module(
void)
127 AST_MODULE_INFO_STANDARD_EXTENDED(
ASTERISK_GPL_KEY,
"IVR Demo Application");
Main Channel structure associated with a channel.
Asterisk locking-related definitions:
Asterisk main include file. File version handling, generic pbx functions.
ast_channel_state
ast_channel states
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.
int ast_ivr_menu_run(struct ast_channel *c, struct ast_ivr_menu *menu, void *cbdata)
Runs an IVR menu.
General Asterisk PBX channel definitions.
#define ast_strdupa(s)
duplicate a string in memory from the stack
Core PBX routines and definitions.
int ast_answer(struct ast_channel *chan)
Answer a channel.
#define ASTERISK_GPL_KEY
The text the key() function should return.
Asterisk module definitions.
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.