From b0e9d400ff21d81ded2dd39df3288f291f9c76dd Mon Sep 17 00:00:00 2001 From: Jason Parker Date: Tue, 13 Nov 2007 19:47:45 +0000 Subject: [PATCH] Revert change from revision 67064. It is documented behavior that if a parking extension already exists while using PARKINGEXTEN, dialplan execution will continue. If blind transferring to a Park with PARKINGEXTEN, you must keep this in mind, and handle the failure yourself. Issue 11237, reported by jon. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@89248 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_features.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/res_features.c b/res/res_features.c index 1aa1b80210..ab94223067 100644 --- a/res/res_features.c +++ b/res/res_features.c @@ -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 -1; /* We failed to park this call, plain and simple so we need to error out */ + return 0; /* Continue execution if possible */ } ast_copy_string(pu->parkingexten, parkingexten, sizeof(pu->parkingexten)); x = atoi(parkingexten); -- 2.47.3