summaryrefslogtreecommitdiff
path: root/apps/app_ivrdemo.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2005-03-05 21:06:26 +0000
committerMark Spencer <markster@digium.com>2005-03-05 21:06:26 +0000
commit1bb8d529383c3db2eaa397c50485f1c039a579c3 (patch)
tree638aa9e546385902b2271111812167e5adcea32e /apps/app_ivrdemo.c
parent77b84426066654ab673077ce16e2ccf2717c6ff1 (diff)
Flush out app stuff, make profiling easier to turn on/off
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5150 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_ivrdemo.c')
-rwxr-xr-xapps/app_ivrdemo.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/apps/app_ivrdemo.c b/apps/app_ivrdemo.c
index 4dc64f38f..f1a9f086f 100755
--- a/apps/app_ivrdemo.c
+++ b/apps/app_ivrdemo.c
@@ -36,14 +36,17 @@ static int ivr_demo_func(struct ast_channel *chan, void *data)
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 }
+ { "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 }
});
AST_IVR_DECLARE_MENU(ivr_demo, "IVR Demo Main Menu", 0,
@@ -56,7 +59,7 @@ AST_IVR_DECLARE_MENU(ivr_demo, "IVR Demo Main Menu", 0,
{ "2", AST_ACTION_MENU, &ivr_submenu },
{ "2", AST_ACTION_RESTART },
{ "i", AST_ACTION_PLAYBACK, "invalid" },
- { "i", AST_ACTION_REPEAT, (void *)2 },
+ { "i", AST_ACTION_REPEAT, (void *)(unsigned long)2 },
{ "#", AST_ACTION_EXIT },
{ NULL },
});