[Home]

Summary:ASTERISK-01820: Cannot use I4l + GSM unless this patch is done
Reporter:kurti (kurti)Labels:
Date Opened:2004-06-15 03:49:45Date Closed:2011-06-07 14:00:41
Priority:BlockerRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:You get error messages 'Discarding too big frame of size XXX' when using another coded as G.711 with I4L. The reason for this is this check:

if (f->datalen > MAX_WRITE_SIZE)

With MAX_WRITE_SIZE being 1024 while the frames have size 1280. I increased this value and it works fine.

****** ADDITIONAL INFORMATION ******

Patch:

--- chan_modem_i4l.c.orig       2004-06-15 10:07:06.000000000 +0200
+++ chan_modem_i4l.c    2004-05-06 11:44:25.000000000 +0200
@@ -428,7 +428,7 @@

static int i4l_write(struct ast_modem_pvt *p, struct ast_frame *f)
{
-#define MAX_WRITE_SIZE 1024
+#define MAX_WRITE_SIZE 1300
       unsigned char result[MAX_WRITE_SIZE << 1];
       unsigned char b;
       int bpos=0, x;
Comments:By: kurti (kurti) 2004-06-15 03:52:31

Sorry, duplicate of bug 0001601

By: Brian West (bkw918) 2004-06-15 09:35:14

dup of 1601