mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 08:11:21 +00:00
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
This commit is contained in:
@@ -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))) {
|
||||
|
||||
Reference in New Issue
Block a user