[Freeswitch-svn] [commit] r1623 - freeswitch/trunk/src/mod/applications/mod_rss

mikej at freeswitch.org mikej at freeswitch.org
Wed Jun 14 12:52:24 EDT 2006


Author: mikej
Date: Wed Jun 14 12:52:24 2006
New Revision: 1623

Modified:
   freeswitch/trunk/src/mod/applications/mod_rss/mod_rss.c

Log:
enable match_count by default

Modified: freeswitch/trunk/src/mod/applications/mod_rss/mod_rss.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_rss/mod_rss.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_rss/mod_rss.c	Wed Jun 14 12:52:24 2006
@@ -53,6 +53,8 @@
 #define TTS_DEFAULT_ENGINE "cepstral"
 #define TTS_DEFAULT_VOICE "david"
 
+#define MATCH_COUNT
+
 struct rss_entry {
 	uint8_t inuse;
 	char *title_txt;
@@ -66,7 +68,7 @@
 {
 	char tstr[80] = "";
 	uint32_t matches = 0, x = 0;
-	uint32_t len = strlen(str);
+	uint32_t len = (uint32_t)strlen(str);
 	printf("%s\n", str);
 	for (x = 0; x < max ; x++) {
 		snprintf(tstr, sizeof(tstr), "%u", x);
@@ -293,10 +295,17 @@
 			snprintf(cmd, sizeof(cmd), "%d", jumpto);
 		} else {
 			switch_core_speech_flush_tts(&sh);
+#ifdef MATCH_COUNT
 			snprintf(buf + len, sizeof(buf) - len, 
 					 "Main Menu. <break time=\"600ms\"/> "
+					 "Choose one of the following Feeds, or press 0 to exit. "
+					 "<break time=\"600ms\"/>");
+#else
+			snprintf(buf + len, sizeof(buf) - len, 
+					 "Main Menu. <break time=\"600ms\"/> "
 					 "Choose one of the following Feeds, followed by the pound key or press 0 to exit. "
 					 "<break time=\"600ms\"/>");
+#endif
 			len = (int32_t)strlen(buf);
 
 			for (idx = 0; idx < feed_index; idx++) {



More information about the Freeswitch-svn mailing list