--- app_voicemail.c.orig 2008-07-23 19:40:35.000000000 +0200 +++ app_voicemail.c 2008-07-24 11:15:46.000000000 +0200 @@ -8451,6 +8453,12 @@ ast_channel_setoption(chan, AST_OPTION_RXGAIN, &record_gain, sizeof(record_gain), 0); if (ast_test_flag(vmu, VM_OPERATOR)) canceldtmf = "0"; + + /* Generate silence while recording if specified in asterisk.conf configuration like in app_record.c */ + struct ast_silence_generator *silgen = NULL; + if (ast_opt_transmit_silence) { + silgen = ast_channel_start_silence_generator(chan); + } cmd = ast_play_and_record_full(chan, playfile, tempfile, maxtime, fmt, duration, silencethreshold, maxsilence, unlockdir, acceptdtmf, canceldtmf); if (record_gain) ast_channel_setoption(chan, AST_OPTION_RXGAIN, &zero_gain, sizeof(zero_gain), 0);