[Asterisk-cvs] asterisk/channels chan_skinny.c,1.87,1.88
russell at lists.digium.com
russell at lists.digium.com
Wed Jul 13 15:13:03 CDT 2005
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv29100/channels
Modified Files:
chan_skinny.c
Log Message:
fix big endian compilation issue
Index: chan_skinny.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_skinny.c,v
retrieving revision 1.87
retrieving revision 1.88
diff -u -d -r1.87 -r1.88
--- chan_skinny.c 10 Jul 2005 23:49:57 -0000 1.87
+++ chan_skinny.c 13 Jul 2005 19:21:04 -0000 1.88
@@ -497,24 +497,24 @@
} soft_key_template_definition;
soft_key_template_definition soft_key_template_default[] = {
- { "Redial", htolel(1) },
- { "NewCall", htolel(2) },
- { "Hold", htolel(3) },
- { "Trnsfer", htolel(4) },
- { "CFwdAll", htolel(5) },
- { "CFwdBusy", htolel(6) },
- { "CFwdNoAnswer", htolel(7) },
- { "<<", htolel(8) },
- { "EndCall", htolel(9) },
- { "Resume", htolel(10) },
- { "Answer", htolel(11) },
- { "Info", htolel(12) },
- { "Confrn", htolel(13) },
- { "Park", htolel(14) },
- { "Join", htolel(15) },
- { "MeetMe", htolel(16) },
- { "PickUp", htolel(17) },
- { "GPickUp", htolel(18) }
+ { "Redial", 1 },
+ { "NewCall", 2 },
+ { "Hold", 3 },
+ { "Trnsfer", 4 },
+ { "CFwdAll", 5 },
+ { "CFwdBusy", 6 },
+ { "CFwdNoAnswer", 7 },
+ { "<<", 8 },
+ { "EndCall", 9 },
+ { "Resume", 10 },
+ { "Answer", 11 },
+ { "Info", 12 },
+ { "Confrn", 13 },
+ { "Park", 14 },
+ { "Join", 15 },
+ { "MeetMe", 16 },
+ { "PickUp", 17 },
+ { "GPickUp", 18 },
};
typedef struct soft_key_template {
@@ -3301,6 +3301,9 @@
{
int res = 0;
+ for (; res < (sizeof(soft_key_template_default) / sizeof(soft_key_template_default[0])); res++)
+ soft_key_template_default[res].softKeyEvent = htolel(soft_key_template_default[res].softKeyEvent);
+
/* load and parse config */
res = reload_config();
More information about the svn-commits
mailing list