[Asterisk-cvs] asterisk/apps app_sayunixtime.c, 1.6, 1.7 app_voicemail.c, 1.171, 1.172

markster at lists.digium.com markster at lists.digium.com
Sat Nov 13 11:12:12 CST 2004


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

Modified Files:
	app_sayunixtime.c app_voicemail.c 
Log Message:
Updates from char * to const char * + german syntax + enumeration (bug #2780)


Index: app_sayunixtime.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_sayunixtime.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- app_sayunixtime.c	19 Mar 2004 18:23:33 -0000	1.6
+++ app_sayunixtime.c	13 Nov 2004 16:13:07 -0000	1.7
@@ -58,16 +58,21 @@
 {
 	int res=0;
 	struct localuser *u;
-	char *s,*zone=NULL,*timec;
+	char *s,*zone=NULL,*timec,*format;
 	time_t unixtime;
-	char *format = "ABdY 'digits/at' IMp";
 	struct timeval tv;
-
+	
 	LOCAL_USER_ADD(u);
 
 	gettimeofday(&tv,NULL);
 	unixtime = (time_t)tv.tv_sec;
 
+	if( !strcasecmp(chan->language, "de" ) ) {
+		format = "A dBY HMS";
+	} else {
+		format = "ABdY 'digits/at' IMp";
+	} 
+
 	if (data) {
 		s = data;
 		s = ast_strdupa(s);

Index: app_voicemail.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_voicemail.c,v
retrieving revision 1.171
retrieving revision 1.172
diff -u -d -r1.171 -r1.172
--- app_voicemail.c	12 Nov 2004 01:35:16 -0000	1.171
+++ app_voicemail.c	13 Nov 2004 16:13:07 -0000	1.172
@@ -2423,6 +2423,8 @@
 #endif
 	if (the_zone)
 		res = ast_say_date_with_format(chan, t, AST_DIGIT_ANY, chan->language, the_zone->msg_format, the_zone->timezone);
+	else if(!strcasecmp(chan->language,"de"))	/* GERMAN syntax */
+		res = ast_say_date_with_format(chan, t, AST_DIGIT_ANY, chan->language, "'vm-received' Q 'digits/at' HM", NULL);
 	else if (!strcasecmp(chan->language,"nl"))	/* DUTCH syntax */
 		res = ast_say_date_with_format(chan, t, AST_DIGIT_ANY, chan->language, "'vm-received' q 'digits/nl-om' HM", NULL);
  	else if (!strcasecmp(chan->language,"it"))      /* ITALIAN syntax */




More information about the svn-commits mailing list