diff options
author | Russell Bryant <russell@russellbryant.com> | 2005-06-01 18:02:46 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2005-06-01 18:02:46 +0000 |
commit | 367fd1d3cf0cef7f31e37dff06e235914de5bf28 (patch) | |
tree | a081a111dc73e279ce5ca89e86c51eef718f8384 | |
parent | 9d379a36d0a1e0b80741507501268d1c5ef748f7 (diff) |
fix the one digit exit extension for RetryDial
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5807 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rwxr-xr-x | apps/app_dial.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c index bc0bb9c26..021405858 100755 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -210,13 +210,13 @@ static int onedigit_goto(struct ast_channel *chan, char *context, char exten, in char rexten[2] = { exten, '\0' }; if (context) { - if (ast_goto_if_exists(chan, context, rexten, pri)) + if (!ast_goto_if_exists(chan, context, rexten, pri)) return 1; } else { - if (ast_goto_if_exists(chan, chan->context, rexten, pri)) + if (!ast_goto_if_exists(chan, chan->context, rexten, pri)) return 1; else if (!ast_strlen_zero(chan->macrocontext)) { - if (ast_goto_if_exists(chan, chan->macrocontext, rexten, pri)) + if (!ast_goto_if_exists(chan, chan->macrocontext, rexten, pri)) return 1; } } @@ -1439,7 +1439,7 @@ static int retrydial_exec(struct ast_channel *chan, void *data) if (!ast_test_flag(chan, AST_FLAG_MOH)) ast_moh_start(chan, NULL); if (!res) - res = ast_safe_sleep(chan, sleep); + res = ast_waitfordigit(chan, sleep); } } } |