[Freeswitch-branches] [commit] r5365 - freeswitch/branches/greenlizard/src

Freeswitch SVN greenlizard at freeswitch.org
Thu Jun 14 20:13:19 EDT 2007


Author: greenlizard
Date: Thu Jun 14 20:13:18 2007
New Revision: 5365

Modified:
   freeswitch/branches/greenlizard/src/switch_cpp.cpp

Log:
FSCORE-32 fixed

Modified: freeswitch/branches/greenlizard/src/switch_cpp.cpp
==============================================================================
--- freeswitch/branches/greenlizard/src/switch_cpp.cpp	(original)
+++ freeswitch/branches/greenlizard/src/switch_cpp.cpp	Thu Jun 14 20:13:18 2007
@@ -127,6 +127,16 @@
     switch_codec_t *codec;
 
 	sanity_check(-1);
+	if (!tts_name) {
+		switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "No TTS engine specified");
+		return SWITCH_STATUS_FALSE;
+	}
+
+	if (!voice_name) {
+		switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "No TTS voice specified");
+		return SWITCH_STATUS_FALSE;
+	}
+
     codec = switch_core_session_get_read_codec(session);
 	begin_allow_threads();
 	status = switch_ivr_speak_text(session, tts_name, voice_name, codec->implementation->samples_per_second, text, ap);



More information about the Freeswitch-branches mailing list