4 #include "../misc/coding/coding.h"
6 unsigned char *GSM_Countries
[] = {
14 "218", "Bosnia Herzegovina",
20 "230", "Czech Republic",
21 "231", "Slovak Republic",
23 "234", "United Kingdom",
53 "340", "French West Indies",
63 "420", "Saudi Arabia",
65 "424", "United Arab Emirates",
71 "437", "Kyrgyz Republic",
86 "528", "Brunei Darussalam",
89 "546", "New Caledonia",
90 "547", "French Polynesia",
97 "612", "Cote d'Ivoire",
119 "655", "South Africa",
126 unsigned char *GSM_Networks
[] = {
129 "202 10", "TELESTET",
130 "204 04", "LIBERTEL",
131 "204 08", "KPN Telecom",
134 "204 20", "Dutchtone NV",
135 "206 01", "PROXIMUS",
136 "206 10", "Mobistar",
138 "208 01", "ITINERIS",
140 "208 20", "Bouygues Telecom",
141 "213 03", "MOBILAND",
142 "214 01", "Airtel GSM 900-Spain",
143 "214 03", "Retevision Movil",
144 "214 07", "MOVISTAR",
145 "216 01", "Pannon GSM",
146 "216 70", "Vodafone",
147 "216 30", "Westel 900",
152 "220 02", "ProMonte GSM",
153 "220 03", "Telekom Srbije",
154 "222 01", "Telecom Italia Mobile",
156 "222 88", "Wind Telecomunicazioni SpA",
157 "226 01", "CONNEX GSM",
159 "228 01", "NATEL International",
160 "228 02", "diAx Mobile AG",
161 "230 01", "T-Mobile CZ",
165 "231 02", "EuroTel GSM",
167 "232 03", "T-Mobile AT",
169 "232 07", "tele.ring",
171 "234 15", "Vodafone",
172 "234 30", "T-Mobile UK",
174 "234 50", "Jersey Telecoms GSM",
175 "234 55", "Guernsey Telecoms GSM",
176 "234 58", "PRONTO GSM",
177 "238 01", "TDK-MOBIL",
179 "238 20", "TELIA DK",
181 "240 01", "Telia AB",
183 "240 08", "EUROPOLITAN",
184 "242 01", "Telenor Mobil",
185 "242 02", "NetCom GSM",
186 "244 03", "Telia City (Finland)",
187 "244 05", "Radiolinja",
189 "244 12", "DNA (FI2G)",
190 "244 14", "Alands Mobiltelefon",
193 "246 02", "Bite GSM",
195 "247 02", "BALTCOM GSM",
197 "248 02", "Radiolinja Eesti AS",
199 "250 01", "Mobile Telesystems",
200 "250 02", "North-West GSM",
201 "250 05", "Siberian Cellular Systems 900",
202 "250 07", "BM Telecom",
203 "250 10", "Don Telecom",
204 "250 12", "FECS-900",
205 "250 13", "Kuban GSM",
207 "250 44", "North Caucasian GSM",
211 "255 03", "Kyivstar",
212 "255 05", "Golden Telecom",
214 "260 01", "PLUS GSM",
216 "260 03", "IDEA Centertel",
217 "262 01", "T-Mobile D",
218 "262 02", "D2 PRIVAT",
220 "262 07", "Interkom",
221 "266 01", "Gibtel GSM",
227 "272 01", "EIRCELL-GSM",
228 "272 02", "Digifone",
229 "274 01", "Landssiminn GSM 900",
232 "278 01", "Vodafone Malta Limited",
234 "282 01", "Geocell Limited",
235 "282 02", "Magti GSM",
237 "284 01", "M-TEL GSM BG",
238 "286 01", "Turkcell",
239 "286 02", "TELSIM GSM",
240 "288 01", "Faroese Telecom",
241 "290 01", "Tele Greenland",
242 "293 40", "SI.MOBIL d. d.",
244 "293 70", "SI VEGA 070",
246 "302 37", "Microcell Connexions Inc",
247 "302 72", "Rogers AT&T",
249 "310 02", "Sprint Spectrum",
250 "310 11", "Wireless 2000 Telephone Co.",
251 "310 15", "BellSouth Mobility DCS",
252 "310 16", "T-Mobile",
253 "310 17", "Pac Bell",
254 "310 20", "T-Mobile",
255 "310 21", "T-Mobile",
256 "310 22", "T-Mobile",
257 "310 23", "T-Mobile",
258 "310 24", "T-Mobile",
259 "310 25", "T-Mobile",
260 "310 26", "T-Mobile",
261 "310 27", "T-Mobile",
262 "310 31", "T-Mobile",
263 "310 38", "AT&T Wireless",
264 "310 58", "T-Mobile",
265 "310 66", "T-Mobile",
266 "310 77", "Iowa Wireless Services LP",
267 "310 80", "T-Mobile",
269 "400 01", "AZERCELL GSM",
270 "400 02", "Bakcell GSM 2000",
271 "404 07", "TATA Cellular",
273 "404 11", "Essar Cellphone",
276 "404 15", "Essar Cellphone",
277 "404 20", "Max Touch",
278 "404 21", "BPL - Mobile",
279 "404 27", "BPL USWEST Cellular",
282 "404 41", "RPG Cellular",
284 "410 01", "Mobilink",
285 "413 02", "DIALOG GSM",
287 "415 03", "LIBANCELL",
288 "416 01", "Fastlink",
289 "417 09", "MOBILE SYRIA",
291 "420 01", "Al Jawwal",
294 "424 02", "UAE-ETISALAT",
295 "425 01", "Partner Communications Company Ltd",
296 "425 02", "Cellcom Israel Ltd",
297 "426 01", "BHR MOBILE PLUS",
298 "427 01", "QATARNET",
300 "434 04", "Daewoo Unitel",
303 "454 00", "TCSL GSM",
305 "454 06", "SMARTONE GSM",
306 "454 10", "New World PCS",
309 "455 01", "TELEMOVEL+ GSM900-Macau",
311 "456 02", "SAMART-GSM",
312 "457 01", "Lao Shinawatra Telecom",
313 "460 00", "China Telecom GSM",
315 "466 01", "Far EasTone Telecoms 900",
316 "466 06", "TUNTEX GSM 1800",
317 "466 88", "KG Telecom",
318 "466 92", "Chunghwa GSM",
321 "466 99", "TransAsia",
322 "470 01", "GrameenPhone Ltd",
323 "470 19", "Mobile 2000",
324 "502 12", "Maxis Mobile",
325 "502 13", "TM Touch",
326 "502 16", "DiGi 1800",
329 "505 01", "MobileNet",
331 "505 03", "VODAFONE",
333 "510 01", "SATELINDO",
334 "510 08", "LIPPO TELECOM",
335 "510 10", "TELKOMSEL",
336 "510 11", "Excelcom",
339 "515 02", "Globe Telecom",
342 "520 18", "Worldphone 1800",
344 "525 01", "SingTel Mobile",
346 "525 03", "MOBILEONE",
348 "530 01", "Vodafone New Zealand Limited",
349 "542 01", "Vodafone",
353 "602 02", "Tunicell",
354 "603 01", "ALGERIAN MOBILE NETWORK",
360 "615 01", "TOGO CELL",
361 "617 01", "Cellplus Mobile Comms",
363 "620 01", "SPACEFON",
365 "633 01", "Seychelles Cellular Services",
368 "635 10", "Rwandacell",
371 "641 10", "MTN-Uganda",
373 "643 01", "T.D.M GSM 900",
376 "646 03", "Sacel Madagascar S.A.",
381 "650 01", "Callpoint 900",
382 "651 01", "Vodacom Lesotho (Pty) Ltd",
385 "680 38", "NPI Wireless",
386 "730 01", "Entel Telefonia Movi",
387 "730 10", "Entel PCS",
393 char *GSM_GetNetworkName(char *NetworkCode
)
396 static char retval
[200];
398 EncodeUnicode(retval
,"unknown",7);
399 while (GSM_Networks
[i
*2] != NULL
) {
400 if (strcmp(GSM_Networks
[i
*2],NetworkCode
)) {
401 EncodeUnicode(retval
, GSM_Networks
[i
*2+1], strlen(GSM_Networks
[i
*2+1]));
409 char *GSM_GetCountryName(char *CountryCode
)
412 static char retval
[200];
414 EncodeUnicode(retval
,"unknown",7);
415 while (GSM_Countries
[i
*2] != NULL
) {
416 if (strcmp(GSM_Countries
[i
*2],CountryCode
)) {
417 EncodeUnicode(retval
, GSM_Countries
[i
*2+1], strlen(GSM_Countries
[i
*2+1]));
425 void NOKIA_EncodeNetworkCode(unsigned char* buffer
, unsigned char* output
)
427 EncodeBCD(buffer
, output
, 6, false);
428 buffer
[1] = buffer
[1] | 0xf0;
431 void NOKIA_DecodeNetworkCode(unsigned char* buffer
, unsigned char* output
)
433 DecodeBCD(output
, buffer
, 3);
434 output
[6] = output
[5];
435 output
[5] = output
[4];
436 output
[4] = output
[3];
440 /* How should editor hadle tabs in this file? Add editor commands here.
441 * vim: noexpandtab sw=8 ts=8 sts=8: