diff options
author | Steve Murphy <murf@digium.com> | 2006-11-07 21:47:49 +0000 |
---|---|---|
committer | Steve Murphy <murf@digium.com> | 2006-11-07 21:47:49 +0000 |
commit | 908f176cf38eb1f81a3372a2ebf24ed17c75e8a6 (patch) | |
tree | c85e2036ae8d28edebee2af6cc055a51e39ba1da /apps/app_voicemail.c | |
parent | 7659f6d5240b03068adf9746b3dd2938d1ebb0fd (diff) |
A fair number of changes for the sake of bug 7506
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47290 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_voicemail.c')
-rw-r--r-- | apps/app_voicemail.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 2468f751a..b29381362 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -1882,7 +1882,7 @@ static void make_email_file(FILE *p, char *srcemail, struct ast_vm_user *vmu, in if (*fromstring) { struct ast_channel *ast; - if ((ast = ast_channel_alloc(0))) { + if ((ast = ast_channel_alloc(0, AST_STATE_DOWN, 0, 0, 0))) { char *passdata; int vmlen = strlen(fromstring)*3 + 200; if ((passdata = alloca(vmlen))) { @@ -1900,7 +1900,7 @@ static void make_email_file(FILE *p, char *srcemail, struct ast_vm_user *vmu, in fprintf(p, "To: %s <%s>\r\n", vmu->fullname, vmu->email); if (emailsubject) { struct ast_channel *ast; - if ((ast = ast_channel_alloc(0))) { + if ((ast = ast_channel_alloc(0, AST_STATE_DOWN, 0, 0, 0))) { char *passdata; int vmlen = strlen(emailsubject)*3 + 200; if ((passdata = alloca(vmlen))) { @@ -1954,7 +1954,7 @@ static void make_email_file(FILE *p, char *srcemail, struct ast_vm_user *vmu, in fprintf(p, "Content-Type: text/plain; charset=%s\r\nContent-Transfer-Encoding: 8bit\r\n\r\n", charset); if (emailbody) { struct ast_channel *ast; - if ((ast = ast_channel_alloc(0))) { + if ((ast = ast_channel_alloc(0, AST_STATE_DOWN, 0, 0, 0))) { char *passdata; int vmlen = strlen(emailbody)*3 + 200; if ((passdata = alloca(vmlen))) { @@ -2069,7 +2069,7 @@ static int sendpage(char *srcemail, char *pager, int msgnum, char *context, char if (*pagerfromstring) { struct ast_channel *ast; - if ((ast = ast_channel_alloc(0))) { + if ((ast = ast_channel_alloc(0, AST_STATE_DOWN, 0, 0, 0))) { char *passdata; int vmlen = strlen(fromstring)*3 + 200; if ((passdata = alloca(vmlen))) { @@ -2086,7 +2086,7 @@ static int sendpage(char *srcemail, char *pager, int msgnum, char *context, char fprintf(p, "To: %s\n", pager); if (pagersubject) { struct ast_channel *ast; - if ((ast = ast_channel_alloc(0))) { + if ((ast = ast_channel_alloc(0, AST_STATE_DOWN, 0, 0, 0))) { char *passdata; int vmlen = strlen(pagersubject) * 3 + 200; if ((passdata = alloca(vmlen))) { @@ -2102,7 +2102,7 @@ static int sendpage(char *srcemail, char *pager, int msgnum, char *context, char strftime(date, sizeof(date), "%A, %B %d, %Y at %r", &tm); if (pagerbody) { struct ast_channel *ast; - if ((ast = ast_channel_alloc(0))) { + if ((ast = ast_channel_alloc(0, AST_STATE_DOWN, 0, 0, 0))) { char *passdata; int vmlen = strlen(pagerbody)*3 + 200; if ((passdata = alloca(vmlen))) { |