--- res_features.c.org 2007-09-22 16:03:36.000000000 -0700 +++ res_features.c 2007-09-23 10:08:12.000000000 -0700 @@ -138,7 +138,7 @@ "Used to connect to a parked call. This application is always\n" "registered internally and does not need to be explicitly added\n" "into the dialplan, although you should include the 'parkedcalls'\n" -"context.\n"; +"context. Use current parking exten to grab first available call.\n"; static char *parkcall = "Park"; @@ -2246,7 +2246,7 @@ struct ast_bridge_config config; if (!data) { - ast_log(LOG_WARNING, "Parkedcall requires an argument (extension number)\n"); + ast_log(LOG_WARNING, "Parkedcall requires an argument (extension number, or %s for any)\n",ast_parking_ext()); return -1; } @@ -2256,7 +2256,7 @@ AST_LIST_LOCK(&parkinglot); AST_LIST_TRAVERSE_SAFE_BEGIN(&parkinglot, pu, list) { - if (pu->parkingnum == park) { + if (pu->parkingnum == park || park == atoi(ast_parking_ext())) { AST_LIST_REMOVE_CURRENT(&parkinglot, list); break; }