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

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


Author: jpeeler
Date: Mon Jan 26 16:07:39 2009
New Revision: 171454

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=171454
Log:
get rid of parkingnum_copy, we don't need it anymore

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=171454&r1=171453&r2=171454
==============================================================================
--- team/jpeeler/bug13494/res/res_features.c (original)
+++ team/jpeeler/bug13494/res/res_features.c Mon Jan 26 16:07:39 2009
@@ -373,7 +373,6 @@
 static int park_call_full(struct ast_channel *chan, struct ast_channel *peer, int timeout, int *extout, const char *orig_chan_name, int reserved_space)
 {
 	struct parkeduser *pu;
-	int parkingnum_copy;
 	struct ast_context *con;
 	
 	/* Allocate memory for parking data */
@@ -436,7 +435,7 @@
 	pu->priority = chan->macropriority ? chan->macropriority : chan->priority;
 	pu->next = parkinglot;
 	parkinglot = pu;
-	parkingnum_copy = pu->parkingnum;
+
 	/* If parking a channel directly, don't quite yet get parking running on it */
 	if (peer == chan) 
 		pu->notquiteyet = 1;
@@ -482,7 +481,7 @@
 		/* Make sure we don't start saying digits to the channel being parked */
 		ast_set_flag(peer, AST_FLAG_MASQ_NOSTREAM);
 		/* Tell the peer channel the number of the parking space */
-		ast_say_digits(peer, parkingnum_copy, "", peer->language);
+		ast_say_digits(peer, reserved_space, "", peer->language);
 		ast_clear_flag(peer, AST_FLAG_MASQ_NOSTREAM);
 	}
 




More information about the asterisk-commits mailing list