Index: apps/app_voicemail.c =================================================================== RCS file: /usr/cvsroot/asterisk/apps/app_voicemail.c,v retrieving revision 1.155 diff -u -r1.155 app_voicemail.c --- apps/app_voicemail.c 3 Oct 2004 21:18:26 -0000 1.155 +++ apps/app_voicemail.c 7 Oct 2004 03:56:38 -0000 @@ -1437,12 +1437,6 @@ free_user(vmu); return 0; } - if (res >= 0) { - /* Unless we're *really* silent, try to send the beep */ - res = ast_streamfile(chan, "beep", chan->language); - if (!res) - res = ast_waitstream(chan, ""); - } if (res < 0) { free_user(vmu); return -1; @@ -1457,6 +1451,12 @@ break; msgnum++; } while (msgnum < MAXMSG); + if (res >= 0) { + /* Unless we're *really* silent, try to send the beep */ + res = ast_streamfile(chan, "beep", chan->language); + if (!res) + res = ast_waitstream(chan, ""); + } if (msgnum < MAXMSG) { /* Store information */ snprintf(txtfile, sizeof(txtfile), "%s.txt", fn);