aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_voicemail.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-10-07 16:07:45 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-10-07 16:07:45 +0000
commit75dae11b8f1c9c3bbe43bdf916d5f7acf573ee72 (patch)
tree0d4b25505aec9cbdadc75df4c971d2321508bd75 /apps/app_voicemail.c
parenta1ee40f14bd5f05db6a39a6aafd96dc4ff506c99 (diff)
Move voicemail beep (bug #2594)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3930 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-rwxr-xr-xapps/app_voicemail.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index 6ea59bf7c..a2be7a351 100755
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -1437,12 +1437,6 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, int silent, int
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 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, int silent, int
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);