[Asterisk-cvs] asterisk/apps app_record.c,1.21,1.22

markster at lists.digium.com markster at lists.digium.com
Tue Oct 12 17:30:20 CDT 2004


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

Modified Files:
	app_record.c 
Log Message:
Eliminate extraneous message (bug #2633)


Index: app_record.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_record.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- app_record.c	23 Sep 2004 16:39:33 -0000	1.21
+++ app_record.c	12 Oct 2004 21:30:53 -0000	1.22
@@ -301,7 +301,7 @@
 		ast_log(LOG_WARNING, "Could not answer channel '%s'\n", chan->name);
 
 	LOCAL_USER_REMOVE(u);
-	if (silence > 0) {
+	if ((silence > 0) && rfmt) {
 	        res = ast_set_read_format(chan, rfmt);
         	if (res)
         	        ast_log(LOG_WARNING, "Unable to restore read format on '%s'\n", chan->name);




More information about the svn-commits mailing list