Skip to content
Snippets Groups Projects
Commit dc7e5f5f authored by Mark Spencer's avatar Mark Spencer
Browse files

Initialize frame for playtones just in case

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3138 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 799b876a
No related branches found
No related tags found
No related merge requests found
...@@ -123,6 +123,8 @@ static int playtones_generator(struct ast_channel *chan, void *data, int len, in ...@@ -123,6 +123,8 @@ static int playtones_generator(struct ast_channel *chan, void *data, int len, in
ps->f.samples = samples; ps->f.samples = samples;
ps->f.offset = AST_FRIENDLY_OFFSET; ps->f.offset = AST_FRIENDLY_OFFSET;
ps->f.data = ps->data; ps->f.data = ps->data;
ps->f.delivery.tv_sec = 0;
ps->f.delivery.tv_usec = 0;
ast_write(chan, &ps->f); ast_write(chan, &ps->f);
ps->pos += x; ps->pos += x;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment