From ada0d0504ca5ebb6fd282d6311af6f437784e7c7 Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Tue, 17 Jun 2003 11:37:02 +0000 Subject: [PATCH] Fix voicemail2 ditty git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1100 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_voicemail2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/app_voicemail2.c b/apps/app_voicemail2.c index d63f5bcfd1..ed729f8c29 100755 --- a/apps/app_voicemail2.c +++ b/apps/app_voicemail2.c @@ -1092,13 +1092,13 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, int silent, int if (vmu->attach > -1) attach_user_voicemail = vmu->attach; if (strlen(vmu->serveremail)) - myserveremail = serveremail; + myserveremail = vmu->serveremail; sendmail(myserveremail, vmu->email, vmu->fullname, msgnum, ext, chan->callerid, fn, fmt, end - start, attach_user_voicemail); } if (strlen(vmu->pager)) { char *myserveremail = serveremail; if (strlen(vmu->serveremail)) - myserveremail = serveremail; + myserveremail = vmu->serveremail; sendpage(myserveremail, vmu->pager, msgnum, ext, chan->callerid, end - start); } } else