diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-12 15:58:28 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-12 15:58:28 +0000 |
commit | a07711cda280cfad96812b1ad6280c6b18622aad (patch) | |
tree | ee41d7e2d18ab41d762c5cc8ed93419808507cbd /apps/app_controlplayback.c | |
parent | 34747bbb823024dbcf78944dc0d7724d1c65fef4 (diff) |
Completely remove all of the code related to jumping to priority n + 101. yay!
(issue #9926, caio1982)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@68970 f38db490-d61c-443f-a65b-d21fe96a405b
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 |