Author: mikej Date: Sun Oct 19 23:58:04 2008 New Revision: 10076 Modified: freeswitch/trunk/src/switch_ivr_play_say.c Log: attempt to fix FSCORE-207 Modified: freeswitch/trunk/src/switch_ivr_play_say.c ============================================================================== --- freeswitch/trunk/src/switch_ivr_play_say.c (original) +++ freeswitch/trunk/src/switch_ivr_play_say.c Sun Oct 19 23:58:04 2008 @@ -755,15 +755,15 @@ read_codec = switch_core_session_get_read_codec(session); - if (!strcasecmp(read_codec->implementation->iananame, "l16")) { - l16++; - } - - if (switch_strlen_zero(file) || !read_codec) { + if (switch_strlen_zero(file) || !read_codec || !read_codec->implementation) { status = SWITCH_STATUS_FALSE; goto end; } + if (!strcasecmp(read_codec->implementation->iananame, "l16")) { + l16++; + } + if ((alt = strchr(file, ':'))) { char *dup;
participants (1)
-
Freeswitch SVN