diff options
author | Joshua Colp <jcolp@digium.com> | 2007-06-04 17:43:21 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2007-06-04 17:43:21 +0000 |
commit | 6e6d4be830d67681b9033f26f1305e16218b373a (patch) | |
tree | 87afb8503896b8c9d74aa9e4aebc67f4e728ef29 | |
parent | d84f78ac04e85f8c7872a437da330fadc2922f86 (diff) |
Merged revisions 67064 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r67064 | file | 2007-06-04 13:41:59 -0400 (Mon, 04 Jun 2007) | 2 lines
Returning a value that indicates the parking of a call was a success when it really wasn't (because the parking slot selected was in use) is the wrong thing to do. (issue #9723 reported by mdu113)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@67065 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | res/res_features.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_features.c b/res/res_features.c index 28b41de30..5efc9e839 100644 --- a/res/res_features.c +++ b/res/res_features.c @@ -377,7 +377,7 @@ int ast_park_call(struct ast_channel *chan, struct ast_channel *peer, int timeou ast_mutex_unlock(&parking_lock); free(pu); ast_log(LOG_WARNING, "Requested parking extension already exists: %s@%s\n", parkingexten, parking_con); - return 0; /* Continue execution if possible */ + return -1; /* We failed to park this call, plain and simple so we need to error out */ } ast_copy_string(pu->parkingexten, parkingexten, sizeof(pu->parkingexten)); x = atoi(parkingexten); |