From: Mark Spencer Date: Tue, 17 Jun 2003 11:37:02 +0000 (+0000) Subject: Fix voicemail2 ditty X-Git-Tag: 0.5.0~396 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ada0d0504ca5ebb6fd282d6311af6f437784e7c7;p=thirdparty%2Fasterisk.git Fix voicemail2 ditty git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1100 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- 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