mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-25 15:08:53 +00:00
Fix voicemail2 ditty
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1100 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user