4 * Copyright (c) 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Ja-young Gu <jygu@samsung.com>
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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.
23 * @ingroup TelephonyAPI
24 * @addtogroup NetText_TAPI NetText(SMS)
29 @brief This file serves as a "C" header file defines structures for Tapi Network Text Services. \n
30 It contains a sample set of constants, enums, structs that would be required by applications.
33 #ifndef _TEL_NETTEXT_H_
34 #define _TEL_NETTEXT_H_
44 /** EF-SMSP digit length */
45 #define TAPI_SIM_SMSP_ADDRESS_LEN 20
46 /** EF-SMSP alpha id length */
47 #define TAPI_SIM_SMSP_ALPHA_ID_LEN_MAX 128
49 #define TAPI_NETTEXT_MSG_SIZE_MAX 918 /**< Maximum Message Size */
50 #define TAPI_NETTEXT_CB_SIZE_MAX 93 /** Maximum CB Message Size */
51 #define TAPI_NETTEXT_ETWS_SIZE_MAX 1252 /** Maximum ETWS Message Size */
52 #define TAPI_NETTEXT_ADDRESS_LEN_MAX 20 /* Nettext Address Length */
53 #define TAPI_NETTEXT_SCADDRESS_LEN_MAX 18 /* SC Address Length */
55 #define TAPI_NETTEXT_CB_PAGE_SIZE_MAX 9 /**< CB maximum page size*/
56 #define TAPI_NETTEXT_GSM_SMS_MSG_NUM_MAX 255 /**< Maximum GSM SMS message number*/
57 #define TAPI_NETTEXT_GSM_SMS_CBMI_LIST_SIZE_MAX 50 /**< Maximum GSM SMS CBMI list size*/
58 #define TAPI_NETTEXT_SMDATA_SIZE_MAX 165 /**< Maximum SMS data size that can be stored*/
59 #define TAPI_NETTEXT_MAX_SMS_SERVICE_CENTER_ADDR 12 /**<Maximum SMS service center address*/
60 #define TAPI_NETTEXT_MAX_INDEX 255 /**< Maximum index value for SMS */
62 #define TAPI_NETTEXT_SMSP_PARAMS_MAX_LEN 28
64 // ************************ CDMA Features **************************//
65 #define TAPI_NETTEXT_PARAM_TELESERVICE_MASK 1 << 0 /**< Teleservice parameter bit position */
66 #define TAPI_NETTEXT_PARAM_SERVICE_CATEGORY_MASK 1 << 1 /**< Service Category parameter bit position */
67 #define TAPI_NETTEXT_PARAM_ADDRESS_MASK 1 << 2 /**< Address parameter bit position */
68 #define TAPI_NETTEXT_PARAM_SUBADDRESS_MASK 1 << 3 /**< Subaddress parameter bit position */
69 #define TAPI_NETTEXT_PARAM_BEARER_REPLY_MASK 1 << 4 /**< Bearer reply parameter bit position */
70 #define TAPI_NETTEXT_PARAM_CAUSE_CODES_MASK 1 << 5 /**< Cause Code parameter bit position */
71 #define TAPI_NETTEXT_PARAM_MESSAGE_ID_MASK 1 << 6 /**< Message ID parameter bit position */
72 #define TAPI_NETTEXT_PARAM_USER_DATA_MASK 1 << 7 /**< User Data parameter bit position */
73 #define TAPI_NETTEXT_PARAM_USER_RESPONSE_CODE_MASK 1 << 8 /**< User Response Code parameter bit position */
74 #define TAPI_NETTEXT_PARAM_MC_TIME_STAMP_MASK 1 << 9 /**< Message Center Timestamp parameter bit position */
75 #define TAPI_NETTEXT_PARAM_VALIDITY_PERIOD_ABS_MASK 1 << 10 /**< Valid period Absolute parameter bit position */
76 #define TAPI_NETTEXT_PARAM_VALIDITY_PERIOD_REL_MASK 1 << 11 /**< Valid period Relative parameter bit position */
77 #define TAPI_NETTEXT_PARAM_DEFERRED_DELIVERY_ABS_MASK 1 << 12 /**< Deferred delivery absolute parameter bit position */
78 #define TAPI_NETTEXT_PARAM_DEFERRED_DELIVERY_REL_MASK 1 << 13 /**< Deferred delivery relative parameter bit position */
79 #define TAPI_NETTEXT_PARAM_PRIORITY_MASK 1 << 14 /**< Priority parameter bit position */
80 #define TAPI_NETTEXT_PARAM_PRIVACY_MASK 1 << 15 /**< Privacy parameter bit position */
81 #define TAPI_NETTEXT_PARAM_REPLY_OPTION_MASK 1 << 16 /**< Reply Option parameter bit position */
82 #define TAPI_NETTEXT_PARAM_NUMBER_OF_MESSAGE_MASK 1 << 17 /**< Number of message parameter bit position */
83 #define TAPI_NETTEXT_PARAM_ALERT_ON_DELIVERY_MASK 1 << 18 /**< Alert on delivery parameter bit position */
84 #define TAPI_NETTEXT_PARAM_LANGUAGE_MASK 1 << 19 /**< Language parameter bit position */
85 #define TAPI_NETTEXT_PARAM_CALLBACK_MASK 1 << 20 /**< Callback Number parameter bit position */
86 #define TAPI_NETTEXT_PARAM_DISPLAY_MODE_MASK 1 << 21 /**< Display mode parameter bit position */
87 #define TAPI_NETTEXT_PARAM_MULTI_ENCODING_USER_DATA_MASK 1 << 22 /**< Multi Encoding user data parameter bit position */
89 #define TAPI_NETTEXT_MAXLENGTH_SMS_MT_USER_DATA 160 /**< Maximum MT user data size*/
90 #define TAPI_NETTEXT_MAXLENGTH_SMS_MO_USER_DATA 160 /**< Maximum MO user data size*/
92 #define TAPI_NETTEXT_MAXLENGTH_SMS_ADDRESS 32 /**< MAX sms destination(or origination ) address /call back number */
94 #define TAPI_NETTEXT_ERR_CLASS0_STATUS_SEND_OK 0 /**< send success */
95 #define TAPI_NETTEXT_ERR_CLASS23_ADDRESS_VACANT 0 /**< address vacant */
96 #define TAPI_NETTEXT_ERR_CLASS23_ADDRESS_TRANSLATION_FAILURE 1 /**< address translation failure */
97 #define TAPI_NETTEXT_ERR_CLASS23_NETWORK_RESOURCE_SHORTAGE 2 /**< network resource shortage */
98 #define TAPI_NETTEXT_ERR_CLASS23_NETWORK_FAILURE 3 /**< network failure */
99 #define TAPI_NETTEXT_ERR_CLASS23_INVALID_TELESERVICE_ID 4 /**< invalid teleservice id */
100 #define TAPI_NETTEXT_ERR_CLASS23_OTHER_NETWORK_PROBLEM 5 /**< other network problem */
101 #define TAPI_NETTEXT_ERR_CLASS23_OTHER_NETWORK_PROBLEM_MORE_FIRST 6 /**< other network problem more first */
102 #define TAPI_NETTEXT_ERR_CLASS23_OTHER_NETWORK_PROBLEM_MORE_LAST 31 /**< other network problem more last */
103 #define TAPI_NETTEXT_ERR_CLASS23_NO_PAGE_RESPONSE 32 /**< no page response */
104 #define TAPI_NETTEXT_ERR_CLASS23_DESTINATION_BUSY 33 /**< destination busy */
105 #define TAPI_NETTEXT_ERR_CLASS23_NO_ACK 34 /**< no ack */
106 #define TAPI_NETTEXT_ERR_CLASS23_DESTINATION_RESOURCE_SHORTAGE 35 /**< destination resource shortage */
107 #define TAPI_NETTEXT_ERR_CLASS23_SMS_DELIVERY_POSTPONED 36 /**< sms delivery postponed */
108 #define TAPI_NETTEXT_ERR_CLASS23_DESTINATION_OUT_OF_SERVICE 37 /**< destination out of service */
109 #define TAPI_NETTEXT_ERR_CLASS23_DESTINATION_NO_LONGER_AT_THIS_ADDRESS 38 /**< destination no longer at this address */
110 #define TAPI_NETTEXT_ERR_CLASS23_OTHER_TERMINAL_PROBLEM 39 /**< other terminal problem */
111 #define TAPI_NETTEXT_ERR_CLASS23_OTHER_TERMINAL_PROBLEM_MORE_FIRST 40 /**< other terminal problem more first */
112 #define TAPI_NETTEXT_ERR_CLASS23_OTHER_TERMINAL_PROBLEM_MORE_LAST 47 /**< other terminal problem more last */
113 #define TAPI_NETTEXT_ERR_CLASS23_SMS_DELIVERY_POSTPONED_MORE_FIRST 48 /**< sms delivery postpone more first */
114 #define TAPI_NETTEXT_ERR_CLASS23_SMS_DELIVERY_POSTPONED_MORE_LAST 63 /**< sms delivery postpone more last */
115 #define TAPI_NETTEXT_ERR_CLASS23_RADIO_IF_RESOURCE_SHORTAGE 64 /**< radio interface resource shortage */
116 #define TAPI_NETTEXT_ERR_CLASS23_RADIO_IF_INCOMPATIBLE 65 /**< radio interface incompatible */
117 #define TAPI_NETTEXT_ERR_CLASS23_OTHER_RADIO_IF_PROBLEM 66 /**< other radio interface problem */
118 #define TAPI_NETTEXT_ERR_CLASS23_OTHER_RADIO_IF_PROBLEM_MORE_FIRST 67 /**< other radio interface problem more first */
119 #define TAPI_NETTEXT_ERR_CLASS23_OTHER_RADIO_IF_PROBLEM_MORE_LAST 95 /**< other radio interface problem more last */
120 #define TAPI_NETTEXT_ERR_CLASS23_UNEXPECTED_PARM_SIZE 96 /**< unexpected parameter size */
121 #define TAPI_NETTEXT_ERR_CLASS23_SMS_ORIGINATION_DENIED 97 /**< sms origination denied */
122 #define TAPI_NETTEXT_ERR_CLASS23_SMS_TERMINATION_DENIED 98 /**< sms termination denied */
123 #define TAPI_NETTEXT_ERR_CLASS23_SUPPL_SERVICE_NOT_SUPPORTED 99 /**< supplementary service not supported */
124 #define TAPI_NETTEXT_ERR_CLASS23_SMS_NOT_SUPPORTED 100 /**< sms not supported */
125 #define TAPI_NETTEXT_ERR_CLASS23_RESERVED_101 101 /**< reserved 101 */
126 #define TAPI_NETTEXT_ERR_CLASS23_MISSING_EXPECTED_PARM 102 /**< missing expected parameter */
127 #define TAPI_NETTEXT_ERR_CLASS23_MISSING_MANDATORY_PARM 103 /**< missing mandatory parameter value */
128 #define TAPI_NETTEXT_ERR_CLASS23_UNRECOGNIZED_PARM_VALUE 104 /**< unrecognized parameter value */
129 #define TAPI_NETTEXT_ERR_CLASS23_UNEXPECTED_PARM_VALUE 105 /**< unexpected parameter value */
130 #define TAPI_NETTEXT_ERR_CLASS23_USER_DATA_SIZE_ERROR 106 /**< user data size error */
131 #define TAPI_NETTEXT_ERR_CLASS23_OTHER_GENERAL_PROBLEMS 107 /**< other general problem */
132 #define TAPI_NETTEXT_ERR_CLASS23_OTHER_GENERAL_PROBLEMS_MORE_FIRST 108 /**< other general problem first */
133 #define TAPI_NETTEXT_ERR_CLASS23_OTHER_GENERAL_PROBLEMS_MORE_LAST 255 /**< other general problem last */
135 #define TAPI_NETTEXT_ERR_CLASS4_WAITING_FOR_TL_ACK 1 /**< waiting for transport ack */
136 #define TAPI_NETTEXT_ERR_CLASS4_OUT_OF_RESOURCES 2 /**< out of resource */
137 #define TAPI_NETTEXT_ERR_CLASS4_ACCESS_TOO_LARGE 3 /**< access to large */
138 #define TAPI_NETTEXT_ERR_CLASS4_DTC_TOO_LARGE 4 /**< DTC too large */
139 #define TAPI_NETTEXT_ERR_CLASS4_DTC_CONNECTED 5 /**< DTC connected */
140 #define TAPI_NETTEXT_ERR_CLASS4_NETWORK_NOT_READY 6 /**< network not ready */
141 #define TAPI_NETTEXT_ERR_CLASS4_NO_SVC 7 /**< no service */
142 #define TAPI_NETTEXT_ERR_CLASS4_PHONE_NOT_READY 8 /**< phone not ready */
143 #define TAPI_NETTEXT_ERR_CLASS4_NOT_ALLOWED_IN_AMPS 9 /**< fail to allowed in amps */
144 #define TAPI_NETTEXT_ERR_CLASS4_CANNOT_SEND_BROADCAST 10 /**< fail to send broadcast */
145 #define TAPI_NETTEXT_ERR_CLASS4_INVALID_TRANSACTION_ID
146 // ********************************************************************//
149 * @enum TelSmsMsgStatus_t
150 * This enumeration defines the network text status type.
154 TAPI_NETTEXT_STATUS_READ, /**< MT message, stored and read */
155 TAPI_NETTEXT_STATUS_UNREAD, /**< MT message, stored and unread */
156 TAPI_NETTEXT_STATUS_SENT, /**< MO message, stored and sent */
157 TAPI_NETTEXT_STATUS_UNSENT, /**< MO message, stored but not sent */
158 TAPI_NETTEXT_STATUS_DELIVERED, /**< delivered destination */
159 TAPI_NETTEXT_STATUS_DELIVERY_UNCONFIRMED, /**< Service centre forwarded message but is unable to confirm delivery*/
160 TAPI_NETTEXT_STATUS_MESSAGE_REPLACED, /**< Message has been replaced*/
161 TAPI_NETTEXT_STATUS_RESERVED /**< Reserved for future use*/
165 * @enum TelSmsMemStatusType
166 * This enumeration defines the memory status type.
170 TAPI_NETTEXT_PDA_MEMORY_STATUS_AVAILABLE = 0x01, /**< PDA Memory Available */
171 TAPI_NETTEXT_PDA_MEMORY_STATUS_FULL = 0x02, /**< PDAMemory is Full */
172 TAPI_NETTEXT_PHONE_MEMORY_STATUS_AVAILABLE = 0x03, /**< Phone memory Available */
173 TAPI_NETTEXT_PHONE_MEMORY_STATUS_FULL = 0x04, /**< phone memory is full */
174 }TelSmsMemStatusType;
177 * @enum TelSmsBearerType_t
178 * This enum defines the different bearer types
182 TAPI_NETTEXT_BEARER_PS_ONLY = 0x01, /**< Send SMS only on PS Bearer */
183 TAPI_NETTEXT_BEARER_CS_ONLY, /**< Send SMS only on CS Bearer */
184 TAPI_NETTEXT_BEARER_PS_PREFERRED, /**<Send SMS preferably on PS Bearer*/
185 TAPI_NETTEXT_BEARER_CS_PREFERRED , /**<Send SMS preferably on CS Bearer*/
186 TAPI_NETTEXT_NO_PREFERRED_BEARER /**<SMS is sent based on default preferred bearer set at OEM based on vendor/operator preference*/
187 } TelSmsBearerType_t;
191 * @enum TelSmsCbMsgType_t
192 * This enumeration defines the different CB message types.
196 TAPI_NETTEXT_CB_MSG_GSM = 1, /**< GSM Cell broadcast message */
197 TAPI_NETTEXT_CB_MSG_UMTS /**< UMTSCell broadcast message */
201 * @enum TelSmsEtwsMsgType_t
202 * This enumeration defines the different ETWS message types.
206 TAPI_NETTEXT_ETWS_PRIMARY = 0, /**< Primary ETWS message */
207 TAPI_NETTEXT_ETWS_SECONDARY_GSM, /**< GSM Secondary ETWS message */
208 TAPI_NETTEXT_ETWS_SECONDARY_UMTS, /**< UMTS Secondary ETWS message */
209 } TelSmsEtwsMsgType_t;
212 * @enum TelSmsResponse_t
213 * This enum defines the different response types that come in the
214 * sent status acknowledgement/notification after sending a message to the network
218 TAPI_NETTEXT_SENDSMS_SUCCESS = 0x00, /**<Message send success*/
219 TAPI_NETTEXT_ROUTING_NOT_AVAILABLE, /**< Message routing not available*/
220 TAPI_NETTEXT_INVALID_PARAMETER, /**< Invalid parameter present in TPDU*/
221 TAPI_NETTEXT_DEVICE_FAILURE, /**< Device failure*/
222 TAPI_NETTEXT_SERVICE_RESERVED, /**< Reserved Service*/
223 TAPI_NETTEXT_INVALID_LOCATION, /**< Invalid location*/
224 TAPI_NETTEXT_NO_SIM, /**< No SIM error*/
225 TAPI_NETTEXT_SIM_NOT_READY, /**< SIM not ready error*/
226 TAPI_NETTEXT_NO_NETWORK_RESP, /**< No response from network*/
227 TAPI_NETTEXT_DEST_ADDRESS_FDN_RESTRICTED,/**< Destination address restricted*/
228 TAPI_NETTEXT_SCADDRESS_FDN_RESTRICTED, /**< Service center address restricted*/
229 TAPI_NETTEXT_RESEND_ALREADY_DONE, /**< Resend a operation already done*/
230 TAPI_NETTEXT_SCADDRESS_NOT_AVAILABLE, /**< SCA address not available*/
231 TAPI_NETTEXT_UNASSIGNED_NUMBER = 0x8001, /**< Unassigned number*/
232 TAPI_NETTEXT_OPERATOR_DETERMINED_BARRING = 0x8008,/**< Operator determined barring*/
233 TAPI_NETTEXT_CALL_BARRED = 0x800A, /**< Call barred*/
234 TAPI_NETTEXT_MESSAGE_TRANSFER_REJECTED = 0x8015, /**< Message transfer rejected*/
235 TAPI_NETTEXT_MEMORY_CAPACITY_EXCEEDED = 0x8016, /**< Memory capacity exceeded/memory full*/
236 TAPI_NETTEXT_DESTINAITION_OUTOFSERVICE = 0x801B, /**< Destination number/address out of service*/
237 TAPI_NETTEXT_UNSPECIFIED_SUBSCRIBER = 0x801C, /**< Unspecified subscriber*/
238 TAPI_NETTEXT_FACILITY_REJECTED = 0x801D, /**< Facility rejected*/
239 TAPI_NETTEXT_UNKNOWN_SUBSCRIBER = 0x801E, /**< Unknown subscriber*/
240 TAPI_NETTEXT_NETWORK_OUTOFORDER = 0x8026, /**< Network out of order*/
241 TAPI_NETTEXT_TEMPORARY_FAILURE = 0x8029, /**< Temporary failure*/
242 TAPI_NETTEXT_CONGESTION = 0x802A, /**< Congestion happened*/
243 TAPI_NETTEXT_RESOURCES_UNAVAILABLE = 0x802F, /**< Resource unavailable*/
244 TAPI_NETTEXT_FACILITY_NOT_SUBSCRIBED = 0x8032, /**< Facility not subscribed by the user*/
245 TAPI_NETTEXT_FACILITY_NOT_IMPLEMENTED = 0x8045, /**< Facility not implemented*/
246 TAPI_NETTEXT_INVALID_REF_VALUE = 0x8051, /**< Invalid reference value*/
247 TAPI_NETTEXT_INVALID_MSG = 0x805F, /**< Invalid message*/
248 TAPI_NETTEXT_INVALID_MANDATORY_INFO = 0x8060, /**< Invalid Mandatory information*/
249 TAPI_NETTEXT_MESSAGE_TYPE_NOT_IMPLEMENTED = 0x8061,/**< Message type not implemented*/
250 TAPI_NETTEXT_MESSAGE_NOT_COMPAT_PROTOCOL = 0x8062, /**< Message not compact protocol*/
251 TAPI_NETTEXT_IE_NOT_IMPLEMENTED = 0x8063, /**< Information element not implemented*/
252 TAPI_NETTEXT_PROTOCOL_ERROR = 0x806F, /**< Protocol error*/
253 TAPI_NETTEXT_INTERWORKING = 0x807F, /**< Networking error*/
254 TAPI_NETTEXT_ME_FULL = 0x8080, /**< SMS ME FULL */
255 TAPI_NETTEXT_SIM_FULL = 0x8081, /**< SMS SIM FULL */
256 TAPI_NETTEXT_TIMEOUT /**< Timeout error */
259 /** @enum TelSmsCause_t
260 * This enum defines the different cause types that come in the
261 * sent status acknowledgement/notification after sending a message to the network
267 TAPI_NETTEXT_SUCCESS, /**< SMS Operation successful*/
268 TAPI_NETTEXT_INVALID_PARAMETER_FORMAT, /**< Invalid format for some parameters passed in Data package information(TPDU)*/
269 TAPI_NETTEXT_PHONE_FAILURE, /**<SMS operation failed due to Modem failure*/
270 TAPI_NETTEXT_SIM_BUSY, /**< SMS SIM operation cannot be performed as SIM is busy with some other operation*/
271 TAPI_NETTEXT_SIM_FAILURE, /**< SMS SIM operation cannot be performed due to SIM failure */
272 TAPI_NETTEXT_UNKNOWN, /**< unknown error*/
273 TAPI_NETTEXT_MEMORY_FAILURE, /**< Error while accessing memory or allocation of memory for SMS operation.*/
274 TAPI_NETTEXT_OPERATION_NOT_SUPPORTED /**< operation not allowed/supported*/
278 * @enum TelSmsSetResponse
279 * This defines the response values
283 TAPI_NETTEXT_CBSETCONFIG_RSP, /**< cellbroadcast config response */
284 TAPI_NETTEXT_SETPREFERREDBEARER_RSP, /**< set preferred bearer response */
285 TAPI_NETTEXT_SETPARAMETERS_RSP, /**< set parameter response */
286 TAPI_NETTEXT_SETMEMORYSTATUS_RSP, /**< set memory status response*/
287 TAPI_NETTEXT_SETMESSAGESTATUS_RSP, /**< set message status response*/
288 TAPI_NETTEXT_SETDEVICESTATUS_RSP, /**< set device status response*/
289 TAPI_NETTEXT_SETSCADDR_RSP, /**< set SCA address response */
290 TAPI_NETTEXT_SET_RSP_MAX /**< maximum limit*/
293 // ************************ CDMA Features **************************//
294 /** @enum TelSmsIs637AlertPriority_t
295 * This enum defines the type of alerts used to distinguish different priorities
299 TAPI_NETTEXT_ALERT_PRIORITY_DEFAULT = 0, /**< Mobile default alert */
300 TAPI_NETTEXT_ALERT_PRIORITY_LOW, /**< Low priority alert */
301 TAPI_NETTEXT_ALERT_PRIORITY_MEDIUM, /**< Medium priority alert */
302 TAPI_NETTEXT_ALERT_PRIORITY_HIGH, /**< High priority alert */
303 } TelSmsIs637AlertPriority_t;
305 /** @enum TelSmsIs637Privacy_t
306 * This enum defines the desired privacy level of the message
309 TAPI_NETTEXT_PRIVACY_NOT_RESTRICTED = 0, /**< Not restricted */
310 TAPI_NETTEXT_PRIVACY_RESTRICTED, /**< Restricted */
311 TAPI_NETTEXT_PRIVACY_CONFIDENTIAL, /**< Confidential */
312 TAPI_NETTEXT_PRIVACY_SECRET, /**< Secret */
313 } TelSmsIs637Privacy_t;
315 /** @enum TelSmsIs637Priority_t
316 * This enum defines the priority level of the message
319 TAPI_NETTEXT_PRIORITY_NORMAL = 0, /**< Normal */
320 TAPI_NETTEXT_PRIORITY_INTERACTIVE, /**< Interactive */
321 TAPI_NETTEXT_PRIORITY_URGENT, /**< Urgent */
322 TAPI_NETTEXT_PRIORITY_EMERGENCY, /**< Emergency */
323 } TelSmsIs637Priority_t;
325 /** @enum TelSmsIs637LangIndicator_t
326 * This enum defines the language of the message so that the receiving mobile station can
327 * discard those messages that are not in the user's preferred language
330 TAPI_NETTEXT_LANG_UNKNOWN = 0x0, /**< Unknown or unspecified */
331 TAPI_NETTEXT_LANG_ENGLISH, /**< English */
332 TAPI_NETTEXT_LANG_FRENCH, /**< French */
333 TAPI_NETTEXT_LANG_SPANISH, /**< Spanish */
334 TAPI_NETTEXT_LANG_JAPANESE, /**< Japanese */
335 TAPI_NETTEXT_LANG_KOREAN, /**< Korean */
336 TAPI_NETTEXT_LANG_CHINESE, /**< Chinese */
337 TAPI_NETTEXT_LANG_HEBREW, /**< Hebrew */
338 } TelSmsIs637LangIndicator_t;
340 /** @enum TelSmsIs637MsgDisplayMode_t
341 * This enum defines the display mode to the mobile station when to display the received message
344 TAPI_NETTEXT_MSG_DISPLAY_IMMEDIATE = 0x0, /**< The mobile station is to display the received message as soon as possible */
345 TAPI_NETTEXT_MSG_DISPLAY_DEFAULT, /**< he mobile station is to display the received message based on a pre-defined mode in the mobile station. */
346 TAPI_NETTEXT_MSG_DISPLAY_USER_INVOKE = 0x3, /**< The mobile station is to display the received message based on the mode selected by the user. */
347 TAPI_NETTEXT_MSG_DISPLAY_RESERVED, /**< Reserved */
348 } TelSmsIs637MsgDisplayMode_t;
350 /** @enum TelSmsIs637ErrorClass_t
351 * This enum defines the error report class
354 TAPI_NETTEXT_MSG_ERROR_CLASS_NONE = 0x0, /**< None error(for SMS ack) */
355 TAPI_NETTEXT_MSG_ERROR_CLASS_TEMPORARY_ERROR = 0x2, /**< Temporary error(for SMS ack) */
356 TAPI_NETTEXT_MSG_ERROR_CLASS_PERMANENT_ERROR = 0x3, /**< Permanent error(for SMS ack) */
357 TAPI_NETTEXT_MSG_ERROR_CLASS_PHONE_INTERNAL_ERROR = 0x4, /**< Phone Internal Status (for Send status) */
358 } TelSmsIs637ErrorClass_t;
360 /** @enum TelSmsBroadCastCategory_t
361 * This enum defines the Broadcast Service Category
364 TAPI_NETTEXT_CATEGORY_UNKNOWN = 0x00, /**< Unknown category */
365 TAPI_NETTEXT_CATEGORY_EMERGENCY = 0x01, /**< Emergency category */
366 TAPI_NETTEXT_CATEGORY_ADMIN = 0x02, /**< Admin category */
367 TAPI_NETTEXT_CATEGORY_MAINTENANCE = 0x03, /**< Maintenance category */
368 TAPI_NETTEXT_CATEGORY_GEN_NEWS_LOC = 0x04, /**< General News(Local) category */
369 TAPI_NETTEXT_CATEGORY_GEN_NEWS_REG = 0x05, /**< General News(Regional) category */
370 TAPI_NETTEXT_CATEGORY_GEN_NEWS_NAT = 0x06, /**< General News(National) category */
371 TAPI_NETTEXT_CATEGORY_GEN_NEWS_INT = 0x07, /**< General News(International) category */
372 TAPI_NETTEXT_CATEGORY_FIN_NEWS_LOC = 0x08, /**< Business/Financial News(Local) category */
373 TAPI_NETTEXT_CATEGORY_FIN_NEWS_REG = 0x09, /**< Business/Financial News(Regional) category */
374 TAPI_NETTEXT_CATEGORY_FIN_NEWS_NAT = 0x0A, /**< Business/Financial News(National) category */
375 TAPI_NETTEXT_CATEGORY_FIN_NEWS_INT = 0x0B, /**< Business/Financial News(International) category */
376 TAPI_NETTEXT_CATEGORY_SPT_NEWS_LOC = 0x0C, /**< Sports News(Local) category */
377 TAPI_NETTEXT_CATEGORY_SPT_NEWS_REG = 0x0D, /**< Sports News(Regional) category */
378 TAPI_NETTEXT_CATEGORY_SPT_NEWS_NAT = 0x0E, /**< Sports News(National) category */
379 TAPI_NETTEXT_CATEGORY_SPT_NEWS_INT = 0x0F, /**< Sports News(International) category */
380 TAPI_NETTEXT_CATEGORY_ENT_NEWS_LOC = 0x10, /**< Entertainment News(Local) category */
381 TAPI_NETTEXT_CATEGORY_ENT_NEWS_REG = 0x11, /**< Entertainment News(Regional) category */
382 TAPI_NETTEXT_CATEGORY_ENT_NEWS_NAT = 0x12, /**< Entertainment News(National) category */
383 TAPI_NETTEXT_CATEGORY_ENT_NEWS_INT = 0x13, /**< Entertainment News(International) category */
384 TAPI_NETTEXT_CATEGORY_LOC_WEATHER = 0x14, /**< Local Weather category */
385 TAPI_NETTEXT_CATEGORY_AREA_TRAFFIC = 0x15, /**< Area Traffic Reports category */
386 TAPI_NETTEXT_CATEGORY_AIRPORT_SCHED = 0x16, /**< Local Airport Flight Schedules category */
387 TAPI_NETTEXT_CATEGORY_RESTAURANTS = 0x17, /**< Restaurants category */
388 TAPI_NETTEXT_CATEGORY_LODGINGS = 0x18, /**< Lodgings category */
389 TAPI_NETTEXT_CATEGORY_RETAILS = 0x19, /**< Retail Directory category */
390 TAPI_NETTEXT_CATEGORY_ADS = 0x1A, /**< Advertisements category */
391 TAPI_NETTEXT_CATEGORY_STOCK_QUOTES = 0x1B, /**< Stock Quotes category */
392 TAPI_NETTEXT_CATEGORY_JOBS = 0x1C, /**< Employment Opportunities category */
393 TAPI_NETTEXT_CATEGORY_MEDICAL = 0x1D, /**< Medical/Health/Hospitals category */
394 TAPI_NETTEXT_CATEGORY_TECH_NEWS = 0x1E, /**< Technology News category */
395 TAPI_NETTEXT_CATEGORY_MULTI = 0x1F, /**< Multi-category */
396 } TelSmsBroadCastCategory_t;
398 /** @enum TelSmsMsgType_t
399 * This enum defines the type of IS637 message
402 TAPI_NETTEXT_MESSAGETYPE_DELIVER = 0x01, /**< sms deliver message */
403 TAPI_NETTEXT_MESSAGETYPE_SUBMIT = 0x02, /**< sms submit message */
404 TAPI_NETTEXT_MESSAGETYPE_CANCEL = 0x03, /**< sms cancellation message */
405 TAPI_NETTEXT_MESSAGETYPE_DELIVERY_ACK = 0x04, /**< sms delivery acknowledgment message */
406 TAPI_NETTEXT_MESSAGETYPE_USER_ACK = 0x05, /**< sms user acknowledgment message */
409 /** @enum TelSmsIs637DigitMode_t
410 * This enum defines the type of address whether it is 4-bit mode or 8-bit mode
413 TAPI_NETTEXT_DIGITMODE_4BITDTMF = 0x00, /**< 4-bit mode */
414 TAPI_NETTEXT_DIGITMODE_8BITCODE = 0x01, /**< 8-bit mode */
415 } TelSmsIs637DigitMode_t;
417 /** @enum TelSmsIs637NumberMode_t
418 * This enum defines the mode of address number to indicate whether the address type is as defined in ANSI TI.607 or is a data network address
421 TAPI_NETTEXT_NUMMODE_NONE_DATANETWORK = 0x00, /**< in ANSI TI.607 */
422 TAPI_NETTEXT_NUMMODE_DATANETWORK = 0x01, /**< in Data Network */
423 } TelSmsIs637NumberMode_t;
425 /** @enum TelSmsIs637NumberType_t
426 * This enum defines the type of address
429 TAPI_NETTEXT_NUMBER_TYPE_UNKNOWN = 0x00, /**< Unknown */
430 TAPI_NETTEXT_NUMBER_TYPE_INTERNATIONAL = 0x01, /**< International number*/
431 TAPI_NETTEXT_NUMBER_TYPE_NATIONAL = 0x02, /**< National number */
432 TAPI_NETTEXT_NUMBER_TYPE_NETWORK = 0x03, /**< Abbreviated number */
433 TAPI_NETTEXT_NUMBER_TYPE_SUBSCRIBER = 0x04, /**< Abbreviated number */
434 TAPI_NETTEXT_NUMBER_TYPE_RESERVED_5 = 0x05, /**< Reserved */
435 TAPI_NETTEXT_NUMBER_TYPE_ABBREVIATED = 0x06, /**< Abbreviated number */
436 TAPI_NETTEXT_NUMBER_TYPE_RESERVED_7 = 0x07, /**< Reserved */
437 TAPI_NETTEXT_NUMBER_TYPE_IP = 0x11, /**< Internet Protocol(RFC 791) */
438 TAPI_NETTEXT_NUMBER_TYPE_EMAILADDR = 0x12, /**< Internet Email Address(RFC 822) */
439 } TelSmsIs637NumberType_t;
441 /** @enum TelSmsIs637NumberPlan_t
442 * This enum defines the plan of address
445 TAPI_NETTEXT_NUMBER_PLAN_UNKNOWN = 0x00, /**< Unknown */
446 TAPI_NETTEXT_NUMBER_PLAN_TELEPHONY = 0x01, /**< ISDN/Telephony numbering plan */
447 TAPI_NETTEXT_NUMBER_PLAN_RESERVED_2 = 0x02, /**< Reserved */
448 TAPI_NETTEXT_NUMBER_PLAN_DATA = 0x03, /**< Data numbering plan */
449 TAPI_NETTEXT_NUMBER_PLAN_TELEX = 0x04, /**< CTelex numbering plan */
450 TAPI_NETTEXT_NUMBER_PLAN_RESERVED_5 = 0x05, /**< Reserved */
451 TAPI_NETTEXT_NUMBER_PLAN_RESERVED_6 = 0x06, /**< Reserved */
452 TAPI_NETTEXT_NUMBER_PLAN_RESERVED_7 = 0x07, /**< Reserved */
453 TAPI_NETTEXT_NUMBER_PLAN_RESERVED_8 = 0x08, /**< Reserved */
454 TAPI_NETTEXT_NUMBER_PLAN_PRIVATE = 0x09, /**< Private numbering plan */
455 TAPI_NETTEXT_NUMBER_PLAN_RESERVED_10 = 0x0A, /**< Reserved */
456 TAPI_NETTEXT_NUMBER_PLAN_RESERVED_11 = 0x0B, /**< Reserved */
457 TAPI_NETTEXT_NUMBER_PLAN_RESERVED_12 = 0x0C, /**< Reserved */
458 TAPI_NETTEXT_NUMBER_PLAN_RESERVED_13 = 0x0D, /**< Reserved */
459 TAPI_NETTEXT_NUMBER_PLAN_RESERVED_14 = 0x0E, /**< Reserved */
460 TAPI_NETTEXT_NUMBER_PLAN_RESERVED_15 = 0x0F, /**< Reserved */
461 } TelSmsIs637NumberPlan_t;
463 /** @enum TelSmsIs637SubAddressType_t
464 * This enum defines the plan of address
467 TAPI_NETTEXT_SUBADDR_NSAP = 0x00, /**< NSAP ( CCITT Recommendation X.213 or ISO 8348 AD2 ) */
468 TAPI_NETTEXT_SUBADDR_USER_SPECIFIED = 0x01, /**< User-specified */
469 } TelSmsIs637SubAddressType_t;
472 * @enum telephony_sms_3gpp_type
473 * This defines the type of 3gpp
476 TAPI_NETTEXT_NETTYPE_3GPP = 0x01, /**< 3gpp type */
477 TAPI_NETTEXT_NETTYPE_3GPP2 = 0x02, /**< 3gpp2 type (CDMA) */
480 // ********************************************************************//
483 * This structure defines the different parameters of CB configuration
486 unsigned short FromMsgId; /**< Starting point of the range of CBS message ID */
487 unsigned short ToMsgId; /**< Ending point of the range of CBS message ID */
488 unsigned char Selected; /**< 0x00 . Not selected. 0x01 . Selected */
489 } TelSmsCbMsgInfo3gpp_t;
492 unsigned short CBCategory; /**< CB Service category */
493 unsigned short CBLanguage; /**< Language indicator value
494 . 0x00 . LANGUAGE_UNKNOWN .
495 Unknown or Unspecified
496 . 0x01 . LANGUAGE_ENGLISH . English
497 . 0x02 . LANGUAGE_FRENCH . French
498 . 0x03 . LANGUAGE_SPANISH . Spanish
499 . 0x04 . LANGUAGE_JAPANESE . Japanese
500 . 0x05 . LANGUAGE_KOREAN . Korean
501 . 0x06 . LANGUAGE_CHINESE . Chinese
502 . 0x07 . LANGUAGE_HEBREW . Hebrew*/
503 unsigned char Selected; /**< 0x00 . Not selected. 0x01 . Selected */
504 } TelSmsCbMsgInfo3gpp2_t;
507 TelSmsCbMsgInfo3gpp_t Net3gpp; /**< 3GPP Broadcast Configuration Information */
508 TelSmsCbMsgInfo3gpp2_t Net3gpp2; /**< 3GPP2 Broadcast Configuration Information, CDMA*/
512 int Net3gppType; /**< Type of 3gpp, 0x01 . 3gpp. 0x02 . 3gpp2(CDMA) */
513 int CBEnabled; /**< CB service state. If cb_enabled is true then cell broadcast service will be enabled and underlying modem will enable CB Channel to receiving CB messages. Otherwise CB service will be disabled, underlying modem will deactivate the CB channel. (enabled/disabled) */
514 unsigned char MsgIdMaxCount; /**< CB Channel List Max Count For Response */
515 int MsgIdRangeCount; /**< Range of CB message ID count */
516 TelSmsCbMsgInfo_t MsgIDs[TAPI_NETTEXT_GSM_SMS_CBMI_LIST_SIZE_MAX]; /**< Range of CB message ID information */
520 * This structure defines the properties of a dialing number
521 * Type of Number, Numbering Plan Indicator, length and the actual number.
524 unsigned int DialNumLen; /**< length of address. If Service center address is not set, then this will be zero */
525 TelSimTypeOfNum_t Ton; /**< Type of number*/
526 TelSimNumberingPlanIdentity_t Npi; /**<Numbering plan identification*/
527 unsigned char szDiallingNum[TAPI_SIM_SMSP_ADDRESS_LEN + 1]; /**< destination address. If Address not set, then set to 0xFF */
528 } TelSmsAddressInfo_t;
531 * This structure defines different fields involved in setting the parameters of
532 * a particular sms in EFsmsp.
536 unsigned char RecordIndex; /**< Index*/
537 unsigned char RecordLen; /**< SMS Parameter Record length*/
538 unsigned long AlphaIdLen; /**< Alpha id length */
539 char szAlphaId[TAPI_SIM_SMSP_ALPHA_ID_LEN_MAX + 1]; /**< Alpha id .It is a unique identifier for each row/record in EFsmsp */
540 unsigned char ParamIndicator; /**< SMS parameter indicator is a 1 byte value. Each bit in this value indicates the presence/absence of the sms header parameters.If the parameter is present the corresponding bit value is set to 0.If the parameter is absent then it is set as 1.Refer 3GPP TS 31.02 :4.4.23 */
541 TelSmsAddressInfo_t TpDestAddr; /**< TP-destination address (TP-DA) */
542 TelSmsAddressInfo_t TpSvcCntrAddr; /**< TP-service center address */
543 unsigned short TpProtocolId; /**< TP-protocol Id */
544 unsigned short TpDataCodingScheme; /**< TP-data coding scheme */
545 unsigned short TpValidityPeriod; /**< TP-validity period */
549 * This structure defines the fields related to an Sms like SIM index, TPDU and length
552 unsigned char Sca[TAPI_SIM_SMSP_ADDRESS_LEN]; /**< Service Centre address - an optional parameter. If this parameter is not present, then this field will be Null.If present, the valid service centre address information is filled as per 3GPP TS23.040 9.1.2.5 Address fields */
553 int MsgLength; /**< Size of array szData (which is actual TPDU message) */
554 unsigned char szData[TAPI_NETTEXT_SMDATA_SIZE_MAX + 1]; /**<SMS TPDU message */
555 } TelSmsDatapackageInfo_t;
558 *This structure defines the data Related to SimIndex,MessageStatus and SMS Data Stored.
561 int SimIndex; /**< Index where SMS is stored. */
562 TelSmsMsgStatus_t MsgStatus; /**< Message status.*/
563 TelSmsDatapackageInfo_t SmsData; /**<SMS message */
567 * This structure defines the different parameters that are related to the message count
568 *in a particular memory(Phone/SIM)
571 unsigned int TotalCount; /**< Total count of messages stored in SIM*/
572 int UsedCount; /**< Stored message count in SIM in SIM*/
573 int IndexList[TAPI_NETTEXT_GSM_SMS_MSG_NUM_MAX]; /**< Message index list stored in SIM. And the maximum size of this array can be of totalCount.This array contains the list of index values in which the messages are stored.i.e. index_list[totalcount] = [2,3] denotes that indexs 2 and 3 are stored(valid) and others not(empty).*/
574 } TelSmsStoredMsgCountInfo_t;
577 * This structure defines a cell broadcast message.
581 TelSmsCbMsgType_t CbMsgType; /**< Cell Broadcast message type */
582 unsigned short Length; /**<Size of array szMsgData (which is actual TPDU message) */
583 char szMsgData[TAPI_NETTEXT_CB_SIZE_MAX + 1]; /**<Cell broadcast message data[Refer 3GPP TS 23.041 9.4.1]*/
587 * This structure defines a ETWS message.
590 TelSmsEtwsMsgType_t EtwsMsgType; /**< Cell Broadcast message type */
591 unsigned short Length; /**<Size of array szMsgData (which is actual TPDU message) */
592 char szMsgData[TAPI_NETTEXT_ETWS_SIZE_MAX + 1]; /**<Cell broadcast message data[Refer 3GPP TS 23.041 9.4.1]*/
595 // ************************ CDMA Features **************************//
597 * This structure defines cause code as an indication whether an SMS error has occurred and
598 * if so, whether the condition is considered temporary or permanent
601 unsigned char ReplySeqNumber; /**< Reply sequence number */
602 TelSmsIs637ErrorClass_t ErrClass; /**< Error report class */
603 unsigned char Cause; /**< Error cause identifier */
604 } TelSmsIs637CauseCode_t;
607 * This structure defines the parameters of address and its type
610 TelSmsIs637DigitMode_t Digit; /**< Digit mode indicator (0x00:4bit_dtmf, 0x01:8bit_code) */
611 TelSmsIs637NumberMode_t NumberMode; /**< Number mode indicator (0x00:ANSI TI607, 0x01:Data network) */
612 TelSmsIs637NumberType_t NumberType; /**< Type of number */
613 TelSmsIs637NumberPlan_t NumberPlan; /**< Numbering plan */
614 unsigned char szAddrLength; /**< The number of CHARi */
615 unsigned char szAddress[TAPI_NETTEXT_MAXLENGTH_SMS_ADDRESS]; /**< The address digit or character */
616 } TelSmsIs637Address_t;
619 * This structure defines the parameters of subaddress of originator and destination
622 TelSmsIs637SubAddressType_t SubType; /**< Subaddress type */
623 unsigned char Odd; /**< Odd/even indicator */
624 unsigned char szAddrLength; /**< The number of CHARi */
625 unsigned char szAddress[TAPI_NETTEXT_MAXLENGTH_SMS_ADDRESS]; /**< A subaddress octet */
626 } TelSmsIs637SubAddress_t;
629 * This structure defines the message center time stamp may be include
630 * with SMS message sent from a message center
633 unsigned int year; /**< Year - if the year is 2002, the year field contains 0x02 */
634 unsigned int month; /**< Month (1 ~ 12) */
635 unsigned int day; /**< Day (1 ~ 31) */
636 unsigned int hours; /**< Hours (0 ~ 23) */
637 unsigned int minutes; /**< Minute (0 ~ 59) */
638 unsigned int seconds; /**< Seconds (0 ~ 59) */
642 * The structure defines the parameter of SMS submit message
645 TelSmsIs637Address_t DstAddr; /**< Destination address */
646 TelSmsIs637SubAddress_t DstSubAddr; /**< Destination subaddress */
647 unsigned short TeleService; /**< Teleservice Identifier */
648 int bBearerReplySeqRequest; /**< Bearer reply sequence request */
649 unsigned char ReplySeqNumber; /**< Reply sequence number */
650 unsigned short MsgId; /**< Message identifier */
651 unsigned short MsgEncoding; /**< Message encoding (defined in TSB-58A) */
652 unsigned short MsgLength; /**< Message length */
653 unsigned char szData[TAPI_NETTEXT_MAXLENGTH_SMS_MO_USER_DATA]; /**< SMS user data */
654 TelSmsTimeStamp_t ValidityPeriodAbs; /**< Validity period - Absolute (not supported) */
655 unsigned char ValidityPeriodRel; /**< Validity period - Relative (not supported) */
656 TelSmsTimeStamp_t DeferredDelTimeAbs; /**< Deferred delivery time - Absolute */
657 unsigned char DeferredDelTimeRel; /**< Deferred delivery time - Relative */
658 TelSmsIs637Priority_t Priority; /**< Priority indicator */
659 TelSmsIs637Privacy_t Privacy; /**< Privacy indicator */
660 int bUserAckRequest; /**< User acknowledge request */
661 int bDeliveryAckRequest; /**< Delivery acknowledge request */
662 TelSmsIs637AlertPriority_t AlertPriority; /**< Alert priority of message */
663 TelSmsIs637LangIndicator_t MsgLang; /**< Language indicator */
664 TelSmsIs637Address_t CallBackNumber; /**< Callback number address */
665 } TelSmsIs637OutSubmit_t;
668 * The structure defines the parameter of SMS acknowledgement message for submit
671 TelSmsIs637Address_t DstAddr; /**< Destination address */
672 TelSmsIs637SubAddress_t DstSubAddr; /**< Destination subaddress */
673 unsigned short TeleService; /**< Teleservice Identifier */
674 int bBearerReplySeqRequest; /**< Bearer reply sequence request */
675 unsigned char ReplySeqNumber; /**< Reply sequence number */
676 unsigned short MsgId; /**< Message identifier */
677 unsigned short MsgEncoding; /**< Message encoding (defined in TSB-58A) */
678 unsigned short MsgLength; /**< Message length */
679 unsigned char szData[TAPI_NETTEXT_MAXLENGTH_SMS_MO_USER_DATA]; /**< SMS user data */
680 unsigned char UserResponseCode; /**< User response code */
681 } TelSmsIs637OutAck_t;
684 * The structure defines the parameter of SMS cancellation message
687 TelSmsIs637Address_t DstAddr; /**< Destination address */
688 TelSmsIs637SubAddress_t DstSubAddr; /**< Destination subaddress */
689 unsigned short TeleService; /**< Teleservice Identifier */
690 int bBearerReplySeqRequest; /**< Bearer reply sequence request */
691 unsigned char ReplySeqNumber; /**< Reply sequence number */
692 unsigned short MsgId; /**< Message identifier */
693 } TelSmsIs637OutCancel_t;
696 * The structure defines the parameter of SMS devivery message
699 TelSmsIs637Address_t OrigAddr; /**< Origination address */
700 TelSmsIs637SubAddress_t OrigSubAddr; /**< Origination subaddress */
701 unsigned short TeleService; /**< Teleservice Identifier */
702 int bBearerReplySeqRequest; /**< Bearer reply sequence request */
703 unsigned char ReplySeqNumber; /**< Reply sequence number */
704 unsigned short MsgId; /**< Message identifier */
705 unsigned short MsgEncoding; /**< Message encoding (defined in TSB-58A) */
706 unsigned short MsgLength; /**< Message length */
707 unsigned char szData[TAPI_NETTEXT_MAXLENGTH_SMS_MT_USER_DATA]; /**< SMS user data */
708 TelSmsTimeStamp_t MessageCenterTimeStamp; /**< Message center time stamp */
709 TelSmsTimeStamp_t ValidityPeriodAbs; /**< Validity period - Absolute */
710 unsigned char ValidityPeriodRel; /**< Validity period - Relative */
711 TelSmsTimeStamp_t DeferredDelTimeAbs; /**< Deferred delivery time - Absolute (not supported) */
712 unsigned char DeferredDelTimeRel; /**< Deferred delivery time - Relative (not supported) */
713 TelSmsIs637Priority_t Priority; /**< Priority indicator */
714 TelSmsIs637Privacy_t Privacy; /**< Privacy indicator */
715 unsigned char NumMsg; /**< Number of voice mail (0-99) */
716 int bUserAckRequest; /**< User acknowledge request */
717 int bDeliveryAckRequest; /**< Delivery acknowledge request */
718 TelSmsIs637AlertPriority_t AlertPriorty; /**< Alert priority of message */
719 TelSmsIs637LangIndicator_t MsgLang; /**< Language indicator */
720 TelSmsIs637Address_t CallBackNumer; /**< Callback number address */
721 TelSmsIs637MsgDisplayMode_t Display; /**< Message display mode */
722 } TelSmsIs637InDeliver_t;
725 * The structure defines the parameter of SMS acknowledge message for deliver
728 TelSmsIs637Address_t OrigAddr; /**< Origination address */
729 TelSmsIs637SubAddress_t OrigSubAddr; /**< Origination subaddress */
730 unsigned short TeleService; /**< Teleservice Identifier */
731 int bBearerReplySeqRequest; /**< Bearer reply sequence request */
732 unsigned char ReplySeqNumber; /**< Reply sequence number */
733 unsigned short MsgId; /**< Message identifier */
734 unsigned short MsgEncoding; /**< Message encoding (defined in TSB-58A) */
735 unsigned short MsgLength; /**< Message length */
736 unsigned char szData[TAPI_NETTEXT_MAXLENGTH_SMS_MT_USER_DATA]; /**< SMS user data */
737 unsigned char UserResponseCode; /**< User response code */
738 TelSmsTimeStamp_t MessageCenterTimeStamp; /**< Message center time stamp */
739 } TelSmsIs637InAck_t;
742 * The structure defines the parameter of SMS acknowledge message from message center
745 TelSmsIs637Address_t OrigAddr; /**< Origination address */
746 TelSmsIs637SubAddress_t OrigSubAddr; /**< Origination subaddress */
747 unsigned short TeleService; /**< Teleservice Identifier */
748 int bBearerReplySeqRequest; /**< Bearer reply sequence request */
749 unsigned char ReplySeqNumber; /**< Reply sequence number */
750 unsigned short MsgId; /**< Message identifier */
751 unsigned short MsgEncoding; /**< Message encoding (defined in TSB-58A) */
752 unsigned short MsgLength; /**< Message length */
753 unsigned char szData[TAPI_NETTEXT_MAXLENGTH_SMS_MT_USER_DATA]; /**< SMS user data */
754 TelSmsTimeStamp_t MessageCenterTimeStamp; /**< Message center time stamp */
755 } TelSmsIs637InDeliverAck_t;
758 * The structure defines the parameter of SMS broadcast message
761 TelSmsBroadCastCategory_t ServiceCategory; /**< Broadcast service category */
762 unsigned short MsgId; /**< Message identifier */
763 int bBearerReplySeqRequest; /**< Bearer reply sequence request */
764 unsigned char ReplySeqNumber; /**< Reply sequence number */
765 unsigned short MsgEncoding; /**< Message encoding (defined in TSB-58A) */
766 unsigned short MsgLength; /**< Message length */
767 unsigned char szData[TAPI_NETTEXT_MAXLENGTH_SMS_MT_USER_DATA]; /**< SMS user data */
768 TelSmsTimeStamp_t MessageCenterTimeStamp; /**< Message center time stamp */
769 TelSmsTimeStamp_t ValidityPeriodAbs; /**< Validity period - Absolute */
770 unsigned char ValidityPeriodRel; /**< Validity period - Relative */
771 TelSmsIs637Priority_t Priority; /**< Priority indicator */
772 TelSmsIs637AlertPriority_t AlertPriorty; /**< Alert priority of message */
773 TelSmsIs637LangIndicator_t MsgLang; /**< Language indicator */
774 TelSmsIs637MsgDisplayMode_t Display; /**< Message display mode */
775 } TelSmsIs637InBroadCast_t;
778 * The structure defines the type of SMS message as union
781 TelSmsIs637OutSubmit_t OutSubmit; /**< Outgoing Submit message */
782 TelSmsIs637OutAck_t OutAck; /**< Outgoing Acknowledge message */
783 TelSmsIs637OutCancel_t OutCancel; /**< Outgoing Cancel message */
784 TelSmsIs637InDeliver_t InDeliver; /**< Incoming Delivery message */
785 TelSmsIs637InAck_t InAck; /**< Incoming Acknowledge message */
786 TelSmsIs637InDeliverAck_t InDeliverAck; /**< Incoming Delivery Acknowledge message */
787 TelSmsIs637InBroadCast_t InBc; /**< Incoming Broadcast message */
791 * The structure defines the parameter of entire SMS message of each type
794 int ParamMask; /**< Parameter ID mask */
795 TelSmsMsgType_t MsgType; /**< Message type */
796 TelSmsMessage_t MsgData; /**< Message data */
798 // ********************************************************************//
800 struct tel_noti_sms_incomming_msg {
801 char Sca[TAPI_SIM_SMSP_ADDRESS_LEN];
803 char szData[TAPI_NETTEXT_SMDATA_SIZE_MAX + 1];
806 struct tel_noti_sms_incomming_cb_msg {
807 TelSmsCbMsgType_t CbMsgType; /**< Cell Broadcast message type */
808 short Length; /**<Size of array szMsgData (which is actual TPDU message) */
809 char szMsgData[TAPI_NETTEXT_CB_SIZE_MAX + 1]; /**<Cell broadcast message data[Refer 3GPP TS 23.041 9.4.1]*/
812 struct tel_noti_sms_incomming_etws_msg {
813 TelSmsEtwsMsgType_t EtwsMsgType; /**< ETWS message type */
814 short Length; /**<Size of array szMsgData (which is actual TPDU message) */
815 char szMsgData[TAPI_NETTEXT_ETWS_SIZE_MAX + 1]; /**<ETWS message data[Refer 3GPP TS 23.041 9.4.1]*/
824 #endif // _TEL_NETTEXT_H_