Skip to content
Snippets Groups Projects
Commit 03f39d5a authored by Kevin P. Fleming's avatar Kevin P. Fleming
Browse files

ensure that TRANSFERSTATUS can return FAILURE (issue #5146)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6542 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 9a4c8f8c
Branches
Tags
No related merge requests found
...@@ -90,10 +90,11 @@ static int transfer_exec(struct ast_channel *chan, void *data) ...@@ -90,10 +90,11 @@ static int transfer_exec(struct ast_channel *chan, void *data)
res = ast_transfer(chan, dest); res = ast_transfer(chan, dest);
if (!res) { if (res < 0) {
status = "FAILURE"; status = "FAILURE";
if (option_priority_jumping) if (option_priority_jumping)
ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 101); ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 101);
res = 0;
} else { } else {
status = "SUCCESS"; status = "SUCCESS";
res = 0; res = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment