blob: 8dfa8074707874aab707a17ac70dc3cfde65a644 [file] [log] [blame]
rjw6c1fd8f2022-11-30 14:33:01 +08001/*****************************************************************************
2* Copyright Statement:
3* --------------------
4* This software is protected by Copyright and the information contained
5* herein is confidential. The software may not be copied and the information
6* contained herein may not be used or disclosed except with the written
7* permission of MediaTek Inc. (C) 2005
8*
9* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
10* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
11* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
12* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
13* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
14* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
15* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
16* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
17* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
18* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
19* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
20* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
21*
22* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
23* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
24* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
25* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
26* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
27*
28* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
29* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
30* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
31* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
32* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
33*
34*****************************************************************************/
35
36/*******************************************************************************
37 *==============================================================================
38 * HISTORY
39 * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
40 *------------------------------------------------------------------------------
41 * removed!
42 *
43 * removed!
44 * removed!
45 *
46 * removed!
47 * removed!
48 * removed!
49 *
50 * removed!
51 * removed!
52 * removed!
53 *
54 * removed!
55 * removed!
56 * removed!
57 *
58 * removed!
59 * removed!
60 * removed!
61 *
62 * removed!
63 * removed!
64 *
65 * removed!
66 * removed!
67 * removed!
68 *
69 * removed!
70 * removed!
71 * removed!
72 * removed!
73 *
74 * removed!
75 * removed!
76 * removed!
77 * removed!
78 *
79 * removed!
80 * removed!
81 * removed!
82 * removed!
83 *
84 * removed!
85 * removed!
86 * removed!
87 *
88 * removed!
89 * removed!
90 * removed!
91 *
92 * removed!
93 * removed!
94 * removed!
95 *
96 * removed!
97 * removed!
98 * removed!
99 *
100 * removed!
101 * removed!
102 * removed!
103 *
104 * removed!
105 * removed!
106 * removed!
107 * removed!
108 *
109 * removed!
110 * removed!
111 * removed!
112 * removed!
113 *
114 * removed!
115 * removed!
116 * removed!
117 *
118 * removed!
119 * removed!
120 * removed!
121 *
122 * removed!
123 * removed!
124 * removed!
125 *
126 * removed!
127 * removed!
128 * removed!
129 * removed!
130 *
131 * removed!
132 * removed!
133 * removed!
134 *
135 * removed!
136 * removed!
137 * removed!
138 * removed!
139 *
140 * removed!
141 * removed!
142 *
143 * removed!
144 * removed!
145 * removed!
146 * removed!
147 *
148 * removed!
149 * removed!
150 * removed!
151 *
152 * removed!
153 * removed!
154 * removed!
155 *
156 * removed!
157 * removed!
158 * removed!
159 *
160 * removed!
161 * removed!
162 * removed!
163 * removed!
164 *
165 * removed!
166 * removed!
167 * removed!
168 *
169 * removed!
170 * removed!
171 * removed!
172 * removed!
173 *
174 * removed!
175 * removed!
176 *
177 * removed!
178 * removed!
179 *
180 * removed!
181 * removed!
182 * removed!
183 *
184 * removed!
185 * removed!
186 * removed!
187 * removed!
188 *
189 * removed!
190 * removed!
191 *
192 * removed!
193 * removed!
194 *
195 * removed!
196 * removed!
197 * removed!
198 *
199 * removed!
200 * removed!
201 * removed!
202 *
203 * removed!
204 *
205 * removed!
206 * removed!
207 * removed!
208 *
209 * removed!
210 * removed!
211 *
212 * removed!
213 *
214 * removed!
215 * removed!
216 * removed!
217 *
218 * removed!
219 * removed!
220 * removed!
221 * removed!
222 * removed!
223 * removed!
224 *
225 * removed!
226 * removed!
227 * removed!
228 *
229 * removed!
230 * removed!
231 * removed!
232 *
233 * removed!
234 * removed!
235 * removed!
236 *
237 * removed!
238 * removed!
239 * removed!
240 *
241 * removed!
242 * removed!
243 * removed!
244 *
245 * removed!
246 * removed!
247 * removed!
248 * removed!
249 * removed!
250 * removed!
251 *
252 * removed!
253 * removed!
254 * removed!
255 *
256 * removed!
257 * removed!
258 * removed!
259 *
260 * removed!
261 * removed!
262 * removed!
263 *
264 * removed!
265 * removed!
266 * removed!
267 *
268 * removed!
269 * removed!
270 * removed!
271 *
272 * removed!
273 * removed!
274 * removed!
275 *
276 * removed!
277 * removed!
278 * removed!
279 *
280 * removed!
281 * removed!
282 * removed!
283 *
284 * removed!
285 * removed!
286 *
287 * removed!
288 *
289 * removed!
290 * removed!
291 * removed!
292 *
293 * removed!
294 * removed!
295 * removed!
296 *
297 * removed!
298 * removed!
299 * removed!
300 *
301 * removed!
302 * removed!
303 * removed!
304 *
305 * removed!
306 * removed!
307 * removed!
308 *
309 * removed!
310 * removed!
311 * removed!
312 *
313 *------------------------------------------------------------------------------
314 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
315 *==============================================================================
316 *******************************************************************************/
317#ifndef _IMS_INTERFACE_MD_H
318#define _IMS_INTERFACE_MD_H
319
320//#include "imc_general_sap.h"
321//#include "imcf_general.h"
322#include "module_msg_range.h"
323#include "imc_msgid.h"
324#include "ims_common_def.h"
325
326/* Change Log -
327 * 1E - (+) CMCC advanced conference call
328 * 1F - (+) MT conference participant interface
329 * 20 - (+) CMCC auto test tool - EBI filter/IPSec
330 * 21 - (+) dynamic SBP id setting from MNC/MCC
331 * 22 - (+) TMOUS MOS patch back
332 * 23 - (+) Align with WWOP sbp_id
333 * 24 - (-) SIM refresh
334 * 25 - ( ) video capability URC
335 * 26 - (-) ims_vops to UA interface(ATT)
336 * 27 - (-) early media direction interface (ATT)
337 * 28 - (+) WFC
338 * 29 - (+) RJIL dynamic sbp id
339 * 30 - (+) DCM feature - retry after
340 * 31 - (+) ipv6 address format
341 * 32 - (+) TWN, CHT, FET operator id
342 * 33 - (+) new call stop cause
343 * 34 - (+) new reg fail cause for VDF PDN reject cause #26 and #27 handling
344 * 35 - (+) EIMSCMODE extend
345 * 36 - (+) default bearer id to ltecsr
346 * 37 - (+) ViLTE feature
347 * 38 - (+) bCSFB feature
348 * 39 - (+) v1.2 IMS interface re-organization
349 * 3A - (+) RTCP CNAME
350 * 3B - (+) Add operator_code for Telstra/Sprint/Softbank/SFR/Telcel/Beeline/KT/SKT/UPLUS
351 * 3C - (+) Extend +EIMSCMODE, ims call audio codec information
352 * 3D - (+) 91 TMOUS ViLTE (phase3)
353 * 3E - (+) Add operator_code for Smartfren/YTL
354 * 3F - (+) USSI Feature
355 * 40 - (+) WFC Location Info support
356 * 41 - (+) 90 DoCoMo VoLTE feature patch back
357 * 42 - (+) 90 VzW VoLTE feature patch back
358 * 43 - (+) Orange early media change
359 * 44 - (+) Non-UE detectable emergency call R12 feature
360 * 45 - (+) Align WWOP_ID for Natcom/119 and Claro/120
361 * 46 - (+) 91 AT&T feature patch back
362 * 47 - (+) IMS UX Enhancement(AT+EIMSVOLTE, AT+EIMSVOICE, AT+EIMSSMS)/ IMS configurations re-origanization
363 * 48 - (+) VzW eHRPD feature patch back
364 * 49 - (+) IMS Debug/EM Framework
365 * 4A - (+) VZW eHRPD C2K reg cause
366 (+) IMCB/IMC verno sync
367 (+) TLV general setting
368 (+) CISRVCC
369 (+) EVS
370 (+) WWOP operator code
371 (+) CC Cause extend
372 (+) dereg cause
373 * 4B - (+) align WWOP_ID for DTAC/Avea/Megafone
374 (+) RTCP-XR
375 (+) EVS
376 * 4C - (+) bSRVCC
377 (+) WWOP operator code:KDDI
378 (+) Version Number Check Enhancment
379 * 4D - (+) align WWOP_ID for TIM/TrueMove
380 * 4E - (+) enhance for race condition MT call answer and SRVCC
381 * 4F - (+) IMS variable length align
382 (+) ISIM READ segmenation
383 (+) pcscf address in media_new / handover_begin and handover_end to LTECSR
384 (+) add remote hold/unhold and MT call forwarding indication
385 (+) Align WWOP_ID for NOKIA/1002 and MTK_HQLAB_ERICSSON/1003
386 * 50 - (+) Align WWOP_ID for Movistar/132
387 (+) update imsa_imcb read_isim entries from 5 to 20
388 * 51 - (+) TTY interface
389 (+) Multiple IMS interface
390 (+) Align WWOP_ID for DU/133
391 (+) IMS reg service interface
392 * 52 - (-) Corrected internal message
393 * 53 - (+) KDDI requirement/IOT patch back
394 (+) RTP/RTCP timeout implement
395 (+) IMC trigger pdn release
396 (+) deactivate emergency PDN directly
397 * 54 - (+) ECT Interface
398 (+) Align WWOP_ID for Elisa/134, MTS/135 and Tele2/137
399 (+) New reg cause RETRY_BY_RFC5626
400 * 55 - (+) Q.850 cause from Reason: header
401 (+) Aling WWOP_ID for Huawei IMS/1004
402 * 56 - (+) Confrence call participant URI length changed to 512
403 (+) Add CLIR to vdm_imc_ims_cc_mo_call_req_struct
404 (+) 93 RAT notification for 23G
405 (+) GTT/TTY missing interface
406 (+) VzW hVoLTE/E911/Call Pull
407 * 57 - (+) AP side change for conference URI
408 * 58 - (+) Add PLMN Type in VOLTE_MO_CALL_REQ
409 (+) Add TLV direction (to IMC)
410 * 59 - (+) Add MO_Call_Domain_Conflict message and structure
411 * 5A - (+) Gen93 M2 patch back
412 * 5B - (+) RTT interface
413 (+) 6293 interface refine
414 (+) VzW CDMA-less
415 (+) R13 ALTC
416 * 5C - (+) Add recv_codec_list to media config and media update structure for asymmetric RTP payload type
417 * 5D - (+) Modify conference srvcc number len
418 * 5E - (+) VzW CDMA-less interface refine
419 * 5F - (+) Improve Q850 result delivery
420 * 60 - (+) TMOUS Digit: new +ATDF and extend +EAIC
421 * 61 - (+) Fix Q850 imc-vdm interface
422 * 62 - (+) Fix imc-imcsms interface
423 * 63 - (+) TMOUS Digit: extend AT+ECT
424 * 64 - (+) TMOUS RTT operation
425 * 65 - (+) Add ECC category traffic for CMCC
426 * 66 - (+) TMOUS RTT EMC redial to normal EMC by ECPI 133
427 * 67 - (+) MIMS SRU request / VT_CAP with operator_id / PS Data on-off / E-PDN HO
428 * 68 - (+) Add country-specific urn support to mo call cnf
429 * 69 - (+) ANBR Feature
430 * 6A - (+) MBR/GBR to LTECSR
431 * 6B - (+) ADD release emergency IMS PDN cause/TTA emergency catogry
432 * 6C - (+) ADD ECC category UNRECOGNIZED
433 * 6D - (+) Add Cause for MO Call disconnect (AT+ECHLD handling)
434 * 6E - (+) Add CS availability query for SMS and Call UA. Add EFfrompreferred support.
435*/
436//#define IMCB_IMC_HEADER_FILE_VERNO 0x0000006E
437
438/* Change Log -
439 * 01 - CMCC auto test tool
440*/
441//#define IMCB_IMC_MSGID_VERNO 0x00000001
442
443
444/*****imc_general_sap.h START*****/
445/*****imc_general_sap.h END*****/
446
447/*****ims_common_def.h START*****/
448
449/*****ims_common_def.h END*****/
450
451/*****atp_imc_struct.h START*****/
452/*****atp_imc_struct.h END*****/
453
454/*****imcsms_imc_struct.h START*****/
455/*****imcsms_imc_struct.h END*****/
456
457/*****vdm_imc_struct.h START*****/
458
459/*****vdm_imc_struct.h END*****/
460
461/*****ltecsr_struct.h START*****/
462/*****ltecsr_struct.h END*****/
463
464/*START:from SSDS to IMC*/
465typedef enum
466{
467 SSDS_IMC_SS_INVALID_TYPE,
468 SSDS_IMC_SS_OPEATION_TYPE,
469 SSDS_IMC_USSD_TYPE,
470}ssds_imc_cmd_class_enum;
471
472typedef enum
473{
474 SSDS_IMC_INVALID_TYPE,
475 SSDS_IMC_EXCUTE_USSD_TYPE, /*when < class >=1, dufault value of < class > should be 1*/
476 SSDS_IMC_CANCEL_USSD_TYPE, /*only support when < class >=2*/
477 SSDS_IMC_DISABLE_REEULT_TYPE, /*disable the result code presentation to the TE*/
478 SSDS_IMC_ENABLE_REEULT_TYPE, /*enable the result code presentation to the TE*/
479}ssds_imc_operation_enum;
480
481typedef enum
482{
483 SSDS_IMC_USSD_INVALID_TYPE,
484 SSDS_IMC_USSD_REQUEST_TYPE,
485 SSDS_IMC_USSD_RESPONSE_TYPE,
486}ssds_imc_action_enum;
487
488typedef enum
489{
490 SSDS_IMC_USSD_RES_OK,
491 SSDS_IMC_USSD_RES_ERROR,
492}ssds_imc_response_enum;
493
494
495typedef enum
496{
497 SSDS_IMC_INVALID_URC,
498 SSDS_IMC_USSD_NOTIFY_URC, /*1 USSD notify*/
499 SSDS_IMC_SS_NOTIFY_URC, /*2 SS notify*/
500 SSDS_IMC_EXECUTE_RESULT_URC, /*3 MD execute result*/
501
502}ssds_imc_urc_class_enum;
503
504
505typedef enum
506{
507 SSDS_IMC_NO_FURTHER_USER_ACTION_REQUIRED, /* 0 : no further user action required */
508 SSDS_IMC_FURTHER_USER_ACTION_REQUIRED, /* 1 :further user action required*/
509 SSDS_IMC_NW_TERMINATE_USSD, /* 2 :USSD terminated by network*/
510 SSDS_IMC_OTHER_LOCAL_CLIENT_RESPOND, /* 3 :other local client has responded X*/
511 SSDS_IMC_NW_NOT_SUPPORT, /* 4 :operation not supported*/
512 SSDS_IMC_NW_TIMER_OUT, /* 5 :network time out X*/
513
514}ssds_ussd_status_enum;
515
516
517typedef struct
518{
519 LOCAL_PARA_HDR
520 ssds_imc_cmd_class_enum cmd_class;
521 ssds_imc_operation_enum operation;
522 ssds_imc_action_enum action;
523 kal_uint32 error_code;
524 kal_uint8 language[IMC_MAX_URI_LENGTH];
525 kal_uint8 digit_from_line_number[IMC_MAX_URI_LENGTH];
526}ssds_imc_ussd_atcmd_req_struct;
527
528typedef struct
529{
530 LOCAL_PARA_HDR
531 ssds_imc_response_enum response; /*< OK or ERROR, may be extended to CME ERROR later on*/
532} ssds_imc_ussd_atcmd_cnf_struct;
533
534typedef struct
535{
536 LOCAL_PARA_HDR
537 ssds_imc_urc_class_enum urc_class; /*< class */
538 kal_uint16 status; /*< status> */
539 kal_uint8 alert_pattern; /*< Alertin Pattern for AP */
540 kal_uint16 sip_cause; /*< status */
541 kal_uint8 language[IMS_USSD_LANGUANGE_LEN]; /*< language */
542 kal_uint16 error_code; /*< error_code */
543 kal_uint8 digit_from_line_number[IMC_MAX_URI_LENGTH];
544
545} ssds_imc_ussd_atcmd_ind_struct;
546/*END:from SSDS to IMC*/
547
548#endif /* _IMS_INTERFACE_MD_H */