aboutsummaryrefslogtreecommitdiff
path: root/misc/codes.go
blob: 6bc3e1377691d4a158ba27a6ab77b7bcf881a7df (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
165
166
167
168
169
170
package main

var phoneCodes = map[int]string{
	0x01000000: `SLT`,
	0x02000001: `APT KX-T7020/7320/7720`,
	0x02000003: `APT KX-T123220`,
	0x02020001: `APT KX-T7030/7033/7330/7730`,
	0x02020002: `APT KX-T123235/T7130`,
	0x02020003: `APT KX-T123230/TD7895/T7885`,
	0x02020005: `APT KX-T7735`,
	0x02030001: `APT KX-T7030/7033/7330/7730`,
	0x02030002: `APT KX-T123235/T7130`,
	0x02030003: `APT KX-T123230`,
	0x02030005: `APT KX-T7735`,
	0x02040001: `APT KX-T7050/7350/7750`,
	0x02040003: `APT KX-T123250`,
	0x02080003: `APT KX-T61620`,
	0x02090003: `APT KX-T61650`,
	0x020a0003: `APT KX-T61630/31`,
	0x020b0003: `APT KX-T61630/31`,
	0x020c0003: `APT KX-T30820/25`,
	0x020d0000: `APT KX-T30850/T7055`,
	0x020d0003: `APT KX-T7894 (Wireless)`,
	0x020e0003: `APT KX-T30830`,
	0x020f0003: `APT KX-T30830`,
	0x03000000: `Old DPT KX-T7235`,
	0x03000001: `Old DPT KX-T7x36`,
	0x03000002: `Old DPT KX-T7536`,
	0x03000012: `Old DPT KX-T7536+12CO`,
	0x03000801: `Old DPT KX-T7436`,
	0x03000802: `Old DPT KX-T7536`,
	0x03000812: `Old DPT KX-T7536+12CO`,
	0x03010000: `Old DPT KX-T7230`,
	0x03010001: `Old DPT KX-T7433`,
	0x03010002: `Old DPT KX-T7533`,
	0x03010003: `Old DPT KX-T7431`,
	0x03010004: `Old DPT KX-T7531`,
	0x03010012: `Old DPT KX-T7533+12CO`,
	0x03010014: `Old DPT KX-T7531+12CO`,
	0x03010801: `Old DPT KX-T7433`,
	0x03010802: `Old DPT KX-T7533`,
	0x03010803: `Old DPT KX-T7431`,
	0x03010804: `Old DPT KX-T7531/7565`,
	0x03010812: `Old DPT KX-T7533+12CO`,
	0x03010814: `Old DPT KX-T7531+12CO`,
	0x03018804: `Old DPT KX-T7565`,
	0x03040000: `Old DPT KX-T7250`,
	0x03040001: `Old DPT KX-T7420`,
	0x03040002: `Old DPT KX-T7450`,
	0x03040003: `Old DPT KX-T7520`,
	0x03040004: `Old DPT KX-T7550/7560`,
	0x03040013: `Old DPT KX-T7520+12CO`,
	0x03040014: `Old DPT KX-T7550+12CO`,
	0x03040801: `Old DPT KX-T7420`,
	0x03040802: `Old DPT KX-T7450`,
	0x03040803: `Old DPT KX-T7520`,
	0x03040804: `Old DPT KX-T7550`,
	0x03040813: `Old DPT KX-T7520+12CO`,
	0x03040814: `Old DPT KX-T7550+12CO`,
	0x03048004: `Old DPT KX-T7560`,
	0x03050000: `Old DPT KX-T7220/7451`,
	0x03050001: `Old DPT KX-T7425`,
	0x03050801: `Old DPT KX-T7425`,
	0x05000000: `Old DSSConsole KX-T123240`,
	0x05040000: `Old DSSConsole KX-T61640`,
	0x06000001: `New DSSConsole KX-T7440`,
	0x06000002: `New DSSConsole KX-T7441`,
	0x06000005: `New DSSConsole KX-T7540`,
	0x06000006: `New DSSConsole KX-T7541`,
	0x06050001: `New DSSConsole KX-T7640`,
	0x07100000: `Old format VPS (PCC)`,
	0x07100001: `Old format VPS (TVS75)`,
	0x07100002: `Old format VPS (TVS100)`,
	0x07200000: `New format VPS (PCC)`,
	0x08100000: `New DPT KX-T7625`,
	0x08100001: `New DPT KX-T7630`,
	0x08100002: `New DPT KX-T7633`,
	0x08100012: `New DPT KX-T7633+12CO`,
	0x08100022: `New DPT KX-T7633+USB`,
	0x08100032: `New DPT KX-T7633+12CO+USB`,
	0x08100003: `New DPT KX-T7636`,
	0x08100013: `New DPT KX-T7636+12CO`,
	0x08100023: `New DPT KX-T7636+USB`,
	0x08100033: `New DPT KX-T7636+12CO+USB`,
	0x08100004: `New DPT KX-T7665`,
	0x09100003: `IP-PT KX-NT136`,
	0x09100004: `IP-PT KX-NT265`,
	0x09100005: `IP-PT KX-NT265 Multi`,
	0x09100006: `IP-PT KX-NT343`,
	0x09100007: `IP-PT KX-NT346`,
	0x09100008: `IP-PT KX-NT366`,
	0x0a000000: `PS KX-TD7500CE (for TD PBX)`,
	0x0a000001: `PS KX-TD7590CE (for TD PBX)`,
	0x0a000010: `PS KX-TD7690 (2.4G SS: for TDA PBX)`,
	0x0a000020: `PS KX-TD7590CE (DECT: for TDA PBX)`,
	0x0a000080: `PS Other Manufacturer`,
	0x0a000081: `PS KX-TCD706 ISDN compliant PS`,
	0x0a000082: `PS KX-TCD706 ISDN compliant PS (with data)`,
	0x0a000083: `PS KX-TCD7580`,
	0x0e000001: `ISDN`,
	0x0e000002: `OPX`,
	0x0fffffff: `Not registered`,
}

var keyCodes = map[int]string{
	0x00: `Not stored key`,
	0x02: `ICD Group(GDN)`,
	0x03: `Single-CO`,
	0x04: `Group-CO`,
	0x05: `Loop-CO`,
	0x11: `DSS`,
	0x10: `Onetouch Dial`,
	0x13: `Save`,
	0x14: `Redial`,
	0x20: `Fwd/DND (Both)`,
	0x21: `Fwd/DND (External)`,
	0x22: `Fwd/DND (Internal)`,
	0x23: `Group Fwd/DND (Both)`,
	0x24: `Group Fwd/DND (External)`,
	0x25: `Group Fwd/DND (Internal)`,
	0x26: `TRS Level Change`,
	0x30: `Conference`,
	0x31: `Hold&Paging`,
	0x32: `Call Park`,
	0x33: `Park&Paging`,
	0x40: `Answer`,
	0x42: `Release`,
	0x43: `Terminate`,
	0x44: `EFA`,
	0x50: `ISDN Service`,
	0x51: `ISDN-Hold`,
	0x60: `Voice Mail Transfer`,
	0x61: `Two Way Record`,
	0x62: `Two Way Transfer`,
	0x63: `Live Call Screen(LCS)`,
	0x70: `Wake Up Alert`,
	0x71: `Wake Up Set`,
	0x72: `Check In`,
	0x73: `Check Out`,
	0x74: `Clean Up`,
	0x80: `Message Waiting`,
	0x81: `Account`,
	0x82: `Emergency Paging`,
	0x83: `Queue Redirection`,
	0x91: `Log-in/Log-out`,
	0x92: `Wrap Up`,
	0x93: `CLIR`,
	0x94: `COLR`,
	0x95: `Headset`,
	0x96: `Time Service`,
	0xa0: `Call Log`,
	0xa1: `Charge`,
	0xa2: `System Alarm`,
	0x87: `CTI`,
}

var pbxType = map[int]string{
	0:  `TDA100`,
	1:  `TDA200`,
	2:  `TDA30`,
	3:  `TDA50`,
	5:  `TDA15`,
	6:  `TDA600`,
	7:  `TDE100`,
	8:  `TDE200`,
	9:  `TDE600`,
	10: `NCP500`,
	11: `NCP1000`,
	12: `NCP3000`,
}