FS-4248 prevent seg for unsupported say method

This commit is contained in:
Jeff Lenk 2012-06-07 10:06:09 -05:00
parent 2c9e1454fe
commit 20f20c8a5c
1 changed files with 1 additions and 1 deletions

View File

@ -2976,7 +2976,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_say_string(switch_core_session_t *ses
}
}
if ((si = switch_loadable_module_get_say_interface(module_name))) {
if ((si = switch_loadable_module_get_say_interface(module_name)) && si->say_string_function) {
/* should go back and proto all the say mods to const.... */
switch_say_args_t say_args = {0};