|
|
|
@ -34,20 +34,20 @@ static int ivr_demo_func(struct ast_channel *chan, void *data)
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static struct ast_ivr_menu ivr_submenu = {
|
|
|
|
|
"IVR Demo Sub Menu", 0, {
|
|
|
|
|
{ "s", AST_ACTION_BACKGROUND, "demo-abouttotry" },
|
|
|
|
|
{ "1", AST_ACTION_PLAYBACK, "digits/1" },
|
|
|
|
|
{ "1", AST_ACTION_PLAYBACK, "digits/1" },
|
|
|
|
|
{ "1", AST_ACTION_RESTART },
|
|
|
|
|
{ "2", AST_ACTION_PLAYLIST, "digits/2;digits/3" },
|
|
|
|
|
{ "*", AST_ACTION_REPEAT },
|
|
|
|
|
{ "#", AST_ACTION_UPONE },
|
|
|
|
|
{ NULL },
|
|
|
|
|
}};
|
|
|
|
|
AST_IVR_DECLARE_MENU(ivr_submenu, "IVR Demo Sub Menu", 0,
|
|
|
|
|
{
|
|
|
|
|
{ "s", AST_ACTION_BACKGROUND, "demo-abouttotry" },
|
|
|
|
|
{ "1", AST_ACTION_PLAYBACK, "digits/1" },
|
|
|
|
|
{ "1", AST_ACTION_PLAYBACK, "digits/1" },
|
|
|
|
|
{ "1", AST_ACTION_RESTART },
|
|
|
|
|
{ "2", AST_ACTION_PLAYLIST, "digits/2;digits/3" },
|
|
|
|
|
{ "*", AST_ACTION_REPEAT },
|
|
|
|
|
{ "#", AST_ACTION_UPONE },
|
|
|
|
|
{ NULL }
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
static struct ast_ivr_menu ivr_demo = {
|
|
|
|
|
"IVR Demo Main Menu", 0, {
|
|
|
|
|
AST_IVR_DECLARE_MENU(ivr_demo, "IVR Demo Main Menu", 0,
|
|
|
|
|
{
|
|
|
|
|
{ "s", AST_ACTION_BACKGROUND, "demo-congrats" },
|
|
|
|
|
{ "g", AST_ACTION_BACKGROUND, "demo-instruct" },
|
|
|
|
|
{ "g", AST_ACTION_WAITOPTION },
|
|
|
|
@ -59,7 +59,7 @@ static struct ast_ivr_menu ivr_demo = {
|
|
|
|
|
{ "i", AST_ACTION_REPEAT, (void *)2 },
|
|
|
|
|
{ "#", AST_ACTION_EXIT },
|
|
|
|
|
{ NULL },
|
|
|
|
|
}};
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
STANDARD_LOCAL_USER;
|
|
|
|
|
|
|
|
|
|