diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2005-09-07 21:39:53 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2005-09-07 21:39:53 +0000 |
commit | 03f39d5a1e6318ddd9e1895a011046b1743b8a27 (patch) | |
tree | 15b2b065cb042fbfa1b9e147b71c82ec46ca32b8 /apps | |
parent | 9a4c8f8c9cffb9e5d405f7ae73365c48f37e0dc5 (diff) |
ensure that TRANSFERSTATUS can return FAILURE (issue #5146)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6542 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/app_transfer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/app_transfer.c b/apps/app_transfer.c index e1eff2b72..61f2b9d03 100755 --- a/apps/app_transfer.c +++ b/apps/app_transfer.c @@ -90,10 +90,11 @@ static int transfer_exec(struct ast_channel *chan, void *data) res = ast_transfer(chan, dest); - if (!res) { + if (res < 0) { status = "FAILURE"; if (option_priority_jumping) ast_goto_if_exists(chan, chan->context, chan->exten, chan->priority + 101); + res = 0; } else { status = "SUCCESS"; res = 0; |