From: Chris Rienzo Date: Tue, 22 Dec 2015 21:04:04 +0000 (-0500) Subject: FS-8676 [mod_unimrcp] fix crash when an invalid voice-gender TTS param is attempted... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dad8aba68b2e68ca001ffd925655694a15809205;p=thirdparty%2Ffreeswitch.git FS-8676 [mod_unimrcp] fix crash when an invalid voice-gender TTS param is attempted to be set --- diff --git a/src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c b/src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c index ea563869fb..c1e89be89f 100644 --- a/src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c +++ b/src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c @@ -1237,7 +1237,7 @@ static switch_status_t synth_channel_set_header(speech_channel_t *schannel, int } else if (!strcasecmp("neutral", val)) { synth_hdr->voice_param.gender = VOICE_GENDER_NEUTRAL; } else { - switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(schannel->session_uuid), SWITCH_LOG_WARNING, "(%s) ignoring invalid voice gender, %s\n", schannel->name, val); + switch_log_printf(SWITCH_CHANNEL_UUID_LOG(schannel->session_uuid), SWITCH_LOG_WARNING, "(%s) ignoring invalid voice gender, %s\n", schannel->name, val); break; } mrcp_resource_header_property_add(msg, SYNTHESIZER_HEADER_VOICE_GENDER);