]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Returning a value that indicates the parking of a call was a success when it really...
authorJoshua Colp <jcolp@digium.com>
Mon, 4 Jun 2007 17:41:59 +0000 (17:41 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 4 Jun 2007 17:41:59 +0000 (17:41 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@67064 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_features.c

index 879b2b59134076b4a82362717cc4798d9350315f..9ffc2861d97fbf3443cbfb525d3037c2d4d8ce46 100644 (file)
@@ -328,7 +328,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);