aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-06-01 18:02:46 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-06-01 18:02:46 +0000
commit97e47b00376e959a15e01a6cf586b99877e0d6c8 (patch)
treea081a111dc73e279ce5ca89e86c51eef718f8384 /apps
parent792fde9ad6edba4fae537e62dadaa6a3e4d1a0d1 (diff)
fix the one digit exit extension for RetryDial
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5807 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_dial.c8
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);
}
}
}