[Asterisk-cvs] asterisk/channels chan_skinny.c,1.75,1.76
jeremy at lists.digium.com
jeremy at lists.digium.com
Thu Jun 2 05:08:40 CDT 2005
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv32047/channels
Modified Files:
chan_skinny.c
Log Message:
Add button templates for 7902, 7935, 7940, 7960, 7970, support big endian machines with proper byte ordering, fixed caller*id on 7910 (others?) and more. Bug #4398
Index: chan_skinny.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_skinny.c,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -d -r1.75 -r1.76
--- chan_skinny.c 25 May 2005 17:18:05 -0000 1.75
+++ chan_skinny.c 2 Jun 2005 09:11:46 -0000 1.76
@@ -76,6 +76,31 @@
typedef unsigned short UINT16;
typedef unsigned int UINT32;
+#if __BYTE_ORDER == __LITTLE_ENDIAN
+#define letohl(x) (x)
+#define letohs(x) (x)
+#define htolel(x) (x)
+#define htoles(x) (x)
+#else
+#ifdef SOLARIS
+#define __bswap_16(x) \
[...1295 lines suppressed...]
+
return 0;
}
@@ -3018,6 +3319,7 @@
}
}
ast_rtp_proto_register(&skinny_rtp);
+ ast_cli_register(&cli_show_devices);
ast_cli_register(&cli_show_lines);
ast_cli_register(&cli_debug);
ast_cli_register(&cli_no_debug);
@@ -3081,6 +3383,7 @@
ast_rtp_proto_register(&skinny_rtp);
ast_channel_unregister(&skinny_tech);
+ ast_cli_register(&cli_show_devices);
ast_cli_register(&cli_show_lines);
ast_cli_register(&cli_debug);
ast_cli_register(&cli_no_debug);
More information about the svn-commits
mailing list