diff options
author | Russell Bryant <russell@russellbryant.com> | 2007-06-12 15:58:28 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2007-06-12 15:58:28 +0000 |
commit | 9e0458e9f15c7a882cc546848c5ab3a0532f7cd1 (patch) | |
tree | ee41d7e2d18ab41d762c5cc8ed93419808507cbd /apps/app_controlplayback.c | |
parent | d0eaf1e3893cca69a78c6f80e247d43afc081520 (diff) |
Completely remove all of the code related to jumping to priority n + 101. yay!
(issue #9926, caio1982)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@68970 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_controlplayback.c')
-rw-r--r-- | apps/app_controlplayback.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/apps/app_controlplayback.c b/apps/app_controlplayback.c index 73a800479..360f9b165 100644 --- a/apps/app_controlplayback.c +++ b/apps/app_controlplayback.c @@ -61,7 +61,6 @@ static const char *descrip = " pause - Pause playback when this DTMF digit is received.\n" " restart - Restart playback when this DTMF digit is received.\n" "Options:\n" -" j - Jump to priority n+101 if the requested file is not found.\n" " o(#) - Start at # ms from the beginning of the file.\n" "This application sets the following channel variables upon completion:\n" " CPLAYBACKSTATUS - This variable contains the status of the attempt as a text\n" @@ -70,7 +69,6 @@ static const char *descrip = " playback was at when it stopped. -1 is end of file.\n"; enum { - OPT_JUMP = (1 << 0), OPT_OFFSET = (1 << 1), }; @@ -81,7 +79,6 @@ enum { }; AST_APP_OPTIONS(cpb_opts, BEGIN_OPTIONS - AST_APP_OPTION('j', OPT_JUMP), AST_APP_OPTION_ARG('o', OPT_OFFSET, OPT_ARG_OFFSET), END_OPTIONS ); @@ -159,11 +156,6 @@ static int controlplayback_exec(struct ast_channel *chan, void *data) pbx_builtin_setvar_helper(chan, "CPLAYBACKSTATUS", "USERSTOPPED"); } else { if (res < 0) { - if (ast_test_flag(&opts, OPT_JUMP) || ast_opt_priority_jumping) { - if (ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 101)) { - ast_log(LOG_WARNING, "ControlPlayback tried to jump to priority n+101 as requested, but priority didn't exist\n"); - } - } res = 0; pbx_builtin_setvar_helper(chan, "CPLAYBACKSTATUS", "ERROR"); } else |