diff --git a/src/switch_loadable_module.c b/src/switch_loadable_module.c index ea7bc73684..9804e53238 100644 --- a/src/switch_loadable_module.c +++ b/src/switch_loadable_module.c @@ -1971,6 +1971,10 @@ SWITCH_DECLARE(switch_status_t) switch_say_file_handle_create(switch_say_file_ha { switch_assert(sh); + if (zstr(ext)) { + ext = "wav"; + } + *sh = malloc(sizeof(**sh)); memset(*sh, 0, sizeof(**sh));