[Asterisk-cvs] asterisk/res res_adsi.c,1.6,1.7 res_musiconhold.c,1.23,1.24 res_parking.c,1.18,1.19

markster at lists.digium.com markster at lists.digium.com
Tue Apr 6 18:17:05 CDT 2004


Update of /usr/cvsroot/asterisk/res
In directory mongoose.digium.com:/tmp/cvs-serv29122/res

Modified Files:
	res_adsi.c res_musiconhold.c res_parking.c 
Log Message:
Get rid of all that old needlock garbage now that we're using recursive mutexes


Index: res_adsi.c
===================================================================
RCS file: /usr/cvsroot/asterisk/res/res_adsi.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- res_adsi.c	27 Mar 2004 06:50:12 -0000	1.6
+++ res_adsi.c	6 Apr 2004 22:17:32 -0000	1.7
@@ -367,15 +367,15 @@
 
 	ast_stopstream(chan);
 
-	if (ast_set_write_format(chan, AST_FORMAT_ULAW, 1)) {
+	if (ast_set_write_format(chan, AST_FORMAT_ULAW)) {
 		ast_log(LOG_WARNING, "Unable to set write format to ULAW\n");
 		return -1;
 	}
 
-	if (ast_set_read_format(chan, AST_FORMAT_ULAW, 1)) {
+	if (ast_set_read_format(chan, AST_FORMAT_ULAW)) {
 		ast_log(LOG_WARNING, "Unable to set read format to ULAW\n");
 		if (writeformat) {
-			if (ast_set_write_format(chan, writeformat, 1)) 
+			if (ast_set_write_format(chan, writeformat)) 
 				ast_log(LOG_WARNING, "Unable to restore write format to %d\n", writeformat);
 		}
 		return -1;
@@ -385,9 +385,9 @@
 		chan->adsicpe = (chan->adsicpe & ~ADSI_FLAG_DATAMODE) | newdatamode;
 
 	if (writeformat)
-		ast_set_write_format(chan, writeformat, 1);
+		ast_set_write_format(chan, writeformat);
 	if (readformat)
-		ast_set_read_format(chan, readformat, 1);
+		ast_set_read_format(chan, readformat);
 
 	return res;
 }

Index: res_musiconhold.c
===================================================================
RCS file: /usr/cvsroot/asterisk/res/res_musiconhold.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- res_musiconhold.c	27 Mar 2004 06:50:12 -0000	1.23
+++ res_musiconhold.c	6 Apr 2004 22:17:32 -0000	1.24
@@ -397,7 +397,7 @@
 	oldwfmt = moh->origwfmt;
 	free(moh);
 	if (chan) {
-		if (oldwfmt && ast_set_write_format(chan, oldwfmt, 0)) 
+		if (oldwfmt && ast_set_write_format(chan, oldwfmt)) 
 			ast_log(LOG_WARNING, "Unable to restore channel '%s' to format %s\n", chan->name, ast_getformatname(oldwfmt));
 		if (option_verbose > 2)
 			ast_verbose(VERBOSE_PREFIX_3 "Stopped music on hold on %s\n", chan->name);
@@ -420,7 +420,7 @@
 	ast_mutex_unlock(&moh_lock);
 	if (res) {
 		res->origwfmt = chan->writeformat;
-		if (ast_set_write_format(chan, AST_FORMAT_SLINEAR, 1)) {
+		if (ast_set_write_format(chan, AST_FORMAT_SLINEAR)) {
 			ast_log(LOG_WARNING, "Unable to set '%s' to signed linear format\n", chan->name);
 			moh_release(NULL, res);
 			res = NULL;

Index: res_parking.c
===================================================================
RCS file: /usr/cvsroot/asterisk/res/res_parking.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- res_parking.c	1 Mar 2004 20:31:25 -0000	1.18
+++ res_parking.c	6 Apr 2004 22:17:32 -0000	1.19
@@ -378,7 +378,7 @@
 						if (option_verbose > 2) 
 							ast_verbose(VERBOSE_PREFIX_3 "Transferring %s to '%s' (context %s) priority 1\n"
 								,transferee->name, newext, transferer_real_context);
-						if (ast_async_goto(transferee, transferer_real_context, newext, 1, 1))
+						if (ast_async_goto(transferee, transferer_real_context, newext, 1))
 							ast_log(LOG_WARNING, "Async goto fialed :(\n");
 						res = -1;
 					} else {
@@ -736,7 +736,7 @@
 		res = ast_answer(chan);
 		if (res)
 			ast_log(LOG_WARNING, "Unable to answer '%s'\n", chan->name);
-		res = ast_queue_control(chan, AST_CONTROL_ANSWER, 0);
+		res = ast_queue_control(chan, AST_CONTROL_ANSWER);
 		if (res)
 			ast_log(LOG_WARNING, "Unable to queue answer on '%s'\n", chan->name);
 		res = ast_channel_masquerade(cur, chan);




More information about the svn-commits mailing list