]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4248 prevent seg for unsupported say method
authorJeff Lenk <jeff@jefflenk.com>
Thu, 7 Jun 2012 15:06:09 +0000 (10:06 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Thu, 7 Jun 2012 15:06:09 +0000 (10:06 -0500)
src/switch_ivr.c

index 08d1fcd5a405c559ef529d8f0dd94d00bdd8b6a7..8f50fe125733d5de96474b04e7c1278a32202a6c 100644 (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};