[Asterisk-cvs] asterisk/res res_agi.c,1.21,1.22

markster at lists.digium.com markster at lists.digium.com
Fri Dec 31 16:58:23 CST 2004


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

Modified Files:
	res_agi.c 
Log Message:
Don't die when a file is missing (bug #3212)


Index: res_agi.c
===================================================================
RCS file: /usr/cvsroot/asterisk/res/res_agi.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- res_agi.c	28 Dec 2004 23:01:22 -0000	1.21
+++ res_agi.c	31 Dec 2004 21:52:56 -0000	1.22
@@ -433,8 +433,7 @@
 	fs = ast_openstream(chan, argv[2], chan->language);
 	if(!fs){
 		fdprintf(agi->fd, "200 result=%d endpos=%ld\n", 0, sample_offset);
-		ast_log(LOG_WARNING, "Unable to open %s\n", argv[2]);
-		return RESULT_FAILURE;
+		return RESULT_SUCCESS;
 	}
 	ast_seekstream(fs, 0, SEEK_END);
 	max_length = ast_tellstream(fs);




More information about the svn-commits mailing list