aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/epan/unistim/key.h
blob: f886cbfd3887f19c643a06a303e35b01b80432ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
/* key.h
  * header field declarations, value_string def and true_false_string
  * definitions for key manager messages
  * Copyright 2007 Don Newton <dnewton@cypresscom.net>
  *
  * Wireshark - Network traffic analyzer
  * By Gerald Combs <gerald@wireshark.org>
  * Copyright 1998 Gerald Combs
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
  * as published by the Free Software Foundation; either version 2
  * of the License, or (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

#ifndef UNISTIM_KEY_H
#define UNISTIM_KEY_H


static int hf_key_icon_id=-1;
static int hf_key_led_cadence=-1;
static int hf_key_led_id=-1;
static int hf_key_programmable_keys=-1;
static int hf_keys_soft_keys=-1;
static int hf_keys_hd_key=-1;
static int hf_keys_mute_key=-1;
static int hf_keys_quit_key=-1;
static int hf_keys_copy_key=-1;
static int hf_keys_mwi_key=-1;
static int hf_keys_num_nav_keys=-1;
static int hf_keys_num_conspic_keys=-1;
static int hf_keys_send_key_rel=-1;
static int hf_keys_enable_vol=-1;
static int hf_keys_conspic_prog_key=-1;
static int hf_keys_acd_super_control=-1;
static int hf_keys_local_dial_feedback=-1;
static int hf_keys_admin_command=-1;
static int hf_keys_logical_icon_id=-1;
static int hf_keys_repeat_timer_one=-1;
static int hf_keys_repeat_timer_two=-1;
static int hf_keys_led_id=-1;
static int hf_keys_phone_icon_id=-1;
static int hf_keys_cadence_on_time=-1;
static int hf_keys_cadence_off_time=-1;
static int hf_keys_user_activity_timeout=-1;

static const value_string keys_led_ids[]={
 {0x00,"Message Waiting LED"},
 {0x01,"Handsfree or Supervisor Access* LED"},
 {0x02,"Headset LED"},
 {0x03,"Mute LED"},
 {0x07,"Query all LEDs"},
 {0,NULL}
};


static const value_string admin_commands[]={
 {0x00,"Global NIL mapping"},
 {0x01,"One-to-one mapping"},
 {0x02,"Single mapping"},
 {0x03,"RESERVED"},
 {0,NULL}
};

static const value_string key_switch_msgs[]={
 {0x00,"LED Update"},
 {0x01,"Query Hookswitch"},
 {0x02,"User Activity Timer Stop"},
 {0x03,"User Activity Timer Start"},
 {0x04,"Downloadable Free Form Icon Access (Hardcoded)"},
 {0x05,"Downloadable Free Form Icon Access (Downloadable)"},
 {0x06,"Query Key/Indicator Manager"},
 {0x07,"Key/Indicator Manager Options"},
 {0x08,"Logical Icon Mapping"},
 {0x09,"Key Repeat Timer Download"},
 {0x0a,"Query LED State"},
 {0x0b,"Query Phone Icon State"},
 {0x0c,"Indicator Cadence Download"},
 {0x0d,"User Activity Timer Download"},
 {0x0e,"Free Form Icon Download"},
 {0x0f,"Phone Icon Update"},
 {0xff,"Reserved"},
 {0,NULL}
};
static const value_string key_phone_msgs[]={
 {0x00,"Key Event"},
 {0x01,"LED Status Report"},
 {0x03,"On Hook"},
 {0x04,"Off Hook"},
 {0x05,"User Activity Timer Expired"},
 {0x06,"Hookswitch State (on hook)"},
 {0x07,"Hookswitch State (off hook)"},
 {0x08,"Key/Indicator Manager Attributes Info"},
 {0x09,"Key/Indicator Manager Options Report"},
 {0x0a,"Phone Icon Status Report"},
 {0xff,"Reserved"},
 {0,NULL}
};


static const true_false_string key_release={
 "The Key code will be sent when a valid key release occurs",
 "No command will be sent when a key is released"
};
static const true_false_string enable_vol={
 "Volume key depression will be sent",
 "Volume Key depression will not be sent"
};
static const true_false_string conspic_prog={
 "Forces the keycode associated with conspicuous key0 to be the same as progkey0",
 "Conspicuous value key 0 and programmable key 0 have different keycodes"
};
static const true_false_string acd_supervisor={
 "ACD supervisor path and indicator controlled by the Switch",
 "ACD supervisor path and indicator controlled by the Phone"
};

static const value_string local_dialpad_feedback[]={
 {0x00,"No tone feedback provided when a dial pad key is depressed"},
 {0x01,"Short 'click' provided when a dial pad key is depressed"},
 {0x02,"Corresponding DTMF tone provided when a dial pad key is depressed"},
 {0x03,"Reserved"},
 {0,NULL}
};

static const value_string number_nav_keys[]={
 {0x00,"no navigation keys"},
 {0x01,"two navigation keys"},
 {0x02,"four navigation keys"},
 {0x03,"not available"},
 {0,NULL}
};

static const value_string led_ids[]={
 {0x00,"Message Waiting LED"},
 {0x01,"Handsfree or Supervisor Access* LED"},
 {0x02,"Headset LED"},
 {0x03,"Mute LED"},
 {0,NULL}
};

static const value_string led_cadences[]={
 {0x00,"Off"},
 {0x01,"On"},
 {0x02,"Flash"},
 {0x03,"Flicker"},
 {0x04,""},
 {0x05,""},
 {0x06,"Blink"},
 {0x07,"Downloadable cadence"},
 {0,NULL}
};


#endif