]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FSCORE-571
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 15 Mar 2010 20:41:56 +0000 (20:41 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 15 Mar 2010 20:41:56 +0000 (20:41 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16995 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_play_say.c

index e822fcbf9ad148617f06fd391e75abf38f3587f8..841cec94c482961dfa90f80c1d2ac8170c4ca036 100644 (file)
@@ -694,7 +694,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_record_file(switch_core_session_t *se
                                break;
                        }
                } else if (switch_test_flag(read_frame, SFF_CNG) && fill_cng) {
-                       len = write_frame.datalen;
+                       len = write_frame.datalen / 2;
                        if (switch_core_file_write(fh, write_frame.data, &len) != SWITCH_STATUS_SUCCESS) {
                                break;
                        }