[asterisk-commits] jpeeler: branch jpeeler/bug13494 r171483 - /team/jpeeler/bug13494/res/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jan 26 16:23:37 CST 2009


Author: jpeeler
Date: Mon Jan 26 16:23:36 2009
New Revision: 171483

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=171483
Log:
abort park_call_full if getting a parking space fails for some reason

Modified:
    team/jpeeler/bug13494/res/res_features.c

Modified: team/jpeeler/bug13494/res/res_features.c
URL: http://svn.digium.com/svn-view/asterisk/team/jpeeler/bug13494/res/res_features.c?view=diff&rev=171483&r1=171482&r2=171483
==============================================================================
--- team/jpeeler/bug13494/res/res_features.c (original)
+++ team/jpeeler/bug13494/res/res_features.c Mon Jan 26 16:23:36 2009
@@ -382,6 +382,8 @@
 	/* Get a valid space if not already done */
 	if (reserved_space < 0)
 		reserved_space = park_space_reserve(chan);
+	if (reserved_space < 0)
+		return 1; /* Continue execution if possible */
 
 	snprintf(pu->parkingexten, sizeof(pu->parkingexten), "%d", reserved_space);
 	




More information about the asterisk-commits mailing list