diff options
author | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-07 23:46:41 +0000 |
---|---|---|
committer | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-07 23:46:41 +0000 |
commit | c25499d6c75ea145820465178ef982d256432bc6 (patch) | |
tree | de5d3b24e69a5cd86813ecf37bdeb5c9f87059a9 /apps/app_voicemail.c | |
parent | b3c737f0114f072f2c01eab99cfd6265fd6a1264 (diff) |
These mods are to solve the problem in bug 7506. It's a lot of rework to solve a fairly small problem... such is life.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47303 f38db490-d61c-443f-a65b-d21fe96a405b
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 b586fafbe..149ba73a9 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -1867,7 +1867,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))) { @@ -1885,7 +1885,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))) { @@ -1939,7 +1939,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))) { @@ -2053,7 +2053,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))) { @@ -2070,7 +2070,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))) { @@ -2086,7 +2086,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))) { |