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 COMMON_TAPI COMMON
26 * These error codes are used by Applications.
38 /************************************************************
39 ** Errors defined in "+CME ERROR" ,
40 ** - see 3GPP TS 27.007
41 ** - ranges are 0x00 ~ 0x7FFF
42 ************************************************************/
44 Error codes sent by the modem in response to the above operations.
49 TAPI_OP_GEN_ERR_PHONE_FAILURE = 0, /* 0 */
50 TAPI_OP_GEN_ERR_NO_CONNECTION_TO_PHONE, /* 1 */
51 TAPI_OP_GEN_ERR_PHONE_ADAPTOR_LINK_RESERVED, /* 2 */
52 TAPI_OP_GEN_ERR_OPER_NOT_ALLOWED, /* 3 */
53 TAPI_OP_GEN_ERR_OPER_NOT_SUPPORTED, /* 4 */
54 TAPI_OP_GEN_ERR_PH_SIM_PIN_REQU, /* 5 */
55 TAPI_OP_GEN_ERR_PH_FSIM_PIN_REQU, /* 6 */
56 TAPI_OP_GEN_ERR_PH_FSIM_PUK_REQU, /* 7 */
57 TAPI_OP_GEN_ERR_SIM_NOT_INSERTED =10, /* 10 */
58 TAPI_OP_GEN_ERR_SIM_PIN_REQU, /* 11 */
59 TAPI_OP_GEN_ERR_SIM_PUK_REQU, /* 12 */
60 TAPI_OP_GEN_ERR_SIM_FAILURE, /* 13 */
61 TAPI_OP_GEN_ERR_SIM_BUSY, /* 14 */
62 TAPI_OP_GEN_ERR_SIM_WRONG, /* 15 */
63 TAPI_OP_GEN_ERR_INCORRECT_PW, /* 16 */
64 TAPI_OP_GEN_ERR_SIM_PIN2_REQU, /* 17 */
65 TAPI_OP_GEN_ERR_SIM_PUK2_REQU, /* 18 */
66 TAPI_OP_GEN_ERR_MEM_FULL = 20, /* 20 */
67 TAPI_OP_GEN_ERR_INVALID_INDEX, /* 21 */
68 TAPI_OP_GEN_ERR_NOT_FOUND, /* 22 */
69 TAPI_OP_GEN_ERR_MEM_FAILURE, /* 23 */
70 TAPI_OP_GEN_ERR_TEXT_STR_TOO_LONG, /* 24 */
71 TAPI_OP_GEN_ERR_INVALID_CHARACTERS_IN_TEXT_STR, /* 25 */
72 TAPI_OP_GEN_ERR_DIAL_STR_TOO_LONG, /* 26 */
73 TAPI_OP_GEN_ERR_INVALID_CHARACTERS_IN_DIAL_STR, /* 27 */
74 TAPI_OP_GEN_ERR_NO_NET_SVC = 30, /* 30 */
75 TAPI_OP_GEN_ERR_NET_TIMEOUT, /* 31 */
76 TAPI_OP_GEN_ERR_NET_NOT_ALLOWED_EMERGENCY_CALLS_ONLY, /* 32 */
77 TAPI_OP_GEN_ERR_NET_PERS_PIN_REQU = 40, /* 40 */
78 TAPI_OP_GEN_ERR_NET_PERS_PUK_REQU, /* 41 */
79 TAPI_OP_GEN_ERR_NET_SUBSET_PERS_PIN_REQU, /* 42 */
80 TAPI_OP_GEN_ERR_NET_SUBSET_PERS_PUK_REQU, /* 43 */
81 TAPI_OP_GEN_ERR_SVC_PROVIDER_PERS_PIN_REQU, /* 44 */
82 TAPI_OP_GEN_ERR_SVC_PROVIDER_PERS_PUK_REQU, /* 45 */
83 TAPI_OP_GEN_ERR_CORPORATE_PERS_PIN_REQU, /* 46 */
84 TAPI_OP_GEN_ERR_CORPORATE_PERS_PUK_REQU, /* 47 */
85 TAPI_OP_GEN_ERR_HIDDEN_KEY_REQU, /* 48 */
86 TAPI_OP_GEN_ERR_UNKNOWN = 100, /* 100 */
88 /* Errors related to a failure to perform an Attach */
89 TAPI_OP_GEN_ERR_ILLEGAL_MS = 103, /* 103 */
90 TAPI_OP_GEN_ERR_ILLEGAL_ME = 106, /* 106 */
91 TAPI_OP_GEN_ERR_GPRS_SVC_NOT_ALLOWED, /* 107 */
92 TAPI_OP_GEN_ERR_PLMN_NOT_ALLOWED = 111, /* 111 */
93 TAPI_OP_GEN_ERR_LOCATION_AREA_NOT_ALLOWED, /* 112 */
94 TAPI_OP_GEN_ERR_ROAMING_NOT_ALLOWED_IN_THIS_LOCATION_AREA,/* 113 */
96 /* Errors related to a failure to Activate a Context */
97 TAPI_OP_GEN_ERR_SVC_OPT_NOT_SUPPORTED = 132, /* 132 */
98 TAPI_OP_GEN_ERR_REQ_SVC_OPT_NOT_SUBSCRIBED, /* 133 */
99 TAPI_OP_GEN_ERR_SVC_OPT_TEMPORARILY_OUT_OF_ORDER, /* 134 */
100 TAPI_OP_GEN_ERR_UNSPECIFIED_GPRS_ERR = 148, /* 148 */
101 TAPI_OP_GEN_ERR_PDP_AUTHENTICATION_FAILURE, /* 149 */
102 TAPI_OP_GEN_ERR_INVALID_MOBILE_CLASS, /* 150 */
104 /* VBS / VGCS and eMLPP -related errors */
105 TAPI_OP_GEN_ERR_VBS_VGCS_NOT_SUPPORTED_BY_THE_NET = 151, /* 151 */
106 TAPI_OP_GEN_ERR_NO_SVC_SUBSCRIPTION_ON_SIM, /* 152 */
107 TAPI_OP_GEN_ERR_NO_SUBSCRIPTION_FOR_GROUP_ID, /* 153 */
108 TAPI_OP_GEN_ERR_GROUP_ID_NOT_ACTIVATED_ON_SIM, /* 154 */
109 TAPI_OP_GEN_ERR_NO_MATCHING_NOTI = 155, /* 155 */
110 TAPI_OP_GEN_ERR_VBS_VGCS_CALL_ALREADY_PRESENT, /* 156 */
111 TAPI_OP_GEN_ERR_CONGESTION, /* 157 */
112 TAPI_OP_GEN_ERR_NET_FAILURE, /* 158 */
113 TAPI_OP_GEN_ERR_UPLINK_BUSY, /* 159 */
114 TAPI_OP_GEN_ERR_NO_ACCESS_RIGHTS_FOR_SIM_FILE = 160, /* 160 */
115 TAPI_OP_GEN_ERR_NO_SUBSCRIPTION_FOR_PRIORITY, /* 161 */
116 TAPI_OP_GEN_ERR_OPER_NOT_APPLICABLE_OR_NOT_POSSIBLE, /* 162 */
119 TAPI_OP_GEN_ERR_NONE = 0x8000, /* 0x8000 : No Errors */
121 /* General Common Errors : 0x8000 - 0x80FF */
122 TAPI_OP_GEN_ERR_INVALID_IPC, /* 0x8001 : Invalid IPC_GSM Parameter or Format */
123 TAPI_OP_GEN_ERR_PHONE_OFFLINE, /* 0x8002 : */
124 TAPI_OP_GEN_ERR_CMD_NOT_ALLOWED, /* 0x8003 : */
125 TAPI_OP_GEN_ERR_PHONE_IS_INUSE, /* 0x8004 : */
126 TAPI_OP_GEN_ERR_INVALID_STATE = 0x8005, /* 0x8005 : */
128 TAPI_OP_GEN_ERR_NO_BUFFER, /* 0x8006 : No internal free buffers */
129 TAPI_OP_GEN_ERR_OPER_REJ, /* 0x8007 : Operation Rejected */
130 TAPI_OP_GEN_ERR_INSUFFICIENT_RESOURCE, /* 0x8008 : insufficient resource */
131 TAPI_OP_GEN_ERR_NET_NOT_RESPOND, /* 0x8009 : Network not responding */
132 TAPI_OP_GEN_ERR_SIM_PIN_ENABLE_REQ = 0x800A, /* 0x800A : SIM Pin Enable Required */
133 TAPI_OP_GEN_ERR_SIM_PERM_BLOCKED, /* 0x800B : SIM Permanent Blocked */
134 TAPI_OP_GEN_ERR_SIM_PHONEBOOK_RESTRICTED, /*0x800C: SIM Phonebook Restricted*/
135 TAPI_OP_GEM_ERR_FIXED_DIALING_NUMBER_ONLY, /*0x800D: Restricted By FDN Mode */
137 /* Reserved : 0x800E ~ 0x80FF */
138 TAPI_OP_GEN_ERR_800E_RESERVED_START = 0x800E, /* 0x800E */
140 TAPI_OP_GEN_ERR_80FF_RESERVED_END = 0x80ff, /* 0x80FF */
142 /* the other errors */
143 TAPI_OP_GEN_ERR_OTHERS = 0xFFFE, /* 0xFFFE */
145 TAPI_OP_GEN_ERR_MAX = 0xFFFF
150 TAPI_PDP_FAILURE_CAUSE_NORMAL = 0x00, // 0x00 : Normal Process ( no problem )
151 TAPI_PDP_FAILURE_CAUSE_REL_BY_USER = 0x01, // Call Released by User
152 TAPI_PDP_FAILURE_CAUSE_REGULAR_DEACTIVATION = 0x02, // Regular de-activation
153 TAPI_PDP_FAILURE_CAUSE_LLC_SNDCP = 0x03, // LLC SNDCP failure
154 TAPI_PDP_FAILURE_CAUSE_INSUFFICIENT_RESOURCE = 0x04, // Insufficient resources
155 TAPI_PDP_FAILURE_CAUSE_UNKNOWN_APN = 0x05, // Missing or unknown APN
156 TAPI_PDP_FAILURE_CAUSE_UNKNOWN_PDP_ADDRESS = 0x06, // Unknown PDP address or type
157 TAPI_PDP_FAILURE_CAUSE_USER_AUTH_FAILED = 0x07, // Unknown PDP address or type
158 TAPI_PDP_FAILURE_CAUSE_ACT_REJ_GGSN = 0x08, // Unknown PDP address or type
159 TAPI_PDP_FAILURE_CAUSE_ACT_REJ_UNSPECIFIED = 0x09, // Unknown PDP address or type
160 TAPI_PDP_FAILURE_CAUSE_SVC_OPTION_NOT_SUPPORTED = 0x0A, // Service option not supported
161 TAPI_PDP_FAILURE_CAUSE_SVC_NOT_SUBSCRIBED = 0x0B, // Requested service option not subscribed
162 TAPI_PDP_FAILURE_CAUSE_SVC_OPT_OUT_ORDER = 0x0C, // Service out of order
163 TAPI_PDP_FAILURE_CAUSE_NSAPI_USED = 0x0D, // NSAPI already used
164 TAPI_PDP_FAILURE_CAUSE_QOS_NOT_ACCEPTED = 0x0E, // QoS not accepted
165 TAPI_PDP_FAILURE_CAUSE_NETWORK_FAILURE = 0x0F, // Network Failure
166 TAPI_PDP_FAILURE_CAUSE_REACT_REQUIRED = 0x10, // Reactivation Required
167 TAPI_PDP_FAILURE_CAUSE_FEATURE_NOT_SUPPORTED = 0x11, // Feature not supported
168 TAPI_PDP_FAILURE_CAUSE_TFT_FILTER_ERROR = 0x12, // TFT or filter error
169 TAPI_PDP_FAILURE_CAUSE_UNKOWN_PDP_CONTEXT = 0x13, // Unknown PDP context
170 TAPI_PDP_FAILURE_CAUSE_INVALID_MSG = 0x14, // Invalid MSG
171 TAPI_PDP_FAILURE_CAUSE_PROTOCOL_ERROR = 0x15, // Protocol error
172 TAPI_PDP_FAILURE_CAUSE_MOBILE_FAILURE_ERROR = 0x16, // Mobile failure error
173 TAPI_PDP_FAILURE_CAUSE_TIMEOUT_ERROR = 0x17, // Timeout error
174 TAPI_PDP_FAILURE_CAUSE_UNKNOWN_ERROR = 0x18, // Unknown error
175 TAPI_PDP_FAILURE_CAUSE_MAX ,
182 #endif // _TEL_ERR_H_