mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-14 04:54:49 +00:00
Merge ab004e04144a44143c59d42cfc6c9d9e8728edce into 3687972db7564359b727160cf3d3cf743c226c38
This commit is contained in:
commit
a462a8be1f
@ -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:
|
||||
*/
|
||||
*/
|
Loading…
x
Reference in New Issue
Block a user