Revision
15984
Author
anthm
Date
2009-12-17 09:47:39 -0600 (Thu, 17 Dec 2009)

Log Message

MODAPP-380

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/say/mod_say_en/mod_say_en.c (15983 => 15984)


--- freeswitch/trunk/src/mod/say/mod_say_en/mod_say_en.c	2009-12-17 14:57:39 UTC (rev 15983)
+++ freeswitch/trunk/src/mod/say/mod_say_en/mod_say_en.c	2009-12-17 15:47:39 UTC (rev 15984)
@@ -176,9 +176,22 @@
 	int in;
 	int x = 0;
 	int places[9] = { 0 };
-	char sbuf[13] = "";
+	char sbuf[128] = "";
 	switch_status_t status;
 
+	if (method == SSM_ITERATED) {
+		if ((tosay = strip_commas(tosay, sbuf, sizeof(sbuf)))) {
+			char *p;
+			for (p = tosay; p && *p; p++) {
+				say_file("digits/%c.wav", *p);
+			}
+		} else {
+			switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Parse Error!\n");
+			return SWITCH_STATUS_GENERR;
+		}
+		return SWITCH_STATUS_SUCCESS;
+	}
+
 	if (!(tosay = strip_commas(tosay, sbuf, sizeof(sbuf))) || strlen(tosay) > 9) {
 		switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Parse Error!\n");
 		return SWITCH_STATUS_GENERR;
@@ -207,14 +220,6 @@
 				return status;
 			}
 			break;
-		case SSM_ITERATED:
-			{
-				char *p;
-				for (p = tosay; p && *p; p++) {
-					say_file("digits/%c.wav", *p);
-				}
-			}
-			break;
 		default:
 			break;
 		}

Modified: freeswitch/trunk/src/switch_core_sqldb.c (15983 => 15984)


--- freeswitch/trunk/src/switch_core_sqldb.c	2009-12-17 14:57:39 UTC (rev 15983)
+++ freeswitch/trunk/src/switch_core_sqldb.c	2009-12-17 15:47:39 UTC (rev 15984)
@@ -144,8 +144,7 @@
 }
 
 
-SWITCH_DECLARE(void) switch_cache_db_flush_handles(void)
-{
+SWITCH_DECLARE(void) switch_cache_db_flush_handles(void){
 	sql_close(switch_epoch_time_now(NULL) + SQL_CACHE_TIMEOUT + 1);
 }