mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-14 16:33:34 +00:00
Fix typos (bug #3381)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4855 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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,10 +1318,14 @@ static int retrydial_exec(struct ast_channel *chan, void *data)
|
||||
} else {
|
||||
if (!(res = ast_streamfile(chan, announce, chan->language)))
|
||||
res = ast_waitstream(chan, "");
|
||||
if (sleep) {
|
||||
if (!ast_test_flag(chan, AST_FLAG_MOH))
|
||||
ast_moh_start(chan, NULL);
|
||||
if (!res)
|
||||
res = ast_safe_sleep(chan, sleep);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (res < 0)
|
||||
break;
|
||||
|
Reference in New Issue
Block a user