Fix voicemail2 ditty

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1100 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.0
Mark Spencer 22 years ago
parent 60f13d2625
commit ada0d0504c

@ -1092,13 +1092,13 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, int silent, int
if (vmu->attach > -1) if (vmu->attach > -1)
attach_user_voicemail = vmu->attach; attach_user_voicemail = vmu->attach;
if (strlen(vmu->serveremail)) 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); sendmail(myserveremail, vmu->email, vmu->fullname, msgnum, ext, chan->callerid, fn, fmt, end - start, attach_user_voicemail);
} }
if (strlen(vmu->pager)) { if (strlen(vmu->pager)) {
char *myserveremail = serveremail; char *myserveremail = serveremail;
if (strlen(vmu->serveremail)) if (strlen(vmu->serveremail))
myserveremail = serveremail; myserveremail = vmu->serveremail;
sendpage(myserveremail, vmu->pager, msgnum, ext, chan->callerid, end - start); sendpage(myserveremail, vmu->pager, msgnum, ext, chan->callerid, end - start);
} }
} else } else

Loading…
Cancel
Save