dect
/
asterisk
Archived
13
0
Fork 0

chan_dect: return ast_null_frame from dect_read() and print a warning

dect_read() should not be called since audio is queued when available
through dect_dl_u_data_ind(). Return ast_null_frame so the core won't
hang up the channel and print a warning.

Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
Patrick McHardy 2011-03-20 16:42:00 +01:00
parent b7347a56f8
commit 71ee4dc26f
1 changed files with 2 additions and 2 deletions

View File

@ -865,8 +865,8 @@ static int dect_write(struct ast_channel *chan, struct ast_frame *f)
static struct ast_frame *dect_read(struct ast_channel *chan)
{
ast_log(LOG_NOTICE, "read\n");
return NULL;
ast_log(LOG_NOTICE, "audio underrun?\n");
return &ast_null_frame;
}
static int dect_fixup(struct ast_channel *old, struct ast_channel *new)