[Asterisk-cvs] asterisk/apps app_mp3.c,1.13,1.14 app_nbscat.c,1.2,1.3 app_voicemail.c,1.69,1.70

markster at lists.digium.com markster at lists.digium.com
Mon Mar 29 03:22:33 CST 2004


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

Modified Files:
	app_mp3.c app_nbscat.c app_voicemail.c 
Log Message:
Small SIP fix, voicemail fix, and some delivery fixes on new apps


Index: app_mp3.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_mp3.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- app_mp3.c	27 Mar 2004 06:50:12 -0000	1.13
+++ app_mp3.c	29 Mar 2004 08:20:35 -0000	1.14
@@ -170,6 +170,8 @@
 					myf.f.mallocd = 0;
 					myf.f.offset = AST_FRIENDLY_OFFSET;
 					myf.f.src = __PRETTY_FUNCTION__;
+					myf.f.delivery.tv_sec = 0;
+					myf.f.delivery.tv_usec = 0;
 					myf.f.data = myf.frdata;
 					if (ast_write(chan, &myf.f) < 0) {
 						res = -1;

Index: app_nbscat.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_nbscat.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- app_nbscat.c	27 Mar 2004 07:34:37 -0000	1.2
+++ app_nbscat.c	29 Mar 2004 08:20:35 -0000	1.3
@@ -150,6 +150,8 @@
 					myf.f.subclass = AST_FORMAT_SLINEAR;
 					myf.f.datalen = res;
 					myf.f.samples = res / 2;
+					myf.f.delivery.tv_usec = 0;
+					myf.f.delivery.tv_sec = 0;
 					myf.f.mallocd = 0;
 					myf.f.offset = AST_FRIENDLY_OFFSET;
 					myf.f.src = __PRETTY_FUNCTION__;

Index: app_voicemail.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_voicemail.c,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -d -r1.69 -r1.70
--- app_voicemail.c	27 Mar 2004 06:50:12 -0000	1.69
+++ app_voicemail.c	29 Mar 2004 08:20:35 -0000	1.70
@@ -849,7 +849,7 @@
 	time_t t;
 	struct tm tm;
 	struct vm_zone *the_zone = NULL;
-	p = popen(mailcmd, "w");
+	pfd = mkstemp(tmp);
 
 	if (pfd > -1) {
 		p = fdopen(pfd, "w");




More information about the svn-commits mailing list