]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Fixing the only place where parms is used instead of params.
authorWilliam King <william.king@quentustech.com>
Mon, 4 Feb 2013 18:20:25 +0000 (12:20 -0600)
committerWilliam King <william.king@quentustech.com>
Mon, 4 Feb 2013 18:20:25 +0000 (12:20 -0600)
src/switch_cpp.cpp

index f94901e196f9cb1f51ad051a1a780bfd0c68f7aa..1c42eb137855000cc7715a66f9fafe3a0cac16a2 100644 (file)
@@ -771,6 +771,7 @@ SWITCH_DECLARE(int) CoreSession::speak(char *text)
 
 SWITCH_DECLARE(void) CoreSession::set_tts_parms(char *tts_name_p, char *voice_name_p)
 {
+       switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "set_tts_parms is deprecated. Use set_tts_params.\n");
        this_check_void();
        sanity_check_noreturn;
        switch_safe_free(tts_name);
@@ -779,7 +780,15 @@ SWITCH_DECLARE(void) CoreSession::set_tts_parms(char *tts_name_p, char *voice_na
     voice_name = strdup(voice_name_p);
 }
 
-
+SWITCH_DECLARE(void) CoreSession::set_tts_params(char *tts_name_p, char *voice_name_p)
+{
+       this_check_void();
+       sanity_check_noreturn;
+       switch_safe_free(tts_name);
+       switch_safe_free(voice_name);
+    tts_name = strdup(tts_name_p);
+    voice_name = strdup(voice_name_p);
+}
 
 SWITCH_DECLARE(int) CoreSession::collectDigits(int abs_timeout) {
        return collectDigits(0, abs_timeout);