[Asterisk-cvs] asterisk file.c,1.43,1.44
markster at lists.digium.com
markster at lists.digium.com
Wed Jun 23 14:14:56 CDT 2004
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv30181
Modified Files:
file.c
Log Message:
Merge Tilghman's voicemail broadcast improvements (thanks!)
Index: file.c
===================================================================
RCS file: /usr/cvsroot/asterisk/file.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- file.c 22 Jun 2004 18:48:59 -0000 1.43
+++ file.c 23 Jun 2004 18:00:50 -0000 1.44
@@ -28,6 +28,7 @@
#include <stdio.h>
#include <fcntl.h>
#include <dirent.h>
+#include <sys/types.h>
#include <sys/stat.h>
#include "asterisk.h"
#include "astconf.h"
@@ -241,6 +242,7 @@
int res;
int len;
char buf[4096];
+
if ((ifd = open(infile, O_RDONLY)) < 0) {
ast_log(LOG_WARNING, "Unable to open %s in read-only mode\n", infile);
return -1;
@@ -343,6 +345,9 @@
/* Try each kind of extension */
stringp=exts;
ext = strsep(&stringp, "|");
+ if (!strcmp(ext,"wav49")) {
+ ext = "WAV";
+ }
do {
fn = build_filename(filename, ext);
if (fn) {
More information about the svn-commits
mailing list