aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-13 19:21:04 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-07-13 19:21:04 +0000
commit553a20be66788ada158109ca2cc06d7e93e1a90b (patch)
treee2b7c2da3e0d83331d013bad3c5f7c57805a726c /channels
parent4f173d622be3fdeaa52bf39b44b6d6512fc1a7f5 (diff)
fix big endian compilation issue
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6124 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_skinny.c39
1 files changed, 21 insertions, 18 deletions
diff --git a/channels/chan_skinny.c b/channels/chan_skinny.c
index 545dc29dd..631325192 100755
--- a/channels/chan_skinny.c
+++ b/channels/chan_skinny.c
@@ -497,24 +497,24 @@ typedef struct soft_key_template_definition {
} 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 load_module()
{
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();