update for beta universally
[framework/telephony/libslp-tapi.git] / src / test_apps / tapi_sms_test.h
1 /*
2  * libslp-tapi
3  *
4  * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: Kyeongchul Kim <kyeongchul.kim@samsung.com>
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */
20
21 #ifndef TAPI_SMS_CDMA_H
22 #define TAPI_SMS_CDMA_H
23
24 /*
25    typedef unsigned char        INT8;
26    typedef unsigned short       INT16;
27    typedef unsigned int INT;
28    typedef unsigned long        INT32;
29
30    typedef unsigned char        BYTE;
31    */
32
33 typedef int BOOL;
34
35 #ifndef packed__
36 #define packed__ __attribute__ ((packed))
37 #endif
38
39 //=============================================================
40 //
41 //              PARAMETER_ID
42 //
43 //=============================================================
44 #define PARAMID_TELESERVICE_ID                          0x01    /* Teleservice Identifier */
45 #define PARAMID_SERVICE_CATEGORY                        0x02    /* Broadcast Service Category */
46 #define PARAMID_ADDRESS                                 0x03    /* Address */
47 #define PARAMID_SUBADDRESS                              0x04    /* Subaddress */
48 #define PARAMID_BEARER_REPLY                            0x05    /* Bearer Reply Option */
49 #define PARAMID_CAUSE_CODES                             0x06    /* Cause Codes */
50 #define PARAMID_MESSAGE_ID                              0x07    /* Message Identifier */
51 #define PARAMID_USER_DATA                                       0x08    /* User Data */
52 #define PARAMID_USER_RESPONSE_CODE              0x09    /* User Response Code */
53 #define PARAMID_MC_TIME_STAMP                   0x0A    /* Message Center Time Stamp */
54 #define PARAMID_VALIDITY_PERIOD_ABS             0x0B    /* Validity Period - Absolute */
55 #define PARAMID_VALIDITY_PERIOD_REL             0x0C    /* Validiry Period - Relative */
56 #define PARAMID_DEFERRED_DELIVERY_ABS   0x0D    /* Deferred Delivery Time - Absolute */
57 #define PARAMID_DEFERRED_DELIVERY_REL   0x0E    /* Deferred Delivery Time - Relative */
58 #define PARAMID_PRIORITY                                        0x0F    /* Priority Indicator */
59 #define PARAMID_PRIVACY                                 0x10    /* Privacy Indicator */
60 #define PARAMID_REPLY_OPTION                            0x11    /* Reply Option */
61 #define PARAMID_NUMBER_OF_MESSAGE               0x12    /* Number of Messages : Voice Mail Count */
62 #define PARAMID_ALERT_ON_DELIVERY                       0x13    /* Alert on Message Delivery */
63 #define PARAMID_LANGUAGE                                        0x14    /* Langauge Indicator */
64 #define PARAMID_CALLBACK                                        0x15    /* Call Back Number */
65 #define PARAMID_DISPLAY_MODE                            0x16    /* Display Mode */
66 #define PARAMID_MULTI_ENCODING_USER_DATA        0x17    /* Multiply Encoding User Data */
67 #define PARAMID_MEMORY_INDEX                            0x18    /* Memory address stored in Phone Memory */
68 #define PARAMID_BEARER_DATA                             0x19    /* Bearer data - raw data  */
69
70 //=============================================================
71 //
72 //              PARAMETER_DATA
73 //
74 //=============================================================
75
76 //------------------------------------------------------------------------------
77 // PARAMID_TELESERVICE_ID                       0x01    /* Teleservice Identifier */
78 //------------------------------------------------------------------------------
79 /* Common TELESERVICE ID's */
80 #define TELESERVICEID_CPT95                             0x1001  /* 4097 : Paging */
81 #define TELESERVICEID_CMT95                             0x1002  /* 4098 : Text Message */
82 #define TELESERVICEID_VMN95                             0x1003  /* 4099 : Voice Mail Notification */
83 #define TELESERVICEID_WAP                                       0x1004  /* WAP Message */
84
85 //------------------------------------------------------------------------------
86 // PARAMID_BCSERVICECATEGORY            0x02    /* Broadcast Service Category */
87 //------------------------------------------------------------------------------
88 // The Korean Wireless Service Carrier's do not use below Service Category's
89 // Below Service Category's depend on the Carriers.
90 #define CATEGORY_UNKNOWN                                0x00
91 #define CATEGORY_EMERGENCY                              0x01
92 #define CATEGORY_ADMIN                                  0x02
93 #define CATEGORY_MAINTENANCE                    0x03
94 #define CATEGORY_GEN_NEWS_LOC                   0x04
95 #define CATEGORY_GEN_NEWS_REG                   0x05
96 #define CATEGORY_GEN_NEWS_NAT                   0x06
97 #define CATEGORY_GEN_NEWS_INT                   0x07
98 #define CATEGORY_FIN_NEWS_LOC                   0x08
99 #define CATEGORY_FIN_NEWS_REG                   0x09
100 #define CATEGORY_FIN_NEWS_NAT                   0x0A
101 #define CATEGORY_FIN_NEWS_INT                   0x0B
102 #define CATEGORY_SPT_NEWS_LOC                   0x0C
103 #define CATEGORY_SPT_NEWS_REG                   0x0D
104 #define CATEGORY_SPT_NEWS_NAT                   0x0E
105 #define CATEGORY_SPT_NEWS_INT                   0x0F
106 #define CATEGORY_ENT_NEWS_LOC                   0x10
107 #define CATEGORY_ENT_NEWS_REG                   0x11
108 #define CATEGORY_ENT_NEWS_NAT                   0x12
109 #define CATEGORY_ENT_NEWS_INT                   0x13
110 #define CATEGORY_LOC_WEATHER                    0x14
111 #define CATEGORY_AREA_TRAFFIC                   0x15
112 #define CATEGORY_AIRPORT_SCHED                  0x16
113 #define CATEGORY_RESTAURANTS                    0x17
114 #define CATEGORY_LODGINGS                               0x18
115 #define CATEGORY_RETAILS                                0x19
116 #define CATEGORY_ADS                                    0x1A
117 #define CATEGORY_STOCK_QUOTES                   0x1B
118 #define CATEGORY_JOBS                                   0x1C
119 #define CATEGORY_MEDICAL                                0x1D
120 #define CATEGORY_TECH_NEWS                              0x1E
121 #define CATEGORY_MULTI                                  0x1F
122
123 //------------------------------------------------------------------------------
124 // PARAMID_ADDRESS                                      0x03    /* Address */
125 //------------------------------------------------------------------------------
126
127 /* DIGIT MODE : CHARi[] filed�� 4bit dtmf code���� 8bit code������ �ǹ��Ѵ�.
128 */
129 #define DIGITMODE_4BITDTMF                      0x00
130 #define DIGITMODE_8BITCODE                      0x01
131
132 /* NUMBER MODE
133 */
134 #define NUMMODE_NONE_DATANETWORK        0x00    /* in ANSI TI.607 */
135 #define NUMMODE_DATANETWORK                     0x01
136
137 /* NUMBER TYPE
138 */
139 /* The following are used when number mode is not data network address.
140 */
141 #define NUMBER_TYPE_UNKNOWN                     0x00
142 #define NUMBER_TYPE_INTERNATIONAL       0x01
143 #define NUMBER_TYPE_NATIONAL            0x02
144 #define NUMBER_TYPE_NETWORK                     0x03
145 #define NUMBER_TYPE_SUBSCRIBER          0x04
146 #define NUMBER_TYPE_RESERVED_5          0x05
147 #define NUMBER_TYPE_ABREVIATED          0x06
148 #define NUMBER_TYPE_RESERVED_7          0x07
149 /* The following are used only when number mode is data network address
150    mode.
151    */
152 #define NUMBER_TYPE_IP                          0x01
153 #define NUMBER_TYPE_EMAILADDR           0x02
154
155 /* NUMBER PLAN
156 */
157 #define NUMBER_PLAN_UNKNOWN                     0x00
158 #define NUMBER_PLAN_TELEPHONY           0x01    /* CCITT E.164 and E.163,  including ISDN plan */
159 #define NUMBER_PLAN_RESERVED_2          0x02
160 #define NUMBER_PLAN_DATA                        0x03    /* CCITT X.121 */
161 #define NUMBER_PLAN_TELEX                       0x04    /* CCITT F.69 */
162 #define NUMBER_PLAN_RESERVED_5          0x05
163 #define NUMBER_PLAN_RESERVED_6          0x06
164 #define NUMBER_PLAN_RESERVED_7          0x07
165 #define NUMBER_PLAN_RESERVED_8          0x08
166 #define NUMBER_PLAN_PRIVATE                     0x09
167 #define NUMBER_PLAN_RESERVED_10         0x0A
168 #define NUMBER_PLAN_RESERVED_11         0x0B
169 #define NUMBER_PLAN_RESERVED_12         0x0C
170 #define NUMBER_PLAN_RESERVED_13         0x0D
171 #define NUMBER_PLAN_RESERVED_14         0x0E
172 #define NUMBER_PLAN_RESERVED_15         0x0F
173
174 /* NUM_FIELDS
175 */
176 /*              MAXLENGTH_SMS_ADDRESS                   Maximum sms destination(or origination ) address /call back number */
177 #define MAXLENGTH_SMS_ADDRESS           20
178 /* CHARi
179 */
180
181 //------------------------------------------------------------------------------
182 // PARAMID_SUBADDRESS                           0x04    /* Subaddress */
183 //------------------------------------------------------------------------------
184 /* SUB ADDRESS TYPE
185 */
186 #define SUBADDR_NSAP                            0x00    /* CCITT X.213 or ISO 8348 AD2 */
187 #define SUBADDR_USER_SPECIFIED          0x01    /* e.g. X.25 */
188
189 /* ODD  : �̰��� �� �ʿ��Ѱ� ? phone���� ������ 4bit�� �����ϸ� �Ǵ°� �ƴѰ� ?
190 */
191 /* If the last CHARi field contains information only in the 4 most significant bits,
192    the ODD field shall be set to '1'.  Otherwise, the ODD field shall be set to '0'.
193    */
194 #define SUBADDR_EVEN                            0x00
195 #define SUBADDR_ODD                                     0x01
196
197 /* NUM_FIELDS
198 */
199
200 /* CHARi
201 */
202
203 //------------------------------------------------------------------------------
204 // PARAMID_BEARER_REPLY                         0x05    /* Bearer Reply Option */
205 //------------------------------------------------------------------------------
206 /* REPLY_SEQ
207 */
208 // Range : 0 - 63
209 //       refer to MAXLENGTH_SMS_REPLY_SEQUENCE_NUMBER
210
211 //------------------------------------------------------------------------------
212 // PARAMID_CAUSE_CODES                          0x06    /* Cause Codes */
213 //------------------------------------------------------------------------------
214 /* REPLY_SEQ
215 */
216 // Range : 0 - 63
217 // Refer to MAXLENGTH_SMS_REPLY_SEQUENCE_NUMBER
218
219 /* ERROR_CLASS
220 */
221 #define ERRORCLASS_NONE                                 0x00    /* No Error */
222 #define ERRORCLASS_TEMP                                 0x02    /* Tempory Error */
223 #define ERRORCLASS_PERMANENT                    0x03    /* Permanent Error */
224 #define ERRORCLASS_INTERNAL                             0x04    /* Phone Internal Error */
225
226 /* CAUSE_CODE : defined in IS-41D
227 */
228
229 /* A. Network Problems:
230 */
231 #define CAUSECODE_ADDRESS_VACANT                                                        0
232 #define CAUSECODE_ADDRESS_TRANSLATION_FAILURE                           1
233 #define CAUSECODE_NETWORK_RESOURCE_SHORTAGE                                     2
234 #define CAUSECODE_NETWORK_FAILURE                                                       3
235 #define CAUSECODE_INVALID_TELESERVICE_ID                                        4
236 #define CAUSECODE_OTHER_NETWORK_PROBLEM                                         5
237 #define CAUSECODE_OTHER_NETWORK_PROBLEM_MORE_FIRST                      6
238 /* all values within this range are treated as IPC_CAUSECODE_OTHER_NETWORK_PROBLEM_S    */
239 #define IPC_CAUSECODE_OTHER_NETWORK_PROBLEM_MORE_LAST                   31
240
241 /* B. Terminal Problems:
242 */
243 #define CAUSECODE_NO_PAGE_RESPONSE                                                      32
244 #define CAUSECODE_DESTINATION_BUSY                                                      33
245 #define CAUSECODE_NO_ACK                                                                        34
246 #define CAUSECODE_DESTINATION_RESOURCE_SHORTAGE                         35
247 #define CAUSECODE_SMS_DELIVERY_POSTPONED                                        36
248 #define CAUSECODE_DESTINATION_OUT_OF_SERVICE                            37
249 #define CAUSECODE_DESTINATION_NO_LONGER_AT_THIS_ADDRESS         38
250 #define CAUSECODE_OTHER_TERMINAL_PROBLEM                                        39
251 #define CAUSECODE_OTHER_TERMINAL_PROBLEM_MORE_FIRST                     40
252 /* all values within this range are treated as IPC_CAUSECODE_OTHER_TERMINAL_PROBLEM_S */
253 #define CAUSECODE_OTHER_TERMINAL_PROBLEM_MORE_LAST                      47
254 #define CAUSECODE_SMS_DELIVERY_POSTPONED_MORE_FIRST                     48
255 #define CAUSECODE_SMS_DELIVERY_POSTPONED_MORE_LAST                      63
256
257 /* C. Radio Interface Problems:
258 */
259 #define CAUSECODE_RADIO_IF_RESOURCE_SHORTAGE                            64
260 #define CAUSECODE_RADIO_IF_INCOMPATIBLE                                         65
261 #define CAUSECODE_OTHER_RADIO_IF_PROBLEM                                        66
262 #define CAUSECODE_OTHER_RADIO_IF_PROBLEM_MORE_FIRST                     67
263 /* all values within this range are treated as IPC_CAUSECODE_OTHER_RADIO_IF_PROBLEM */
264 #define CAUSECODE_OTHER_RADIO_IF_PROBLEM_MORE_LAST                      95
265
266 /* D. General Problems:
267 */
268 #define CAUSECODE_UNEXPECTED_PARM_SIZE                                          96
269 #define CAUSECODE_SMS_ORIGINATION_DENIED                                        97
270 #define CAUSECODE_SMS_TERMINATION_DENIED                                        98
271 #define CAUSECODE_SUPPL_SERVICE_NOT_SUPPORTED                           99
272 #define CAUSECODE_SMS_NOT_SUPPORTED                                                     100
273 #define CAUSECODE_RESERVED_101                                                          101
274 #define CAUSECODE_MISSING_EXPECTED_PARM                                         102
275 #define CAUSECODE_MISSING_MANDATORY_PARM                                        103
276 #define CAUSECODE_UNRECOGNIZED_PARM_VALUE                                       104
277 #define CAUSECODE_UNEXPECTED_PARM_VALUE                                         105
278 #define CAUSECODE_USER_DATA_SIZE_ERROR                                          106
279 #define CAUSECODE_OTHER_GENERAL_PROBLEMS                                        107
280 #define CAUSECODE_OTHER_GENERAL_PROBLEMS_MORE_FIRST                     108
281 /* all values within this range are treated as IPC_CAUSECODE_OTHER_GENERAL_PROBLEMS */
282 #define CAUSECODE_OTHER_GENERAL_PROBLEMS_MORE_LAST                      255
283
284 //------------------------------------------------------------------------------
285 // PARAMID_MESSAGE_ID                           0x07    /* Message Identifier */
286 //------------------------------------------------------------------------------
287 /* MESSAGE_TYPE
288 */
289 #define MESSAGETYPE_DELIVER                             0x01
290 #define MESSAGETYPE_SUBMIT                              0x02
291 #define MESSAGETYPE_CANCEL                              0x03
292 #define MESSAGETYPE_DELIVERY_ACK                0x04
293 #define MESSAGETYPE_USER_ACK                    0x05
294
295 /* MESSAGE_ID
296 */
297 // 2 bytes :    Range : 0 - 65535
298
299 //------------------------------------------------------------------------------
300 // PARAMID_USER_DATA                                    0x08    /* User Data */
301 //------------------------------------------------------------------------------
302 /* MESSAGE_ENCODING
303 */
304 #define MSGENCODING_UNSPECIFIED                                         0x00    /* OCTET */
305 #define MSGENCODING_IS91_EXTENDED_PROTOCOL                      0x01    /* */
306 #define MSGENCODING_7BIT_ASCII                                          0x02    /* */
307 #define MSGENCODING_IA5                                                         0x03    /* */
308 #define MSGENCODING_UNICODE                                                     0x04    /* */
309 #define MSGENCODING_SHIFT_JIS                                           0x05    /* */
310 #define MSGENCODING_KSC5601                                                     0x06    /* Korean */
311 #define MSGENCODING_HEBREW                                                      0x07    /* ISO_8859_8 */
312 #define MSGENCODING_LATIN                                                       0x08    /* ISO_8859_1 */
313 #define MSGENCODING_KSC5601_3PCS                                                0x10    /* Korean Standard */
314
315 #define MAXLENGTH_SMS_USER_DATA                                         160
316 //------------------------------------------------------------------------------
317 // PARAMID_USER_RESPONSE_CODE           0x09    /* User Response Code */
318 //------------------------------------------------------------------------------
319 /* USER_RESPONSE_CODE
320 */
321 // This field value depends on the Teleservices or the carrier
322 // This field had used in the Interactive Teleservices in Korea
323 // currently the wireless service carriers adopt the browser( WAP,etc )
324 // instead of SMS protocol in order to serve the interactive teleservice.
325
326 //------------------------------------------------------------------------------
327 // PARAMID_MC_TIME_STAMP                                0x0A    /* Message Center Time Stamp */
328 //------------------------------------------------------------------------------
329
330 /* YEAR
331 */
332 // 4bit BCD Code,  example : if the year is 2002, the YEAR field contains 0x02.
333
334 /* MONTH
335 */
336 // 1 ~ 12 ( in decimal )
337
338 /* DAY
339 */
340 // 1 ~ 31( in decimal )
341
342 /* HOUR
343 */
344 // 0 ~ 23 ( in decimal )
345
346 /* MINUTE
347 */
348 // 0 ~ 59 ( in decimal )
349
350 /* SECOND
351 */
352 // 0 ~ 59 ( in decimal )
353
354 //------------------------------------------------------------------------------
355 // PARAMID_VALIDITY_PERIOD_ABS          0x0B    /* Validity Period - Absolute */
356 //------------------------------------------------------------------------------
357
358 //------------------------------------------------------------------------------
359 // PARAMID_VALIDITY_PERIOD_REL          0x0C    /* Validiry Period - Relative */
360 //------------------------------------------------------------------------------
361 /* VALIDITY
362 */
363
364 //------------------------------------------------------------------------------
365 // PARAMID_DEFERRED_DELIVERY_ABS                0x0D    /* Deferred Delivery Time - Absolute */
366 //------------------------------------------------------------------------------
367
368 //------------------------------------------------------------------------------
369 // PARAMID_DEFERRED_DELIVERY_REL                0x0E    /* Deferred Delivery Time - Relative */
370 //------------------------------------------------------------------------------
371 /* DELIVERY_TIME
372 */
373
374 //------------------------------------------------------------------------------
375 // PARAMID_PRIORITY                                     0x0F    /* Priority Indicator */
376 //------------------------------------------------------------------------------
377 #define PRIORITY_NORMAL                                 0x00
378 #define PRIORITY_INTERACTIVE                    0x01
379 #define PRIORITY_URGENT                                 0x02
380 #define PRIORITY_EMERGENCY                              0x03
381
382 //------------------------------------------------------------------------------
383 // PARAMID_PRIVACY                                      0x10    /* Privacy Indicator */
384 //------------------------------------------------------------------------------
385 #define PRIVACY_NOT_RESTRICTED                  0x00
386 #define PRIVACY_RESTRICTED                              0x01
387 #define PRIVACY_CONFIDENTIAL                    0x02
388 #define PRIVACY_SECRET                                  0x03
389
390 //------------------------------------------------------------------------------
391 // PARAMID_REPLY_OPTION                         0x11    /* Reply Option */
392 //------------------------------------------------------------------------------
393
394 // USER_ACK_REQ : user ack requested
395 #define SMS_USER_ACK_NOT_REQUESTED              0x00
396 #define SMS_USER_ACK_REQUESTED                  0x01
397
398 // DAK_REQ : delivery ack requested
399 #define SMS_DELIVERY_ACK_NOT_REQUESTED  0x00
400 #define SMS_DELIVERY_ACK_REQUESTED              0x01
401
402 //------------------------------------------------------------------------------
403 // PARAMID_NUMBER_OF_MESSAGE                    0x12    /* Number of Messages : Voice Mail Count */
404 //------------------------------------------------------------------------------
405 /* MESSAGE_COUNT : voice mail count ( 0 - 99 )
406 */
407 // refer to             MAXLENGTH_SMS_VOICE_MAIL_COUNT          99
408
409 //------------------------------------------------------------------------------
410 // PARAMID_ALERT_ON_DELIVERY                    0x13    /* Alert on Message Delivery */
411 //------------------------------------------------------------------------------
412 // IS-637B Feature : not yet adopted
413 //              IPC_ALERT_PRIORITY_DEFAULT                      0x00    /* mobile default */
414 //              IPC_ALERT_PRIORITY_LOW                          0x01    /* low priority alert: This alert is defined by the mobile station */
415 //              IPC_ALERT_PRIORITY_MED                          0x02    /* medium priority alert : This alert is defined by the mobile station */
416 //              IPC_ALERT_PRIORITY_HIGH                         0x03    /* high priority alert : This alert is defined by the mobile station */
417
418 //------------------------------------------------------------------------------
419 // PARAMID_LANGUAGE                                     0x14    /* Langauge Indicator */
420 //------------------------------------------------------------------------------
421 #define IPC_LANGUAGE_UNKNOWN                            0x00
422 #define IPC_LANGUAGE_ENGLISH                            0x01
423 #define IPC_LANGUAGE_FRENCH                                     0x02
424 #define IPC_LANGUAGE_SPANISH                            0x03
425 #define IPC_LANGUAGE_JAPANESE                           0x04
426 #define IPC_LANGUAGE_KOREAN                                     0x05
427 #define IPC_LANGUAGE_CHINESE                            0x06
428 #define IPC_LANGUAGE_HEBREW                                     0x07
429 #define IPC_LANGUAGE_KOREAN1                            0x40    /* Used in korean 3 PCS's and STI */
430 #define IPC_LANGUAGE_KOREAN_SKT                         0xFE    /* Used in only SKT  */
431
432 //------------------------------------------------------------------------------
433 // PARAMID_CALLBACK                                     0x15    /* Call Back Number */
434 //------------------------------------------------------------------------------
435 /* DIGIT_MODE : CHARi[] filed�� 4bit dtmf code���� 8bit code������ �ǹ��Ѵ�.
436 */
437 // refer to :
438 //              DIGITMODE_4BITDTMF                      0x00
439 //              DIGITMODE_8BITCODE                      0x01
440
441 /* NUMBER_TYPE
442 */
443 // refer to :
444 //              NUMBER_TYPE_UNKNOWN                     0x00
445 //              NUMBER_TYPE_INTERNATIONAL               0x01
446 //              NUMBER_TYPE_NATIONAL                    0x02
447 //              NUMBER_TYPE_NETWORK                     0x03
448 //              NUMBER_TYPE_SUBSCRIBER          0x04
449 //              NUMBER_TYPE_RESERVED_5          0x05
450 //              NUMBER_TYPE_ABREVIATED          0x06
451 //              NUMBER_TYPE_RESERVED_7          0x07
452
453 /* NUMBER_PLAN
454 */
455 // refer to :
456 //              NUMBER_PLAN_UNKNOWN                     0x00
457 //              NUMBER_PLAN_TELEPHONY                   0x01    /* CCITT E.164 and E.163,  including ISDN plan */
458 //              NUMBER_PLAN_RESERVED_2          0x02
459 //              NUMBER_PLAN_DATA                                0x03    /* CCITT X.121 */
460 //              NUMBER_PLAN_TELEX                               0x04    /* CCITT F.69 */
461 //              NUMBER_PLAN_RESERVED_5          0x05
462 //              NUMBER_PLAN_RESERVED_6          0x06
463 //              NUMBER_PLAN_RESERVED_7          0x07
464 //              NUMBER_PLAN_RESERVED_8          0x08
465 //              NUMBER_PLAN_PRIVATE                     0x09
466 //              NUMBER_PLAN_RESERVED_10         0x0A
467 //              NUMBER_PLAN_RESERVED_11         0x0B
468 //              NUMBER_PLAN_RESERVED_12         0x0C
469 //              NUMBER_PLAN_RESERVED_13         0x0D
470 //              NUMBER_PLAN_RESERVED_14         0x0E
471 //              NUMBER_PLAN_RESERVED_15         0x0F
472
473 /* NUM_FIELDS
474 */
475 // refer to :
476 //              MAXLENGTH_SMS_ADDRESS                   32
477
478 /* CHARi
479 */
480
481 //------------------------------------------------------------------------------
482 // IPC_SMSPARAMID_DISPLAY_MODE                          0x16    /* Display Mode */
483 //------------------------------------------------------------------------------
484 // IS-637B Feature : not yet adopted
485
486
487 //------------------------------------------------------------------------------
488 // IPC_SMSPARAMID_MULTI_ENCODING_USER_DATA      0x17    /* Multiply Encoding User Data */
489 //------------------------------------------------------------------------------
490 // refer to :
491
492 // Teleservice Identifier
493 typedef struct{
494         TS_UINT8                        param_id;
495         TS_UINT8                        param_len;
496         TS_UINT16                       teleserv_id;
497 } packed__ ParamTeleserv_t;
498
499 // Broadcast Service Category
500 typedef struct{
501         TS_UINT8                        param_id;
502         TS_UINT8                        param_len;
503         TS_UINT16                       category;
504 } packed__ ParamBcServCat_t;
505
506 // Address
507 typedef struct{
508         TS_UINT8                        param_id;
509         TS_UINT8                        param_len;
510         TS_UINT8                        digit;
511         TS_UINT8                        num;
512         TS_UINT8                        numtype;
513         TS_UINT8                        numplan;
514         TS_UINT8                        len;
515         TS_UINT8                        CHARi[MAXLENGTH_SMS_ADDRESS];
516 } packed__ ParamAddress_t;
517
518 // Sub-Address
519 typedef struct{
520         TS_UINT8                        param_id;
521         TS_UINT8                        param_len;
522         TS_UINT8                        type;
523         TS_UINT8                        odd;
524         TS_UINT8                        len;
525         TS_UINT8                        CHARi[MAXLENGTH_SMS_ADDRESS];
526 } packed__ ParamSubAddress_t;
527
528 // Bearer Reply Option
529 typedef struct{
530         TS_UINT8                        param_id;
531         TS_UINT8                        param_len;
532         TS_UINT16                       repyseq;
533 } packed__ ParamBearerReplyOption_t;
534
535 // Cause Codes
536 typedef struct{
537         TS_UINT8                        param_id;
538         TS_UINT8                        param_len;
539         TS_UINT8                        repyseq;
540         TS_UINT8                        class;
541         TS_UINT8                        code;
542 } packed__ ParamErrorCause_t;
543
544 // Message Identifier
545 typedef struct{
546         TS_UINT8                        param_id;
547         TS_UINT8                        param_len;
548         TS_UINT8                        type;
549         TS_UINT16                       msg_id;
550 } packed__ ParamMsgId_t;
551
552 // User Data
553 typedef struct{
554         TS_UINT8                        param_id;
555         TS_UINT8                        param_len;
556         TS_UINT8                        encoding;
557         TS_UINT8                        len;
558         TS_UINT8                        CHARi[MAXLENGTH_SMS_USER_DATA];
559 } packed__ ParamUserData_t;
560
561 // User Response code
562 typedef struct{
563         TS_UINT8                        param_id;
564         TS_UINT8                        param_len;
565         TS_UINT8                        code;
566 } packed__ ParamUserResp_t;
567
568 // Message Center Time Stamp, Validity Period, Deferred Delivery Time
569 typedef struct{
570         TS_UINT8                        param_id;
571         TS_UINT8                        param_len;
572         TS_UINT8                        year;
573         TS_UINT8                        month;
574         TS_UINT8                        day;
575         TS_UINT8                        hours;
576         TS_UINT8                        minutes;
577         TS_UINT8                        seconds;
578 } packed__ ParamValidPeriodA_t, ParamDefDeliverTimeA_t;
579
580 // Validity Period - Relative
581 typedef struct{
582         TS_UINT8                        param_id;
583         TS_UINT8                        param_len;
584         TS_UINT8                        valid;
585 } packed__ ParamValidPeriodR_t, ParamDefDeliverTimeR_t;
586
587 // Priority Indicator, Alert on Message Delivery
588 typedef struct{
589         TS_UINT8                        param_id;
590         TS_UINT8                        param_len;
591         TS_UINT8                        priority;
592 } packed__ ParamPriority_t, ParamAlertPriority_t;
593
594 // Privacy Indicator
595 typedef struct{
596         TS_UINT8                        param_id;
597         TS_UINT8                        param_len;
598         TS_UINT8                        privacy;
599 } packed__ ParamPrivacy_t;
600
601 // Reply Option
602 typedef struct{
603         TS_UINT8                        param_id;
604         TS_UINT8                        param_len;
605         TS_UINT8                        user_ack;
606         TS_UINT8                        delivery_ack;
607 } packed__ ParamReplyOption_t;
608
609 // Number of Messages
610 typedef struct{
611         TS_UINT8                        param_id;
612         TS_UINT8                        param_len;
613         TS_UINT8                        count;
614 } packed__ ParamNumOfMsg_t;
615
616 // Language indicator
617 typedef struct{
618         TS_UINT8                        param_id;
619         TS_UINT8                        param_len;
620         TS_UINT8                        language;
621 } packed__ ParamLangInd_t;
622
623 // Message display Mode
624 typedef struct{
625         TS_UINT8                        param_id;
626         TS_UINT8                        param_len;
627         TS_UINT8                        disply_mode;
628 } packed__ ParamMsgDisplayMode_t;
629
630 // Address
631 typedef struct{
632         TS_UINT8                        param_id;
633         TS_UINT8                        param_len;
634         TS_UINT8                        digit;
635         TS_UINT8                        numtype;
636         TS_UINT8                        numplan;
637         TS_UINT8                        len;
638         TS_UINT8                        CHARi[MAXLENGTH_SMS_ADDRESS];
639 } packed__ ParamCallback_t;
640
641 typedef struct{
642         TS_UINT32                       index;
643         TS_UINT8                        data[255];
644 } packed__ Message_t;
645
646 #endif //TAPI_SMS_CDMA_H
647 // EOF
648