summaryrefslogtreecommitdiff
path: root/apps/app_dial.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_dial.c')
-rw-r--r--apps/app_dial.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c
index 99d00f13c..6d2437ad3 100644
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
@@ -2884,8 +2884,9 @@ static int dial_exec_full(struct ast_channel *chan, const char *data, struct ast
/* perform a transfer to a new extension */
if (strchr(macro_transfer_dest, '^')) { /* context^exten^priority*/
ast_replace_subargument_delimiter(macro_transfer_dest);
- if (!ast_parseable_goto(chan, macro_transfer_dest))
- ast_set_flag64(peerflags, OPT_GO_ON);
+ }
+ if (!ast_parseable_goto(chan, macro_transfer_dest)) {
+ ast_set_flag64(peerflags, OPT_GO_ON);
}
}
} else {
@@ -2965,8 +2966,9 @@ static int dial_exec_full(struct ast_channel *chan, const char *data, struct ast
/* perform a transfer to a new extension */
if (strchr(gosub_transfer_dest, '^')) { /* context^exten^priority*/
ast_replace_subargument_delimiter(gosub_transfer_dest);
- if (!ast_parseable_goto(chan, gosub_transfer_dest))
- ast_set_flag64(peerflags, OPT_GO_ON);
+ }
+ if (!ast_parseable_goto(chan, gosub_transfer_dest)) {
+ ast_set_flag64(peerflags, OPT_GO_ON);
}
}
} else {