[asterisk-commits] file: branch 1.2 r69846 - /branches/1.2/res/res_features.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jun 19 07:57:55 CDT 2007


Author: file
Date: Tue Jun 19 07:57:55 2007
New Revision: 69846

URL: http://svn.digium.com/view/asterisk?view=rev&rev=69846
Log:
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)

Modified:
    branches/1.2/res/res_features.c

Modified: branches/1.2/res/res_features.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/res/res_features.c?view=diff&rev=69846&r1=69845&r2=69846
==============================================================================
--- branches/1.2/res/res_features.c (original)
+++ branches/1.2/res/res_features.c Tue Jun 19 07:57:55 2007
@@ -383,12 +383,12 @@
 			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);




More information about the asterisk-commits mailing list