dect
/
asterisk
Archived
13
0
Fork 0

chan_console fixes because of ast_frame.data => ast_frame.data.ptr

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117834 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
mvanbaak 2008-05-22 17:16:08 +00:00
parent dac7a3528e
commit 4273f5594b
1 changed files with 3 additions and 3 deletions

View File

@ -273,7 +273,7 @@ static void *stream_monitor(void *data)
.frametype = AST_FRAME_VOICE,
.subclass = AST_FORMAT_SLINEAR16,
.src = "console_stream_monitor",
.data = buf,
.data.ptr = buf,
.datalen = sizeof(buf),
.samples = sizeof(buf) / sizeof(int16_t),
};
@ -592,7 +592,7 @@ static int console_write(struct ast_channel *chan, struct ast_frame *f)
{
struct console_pvt *pvt = chan->tech_pvt;
Pa_WriteStream(pvt->stream, f->data, f->samples);
Pa_WriteStream(pvt->stream, f->data.ptr, f->samples);
return 0;
}
@ -1084,7 +1084,7 @@ static char *cli_console_sendtext(struct ast_cli_entry *e, int cmd, struct ast_c
struct console_pvt *pvt = get_active_pvt();
struct ast_frame f = {
.frametype = AST_FRAME_TEXT,
.data = buf,
.data.ptr = buf,
.src = "console_send_text",
};
int len;