From: Joshua Colp Date: Tue, 19 Jun 2007 12:57:55 +0000 (+0000) Subject: Add parked call extension AFTER the parking slot has been announced, otherwise two... X-Git-Tag: 1.2.20~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=234b7d22fea76d0687101eaef487980fa368379c;p=thirdparty%2Fasterisk.git Add parked call extension AFTER the parking slot has been announced, otherwise two threads will try to handle the same channel and it will go kaboom. (issue #9191 reported by japple) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@69846 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_features.c b/res/res_features.c index 7211e5daa8..30326d3a58 100644 --- a/res/res_features.c +++ b/res/res_features.c @@ -383,12 +383,12 @@ int ast_park_call(struct ast_channel *chan, struct ast_channel *peer, int timeou ast_log(LOG_ERROR, "Parking context '%s' does not exist and unable to create\n", parking_con); } } + if (peer) + ast_say_digits(peer, pu->parkingnum, "", peer->language); if (con) { snprintf(exten, sizeof(exten), "%d", x); ast_add_extension2(con, 1, exten, 1, NULL, NULL, parkedcall, strdup(exten), FREE, registrar); } - if (peer) - ast_say_digits(peer, pu->parkingnum, "", peer->language); if (pu->notquiteyet) { /* Wake up parking thread if we're really done */ ast_moh_start(pu->chan, NULL);