diff options
author | Mark Spencer <markster@digium.com> | 2005-01-20 22:59:50 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2005-01-20 22:59:50 +0000 |
commit | 8a1906619f72178f7e75565a1f90413461091281 (patch) | |
tree | 256a4e9ccd315aaece87bbd66b57f39b14cfc301 | |
parent | e3da507a4465beee8da8c7ae5e7f37986ae60936 (diff) |
Fix typos (bug #3381)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4855 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rwxr-xr-x | apps/app_dial.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c index 810fec762..6eb4f17e8 100755 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -1306,11 +1306,11 @@ static int retrydial_exec(struct ast_channel *chan, void *data) if (ast_test_flag(chan, AST_FLAG_MOH)) ast_moh_stop(chan); - if ((res = dial_exec(chan, dialdata)) == 0) { + if ((res = dial_exec_full(chan, dialdata, &peerflags)) == 0) { if (ast_test_flag(&peerflags, DIAL_HALT_ON_DTMF)) { if (!(res = ast_streamfile(chan, announce, chan->language))) res = ast_waitstream(chan, AST_DIGIT_ANY); - if (!res) { + if (!res && sleep) { if (!ast_test_flag(chan, AST_FLAG_MOH)) ast_moh_start(chan, NULL); res = ast_waitfordigit(chan, sleep); @@ -1318,8 +1318,12 @@ static int retrydial_exec(struct ast_channel *chan, void *data) } else { if (!(res = ast_streamfile(chan, announce, chan->language))) res = ast_waitstream(chan, ""); - if (!res) - res = ast_safe_sleep(chan, sleep); + if (sleep) { + if (!ast_test_flag(chan, AST_FLAG_MOH)) + ast_moh_start(chan, NULL); + if (!res) + res = ast_safe_sleep(chan, sleep); + } } } |