37 #include "asterisk/file.h"
59 static char *
app =
"IVRDemo";
63 ast_verbose(
"IVR Demo, data is %s!\n", (
char *) data);
Main Channel structure associated with a channel.
#define AST_MODULE_INFO_STANDARD(keystr, desc)
Asterisk locking-related definitions:
Asterisk main include file. File version handling, generic pbx functions.
void ast_verbose(const char *fmt,...)
#define AST_IVR_DECLARE_MENU(holder, title, flags, foo...)
static struct ast_ivr_menu ivr_submenu
int ast_unregister_application(const char *app)
Unregister an application.
General Asterisk PBX channel definitions.
static force_inline int attribute_pure ast_strlen_zero(const char *s)
Core PBX routines and definitions.
#define ast_strdupa(s)
duplicate a string in memory from the stack
static int unload_module(void)
static int ivr_demo_func(struct ast_channel *chan, void *data)
enum ast_channel_state _state
void ast_log(int level, const char *file, int line, const char *function, const char *fmt,...)
Used for sending a log message This is the standard logger function. Probably the only way you will i...
int ast_ivr_menu_run(struct ast_channel *c, struct ast_ivr_menu *menu, void *cbdata)
Runs an IVR menu.
static int skel_exec(struct ast_channel *chan, const char *data)
int ast_answer(struct ast_channel *chan)
Answer a channel.
Application convenience functions, designed to give consistent look and feel to Asterisk apps...
static int load_module(void)
static struct ast_ivr_menu ivr_demo
#define ASTERISK_GPL_KEY
The text the key() function should return.
Asterisk module definitions.
union ast_frame::@172 data
#define ast_register_application_xml(app, execute)
Register an application using XML documentation.
#define ASTERISK_FILE_VERSION(file, version)
Register/unregister a source code file with the core.