Merge ab004e04144a44143c59d42cfc6c9d9e8728edce into 3687972db7564359b727160cf3d3cf743c226c38

This commit is contained in:
David Wilkie 2024-12-31 00:05:18 +00:00 committed by GitHub
commit a462a8be1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -723,14 +723,14 @@ static int process_cdata_tts(struct ssml_parser *parsed_data, char *data, size_t
}
if (cur_node && parsed_data->num_files < parsed_data->max_files) {
int i = 0;
int empty = 1;
int present = 0;
char *to_say;
/* is CDATA empty? */
for (i = 0; i < len && empty; i++) {
empty &= !isgraph(data[i]);
/* is CDATA either non-ascii or graphic? */
for (i = 0; i < len && !present; i++) {
present |= ((!isascii(data[i])) | isgraph(data[i]));
}
if (empty) {
if (!present) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Skipping empty tts\n");
return IKS_OK;
}
@ -1129,4 +1129,4 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_ssml_shutdown)
* End:
* For VIM:
* vim:set softtabstop=4 shiftwidth=4 tabstop=4 noet:
*/
*/