aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_modem_aopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_modem_aopen.c')
-rwxr-xr-xchannels/chan_modem_aopen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_modem_aopen.c b/channels/chan_modem_aopen.c
index b33ce074c..a838671de 100755
--- a/channels/chan_modem_aopen.c
+++ b/channels/chan_modem_aopen.c
@@ -187,7 +187,7 @@ static struct ast_frame *aopen_handle_escape(struct ast_modem_pvt *p, char esc)
p->fr.subclass = 0;
p->fr.data = NULL;
p->fr.datalen = 0;
- p->fr.timelen = 0;
+ p->fr.samples = 0;
p->fr.offset = 0;
p->fr.mallocd = 0;
if (esc)
@@ -315,7 +315,7 @@ static struct ast_frame *aopen_read(struct ast_modem_pvt *p)
/* If we get here, we have a complete voice frame */
p->fr.frametype = AST_FRAME_VOICE;
p->fr.subclass = AST_FORMAT_SLINEAR;
- p->fr.timelen = 30;
+ p->fr.samples = 240;
p->fr.data = p->obuf;
p->fr.datalen = p->obuflen;
p->fr.mallocd = 0;