From c57a735ac32361750d6c2360911870748b05108f Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Wed, 14 Jun 2006 16:52:24 +0000 Subject: [PATCH] enable match_count by default git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1623 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_rss/mod_rss.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/mod/applications/mod_rss/mod_rss.c b/src/mod/applications/mod_rss/mod_rss.c index 7e45ea906c..72a4ee1e0e 100644 --- a/src/mod/applications/mod_rss/mod_rss.c +++ b/src/mod/applications/mod_rss/mod_rss.c @@ -53,6 +53,8 @@ struct dtmf_buffer { #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 @@ static uint32_t match_count(char *str, uint32_t max) { 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 @@ static void rss_function(switch_core_session_t *session, char *data) snprintf(cmd, sizeof(cmd), "%d", jumpto); } else { switch_core_speech_flush_tts(&sh); +#ifdef MATCH_COUNT + snprintf(buf + len, sizeof(buf) - len, + "Main Menu. " + "Choose one of the following Feeds, or press 0 to exit. " + ""); +#else snprintf(buf + len, sizeof(buf) - len, "Main Menu. " "Choose one of the following Feeds, followed by the pound key or press 0 to exit. " ""); +#endif len = (int32_t)strlen(buf); for (idx = 0; idx < feed_index; idx++) {