/* 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 {
/* 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 {