[Asterisk-cvs] asterisk/channels chan_modem_i4l.c,1.20,1.21

markster at lists.digium.com markster at lists.digium.com
Sun Jan 23 20:56:51 CST 2005


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv19581/channels

Modified Files:
	chan_modem_i4l.c 
Log Message:
Fix chan_modem_i4l (bug #3410)


Index: chan_modem_i4l.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_modem_i4l.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- chan_modem_i4l.c	23 Jan 2005 18:47:51 -0000	1.20
+++ chan_modem_i4l.c	24 Jan 2005 02:59:17 -0000	1.21
@@ -420,7 +420,7 @@
 						if (!f)
 							return NULL;
 					} else {
-						*(b++) = AST_A2LIN(result[x]);
+						*(b++) = AST_ALAW(result[x]);
 						p->obuflen += 2;
 					}
 				}
@@ -480,7 +480,7 @@
 		return -1;
 	}
 	for (x=0;x<f->datalen/2;x++) {
-		b = AST_ALAW(((short *)f->data)[x]);
+		b = AST_LIN2A(((short *)f->data)[x]);
 		result[bpos++] = b;
 		if (b == CHAR_DLE)
 			result[bpos++]=b;




More information about the svn-commits mailing list