Asterisk - The Open Source Telephony Project
18.5.0
|
IVR Demo application. More...
#include "asterisk.h"
#include "asterisk/file.h"
#include "asterisk/channel.h"
#include "asterisk/pbx.h"
#include "asterisk/module.h"
#include "asterisk/lock.h"
#include "asterisk/app.h"
Go to the source code of this file.
Functions | |
AST_MODULE_INFO_STANDARD_EXTENDED (ASTERISK_GPL_KEY, "IVR Demo Application") | |
static int | ivr_demo_func (struct ast_channel *chan, void *data) |
static int | load_module (void) |
static int | skel_exec (struct ast_channel *chan, const char *data) |
static int | unload_module (void) |
Variables | |
static struct ast_ivr_option | __options_ivr_demo [] = { { "s", AST_ACTION_BACKGROUND, "demo-congrats" }, { "g", AST_ACTION_BACKGROUND, "demo-instruct" }, { "g", AST_ACTION_WAITOPTION }, { "1", AST_ACTION_PLAYBACK, "digits/1" }, { "1", AST_ACTION_RESTART }, { "2", AST_ACTION_MENU, &ivr_submenu }, { "2", AST_ACTION_RESTART }, { "i", AST_ACTION_PLAYBACK, "invalid" }, { "i", AST_ACTION_REPEAT, (void *)(unsigned long)2 }, { "#", AST_ACTION_EXIT }, { NULL }, } |
static struct ast_ivr_option | __options_ivr_submenu [] = { { "s", AST_ACTION_BACKGROUND, "demo-abouttotry" }, { "s", AST_ACTION_WAITOPTION }, { "1", AST_ACTION_PLAYBACK, "digits/1" }, { "1", AST_ACTION_PLAYBACK, "digits/1" }, { "1", AST_ACTION_RESTART }, { "2", AST_ACTION_PLAYLIST, "digits/2;digits/3" }, { "3", AST_ACTION_CALLBACK, ivr_demo_func }, { "4", AST_ACTION_TRANSFER, "demo|s|1" }, { "*", AST_ACTION_REPEAT }, { "#", AST_ACTION_UPONE }, { NULL } } |
static char * | app = "IVRDemo" |
static struct ast_ivr_menu | ivr_demo = { "IVR Demo Main Menu" , 0 , __options_ivr_demo } |
static struct ast_ivr_menu | ivr_submenu = { "IVR Demo Sub Menu" , 0 , __options_ivr_submenu } |
IVR Demo application.
Definition in file app_ivrdemo.c.
AST_MODULE_INFO_STANDARD_EXTENDED | ( | ASTERISK_GPL_KEY | , |
"IVR Demo Application" | |||
) |
Referenced by load_module().
|
static |
Definition at line 59 of file app_ivrdemo.c.
References AST_ACTION_BACKGROUND, AST_ACTION_CALLBACK, AST_ACTION_PLAYBACK, AST_ACTION_PLAYLIST, AST_ACTION_REPEAT, AST_ACTION_RESTART, AST_ACTION_TRANSFER, AST_ACTION_UPONE, AST_ACTION_WAITOPTION, AST_IVR_DECLARE_MENU, ast_verbose(), ivr_submenu, and NULL.
|
static |
Definition at line 122 of file app_ivrdemo.c.
References app, AST_MODULE_INFO_STANDARD_EXTENDED(), ast_register_application_xml, ASTERISK_GPL_KEY, and skel_exec().
|
static |
Definition at line 95 of file app_ivrdemo.c.
References ast_answer(), ast_ivr_menu_run(), ast_log, AST_STATE_UP, ast_strdupa, ast_strlen_zero, ivr_demo, LOG_WARNING, and tmp().
Referenced by load_module().
|
static |
Definition at line 117 of file app_ivrdemo.c.
References app, and ast_unregister_application().
|
static |
Definition at line 93 of file app_ivrdemo.c.
|
static |
Definition at line 78 of file app_ivrdemo.c.
|
static |
Definition at line 57 of file app_ivrdemo.c.
Referenced by load_module(), and unload_module().
|
static |
Definition at line 93 of file app_ivrdemo.c.
Referenced by skel_exec().
|
static |
Definition at line 78 of file app_ivrdemo.c.
Referenced by ivr_demo_func().