VoIPProt.h
35.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
/*****************************************************************************
* Copyright Statement:
* --------------------
* This software is protected by Copyright and the information contained
* herein is confidential. The software may not be copied and the information
* contained herein may not be used or disclosed except with the written
* permission of MediaTek Inc. (C) 2005
*
* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
*
* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
*
* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
*
*****************************************************************************/
/*****************************************************************************
*
* Filename:
* ---------
* VoIPProt.h
*
* Project:
* --------
* MAUI
*
* Description:
* ------------
* This file defines imported prototypes.
*
* Author:
* -------
* -------
*
*============================================================================
* HISTORY
* Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*------------------------------------------------------------------------------
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
* removed!
* removed!
* removed!
*
*------------------------------------------------------------------------------
* Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
*============================================================================
****************************************************************************/
#ifndef VOIP_PROT_H
#define VOIP_PROT_H
#include "mmi2voip_enums.h"
#include "mmi2voip_struct.h"
#include "nvram_common_defs.h"
#include "common_nvram_editor_data_item.h"
#include "DataAccountGProt.h" /* for MAX_DATA_ACCOUNT_NAME_LEN */
#define MMI_VOIP_MAX_PROFILE_NUM 10
// #define MMI_VOIP_MAX_PROFILE_NAME_LEN 33 /* 32 unicode + 1 null terminator */
#define MMI_VOIP_MAX_PORT_LEN 6 /* 5 digits + 1 null terminator */
// #define MMI_VOIP_MAX_IP_SEG 4
#define MMI_VOIP_MAX_CODEC_NUM 8
#define MMI_VOIP_MAX_CODEC_NAME_LEN 9 /* 8 ascii + 1 null terminator */
#define MMI_VOIP_MAX_ACTIVE_CALL 1
#define MMI_VOIP_MAX_HELD_CALL 3
#define MMI_VOIP_MAX_NUM_CALL (MMI_VOIP_MAX_ACTIVE_CALL + MMI_VOIP_MAX_HELD_CALL)
#define MMI_VOIP_MAX_NUM_DIGITS 12 /* available DTMF keys */
#define MMI_VOIP_DTMF_LEN 41
#define MMI_VOIP_MAX_STRING_LEN 129 /* 128 unicode + 1 null terminator */
#define MMI_VOIP_GENERAL_TIMEOUT 2000
#ifdef __MMI_VOIP_OTAP_DMP__
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#endif /* __MMI_VOIP_OTAP_DMP__ */
typedef enum
{
MMI_VOIP_PROF_COMMON_PROFNAME_CAP,
MMI_VOIP_PROF_COMMON_PROFNAME,
MMI_VOIP_PROF_COMMON_DATAACCT_CAP,
MMI_VOIP_PROF_COMMON_DATAACCT,
MMI_VOIP_PROF_COMMON_AUTOLOGIN_CAP,
MMI_VOIP_PROF_COMMON_AUTOLOGIN,
MMI_VOIP_PROF_COMMON_VMSERVER_CAP,
MMI_VOIP_PROF_COMMON_VMSERVER,
MMI_VOIP_PROF_COMMON_INLINE_TOTAL
} mmi_voip_prof_common_inline_enum;
typedef enum
{
MMI_VOIP_PROF_ACCT_SIPSERVER_CAP,
MMI_VOIP_PROF_ACCT_SIPSERVER,
MMI_VOIP_PROF_ACCT_SIPPORT_CAP,
MMI_VOIP_PROF_ACCT_SIPPORT,
MMI_VOIP_PROF_ACCT_DISPNAME_CAP,
MMI_VOIP_PROF_ACCT_DISPNAME,
MMI_VOIP_PROF_ACCT_USERNAME_CAP,
MMI_VOIP_PROF_ACCT_USERNAME,
MMI_VOIP_PROF_ACCT_PASSWORD_CAP,
MMI_VOIP_PROF_ACCT_PASSWORD,
MMI_VOIP_PROF_ACCT_AUTHNAME_CAP,
MMI_VOIP_PROF_ACCT_AUTHNAME,
MMI_VOIP_PROF_ACCT_INLINE_TOTAL
} mmi_voip_prof_acct_inline_enum;
typedef enum
{
MMI_VOIP_PROF_OUTBOUND_STATUS_CAP,
MMI_VOIP_PROF_OUTBOUND_STATUS,
MMI_VOIP_PROF_OUTBOUND_SERVER_CAP,
MMI_VOIP_PROF_OUTBOUND_SERVER,
MMI_VOIP_PROF_OUTBOUND_PORT_CAP,
MMI_VOIP_PROF_OUTBOUND_PORT,
MMI_VOIP_PROF_OUTBOUND_USERNAME_CAP,
MMI_VOIP_PROF_OUTBOUND_USERNAME,
MMI_VOIP_PROF_OUTBOUND_PASSWORD_CAP,
MMI_VOIP_PROF_OUTBOUND_PASSWORD,
MMI_VOIP_PROF_OUTBOUND_INLINE_TOTAL
} mmi_voip_prof_outbound_inline_enum;
typedef enum
{
MMI_VOIP_PROF_REGISTER_STATUS_CAP,
MMI_VOIP_PROF_REGISTER_STATUS,
MMI_VOIP_PROF_REGISTER_SERVER_CAP,
MMI_VOIP_PROF_REGISTER_SERVER,
MMI_VOIP_PROF_REGISTER_PORT_CAP,
MMI_VOIP_PROF_REGISTER_PORT,
MMI_VOIP_PROF_REGISTER_USERNAME_CAP,
MMI_VOIP_PROF_REGISTER_USERNAME,
MMI_VOIP_PROF_REGISTER_PASSWORD_CAP,
MMI_VOIP_PROF_REGISTER_PASSWORD,
MMI_VOIP_PROF_REGISTER_INLINE_TOTAL
} mmi_voip_prof_register_inline_enum;
typedef enum
{
MMI_VOIP_PROF_NAT_STATUS_CAP,
MMI_VOIP_PROF_NAT_STATUS,
MMI_VOIP_PROF_NAT_FIREWALL_CAP,
MMI_VOIP_PROF_NAT_FIREWALL,
MMI_VOIP_PROF_NAT_STUNSERVER_CAP,
MMI_VOIP_PROF_NAT_STUNSERVER,
MMI_VOIP_PROF_NAT_STUNPORT_CAP,
MMI_VOIP_PROF_NAT_STUNPORT,
MMI_VOIP_PROF_NAT_INTERVAL_CAP,
MMI_VOIP_PROF_NAT_INTERVAL,
MMI_VOIP_PROF_NAT_INLINE_TOTAL
} mmi_voip_prof_nat_inline_enum;
typedef enum
{
MMI_VOIP_PROF_RTP_PORT_START_CAP,
MMI_VOIP_PROF_RTP_PORT_START,
MMI_VOIP_PROF_RTP_PORT_END_CAP,
MMI_VOIP_PROF_RTP_PORT_END,
MMI_VOIP_PROF_RTP_PORT_INLINE_TOTAL
} mmi_voip_prof_rtp_port_inline_enum;
typedef enum
{
MMI_VOIP_IDLE_STATE = 0x00,
MMI_VOIP_OUTGOING_STATE = 0x01,
MMI_VOIP_INCOMING_STATE = 0x02,
MMI_VOIP_ACTIVE_STATE = 0x04,
MMI_VOIP_HOLD_STATE = 0x08,
MMI_VOIP_CALL_STATE_ALL = (MMI_VOIP_OUTGOING_STATE | MMI_VOIP_INCOMING_STATE | MMI_VOIP_ACTIVE_STATE | MMI_VOIP_HOLD_STATE),
MMI_VOIP_TRANSFER_STATE = MMI_VOIP_CALL_STATE_ALL + 1,
MMI_VOIP_DISCONNECTING_STATE,
MMI_VOIP_HOLDING_STATE,
MMI_VOIP_CALL_STATE_TOTAL
} mmi_voip_call_state_enum;
typedef enum
{
MMI_VOIP_NONE = 0,
MMI_VOIP_RING_TONE,
MMI_VOIP_WAITING_TONE,
MMI_VOIP_INCOMING_TONE_TOTAL
} mmi_voip_incoming_tone_enum;
typedef enum
{
MMI_VOIP_NONE_ORIGIN = 0,
MMI_VOIP_MO_ORIGIN,
MMI_VOIP_MT_ORIGIN,
MMI_VOIP_CALL_ORIGIN_TOTAL
} mmi_voip_call_origin_enum;
typedef enum
{
MMI_VOIP_PHB = 0x01,
MMI_VOIP_HISTORY = 0x02,
MMI_VOIP_SOS = 0x04,
MMI_VOIP_MO_ORIGIN_TOTAL
} mmi_voip_mo_origin_enum;
typedef enum
{
MMI_VOIP_PROC_CAUSE_NONE,
MMI_VOIP_PROC_CAUSE_ABORT_LOGIN,
MMI_VOIP_PROC_CAUSE_ABORT_CALL,
MMI_VOIP_PROC_CAUSE_TRANSFER,
MMI_VOIP_PROC_CAUSE_TOTAL
} mmi_voip_proc_cause_enum;
typedef enum
{
MMI_VOIP_RTP_PROC_NONE = 0,
MMI_VOIP_RTP_PROC_UPDATE = 0x01,
MMI_VOIP_RTP_PROC_CREATE = 0x02,
MMI_VOIP_RTP_PROC_TOTAL
} mmi_voip_rtp_proc_enum;
typedef struct
{
S32 errorNo;
U16 errorStr;
} mmi_voip_error_string_struct;
#if 0 /* define in nvram_user_defs.h */
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#endif /* define in nvram_user_defs.h */
typedef struct
{
U32 dataacctIndex;
S32 selectionIndex; /* auto login / outbound status / register status / nat status */
S32 intervalIndex;
U16 profileName[MMI_VOIP_MAX_PROFILE_NAME_LEN];
U16 dataacctName[MAX_DATA_ACCOUNT_NAME_LEN + 1];
U16 displayName[VOIP_DISP_NAME_LEN];
U8 serverName[VOIP_URI_LEN * ENCODING_LENGTH]; /* voice mail / sip / outbound / register / stun */
U8 portNumber[MMI_VOIP_MAX_PORT_LEN * ENCODING_LENGTH]; /* sip / outbound / register / stun */
U8 username[VOIP_USERNAME_LEN * ENCODING_LENGTH]; /* sip / outbound / register */
U8 password[VOIP_PASSWORD_LEN * ENCODING_LENGTH]; /* sip / outbound / register */
U8 authName[VOIP_USERNAME_LEN * ENCODING_LENGTH];
U8 ipAddr[MMI_VOIP_MAX_IP_SEG][MMI_VOIP_MAX_IP_SEG * ENCODING_LENGTH];
U8 *twoList[2];
U8 *threeList[3];
U8 *fiveList[5];
U8 start_port[MMI_VOIP_MAX_PORT_LEN * ENCODING_LENGTH];
U8 end_port[MMI_VOIP_MAX_PORT_LEN * ENCODING_LENGTH];
} mmi_voip_prof_disp_struct;
typedef struct
{
S32 actprofIndex;
S32 currprofIndex;
U16 currScr;
U32 currDataAcct;
mmi_voip_prof_struct saved_prof[MMI_VOIP_MAX_PROFILE_NUM];
mmi_voip_prof_disp_struct disp_prof;
} mmi_voip_prof_setting_struct;
typedef struct
{
U8 autoAnswer;
U8 autoReject;
U8 autoRedial;
U8 hidecallerId;
U8 dtmf;
U8 srtp;
U8 comfortNoise;
U8 codecOrder[VOIP_MAX_NUM_CODEC][MMI_VOIP_MAX_CODEC_NAME_LEN];
} mmi_voip_setting_struct;
typedef struct
{
S32 currScr;
S32 currIndex;
S32 currPriority;
S32 numCodec;
U8 dispCodec[VOIP_MAX_NUM_CODEC][MMI_VOIP_MAX_CODEC_NAME_LEN * ENCODING_LENGTH];
voip_codec_enum codecEnum[VOIP_MAX_NUM_CODEC]; /* actual enum of codec order for VoIP CC */
mmi_voip_setting_struct saved_setting;
} mmi_voip_call_setting_struct;
typedef struct
{
U16 title_string;
U16 body_string;
U16 animation_image;
U16 lsk_string;
FuncPtr lsk_funcPtr;
U16 rsk_string;
FuncPtr rsk_funcPtr;
FuncPtr send_funcPtr;
FuncPtr end_funcPtr;
mmi_voip_proc_cause_enum cause;
} mmi_voip_proc_scr_struct;
typedef struct
{
U16 ringtoneId;
U8 alertType;
} mmi_voip_call_alert_struct;
typedef struct
{
S32 dialogId;
S16 dialogIdx;
S32 rtpHandle;
U16 appName[VOIP_DISP_NAME_LEN];
U16 dispName[VOIP_DISP_NAME_LEN];
U8 remoteUri[VOIP_URI_LEN];
MMI_BOOL isMixer;
voip_sdp_struct sdp_info;
mmi_voip_call_origin_enum callOrigin;
MYTIME startTime;
MYTIME endTime;
} mmi_voip_dialog_struct;
typedef struct
{
S32 callId;
S32 numDialog;
mmi_voip_call_state_enum currState;
mmi_voip_dialog_struct dialog_info[VOIP_MAX_NUM_DIALOG];
} mmi_voip_call_struct;
typedef struct
{
S32 callId;
U16 appName[VOIP_DISP_NAME_LEN];
U16 dispName[VOIP_DISP_NAME_LEN];
U8 remoteUri[VOIP_URI_LEN];
voip_codec_enum codecList[VOIP_MAX_NUM_CODEC]; /* supported codec list */
} mmi_voip_held_call_struct;
typedef struct
{
S32 callId;
S16 dialogIdx;
} mmi_voip_ucm_uid_struct;
typedef struct
{
U32 maxnumCall; /* max number call that voip cc can allow */
S32 numHeld;
S32 numTotal;
S32 processCId; /* current processing call id */
S32 processDId; /* current processing dialog id */
S32 bkrejCId; /* background reject call id */
S32 bkrejDId; /* background reject dialog id */
U8 call_end_ind_num; /* number of calls needs call_end_ind to UCM */
MMI_BOOL inSession; /* in voip critical session flag */
MMI_BOOL speech_on; /* voip speech on or off */
mmi_voip_call_conn_enum needConn; /* need to connect what type of call after release action */
mmi_voip_call_struct call_info[MMI_VOIP_MAX_NUM_CALL];
mmi_voip_held_call_struct held_call_info[MMI_VOIP_MAX_HELD_CALL];
mmi_voip_ucm_uid_struct call_end_ind_list[MMI_VOIP_MAX_NUM_CALL * VOIP_MAX_NUM_DIALOG];
} mmi_voip_call_list_struct;
typedef struct
{
S32 maxAttempt;
S32 currAttempt;
U16 redialStr[MMI_VOIP_MAX_STRING_LEN];
U16 redialName[VOIP_DISP_NAME_LEN];
U8 redialUri[VOIP_URI_LEN];
} mmi_voip_call_redial_struct;
typedef struct
{
U16 dtmfQueue[MMI_VOIP_DTMF_LEN * ENCODING_LENGTH];
S32 rtpHandle[VOIP_MAX_NUM_DIALOG];
U8 currPos;
U8 timerStatus;
} mmi_voip_dtmf_queue_struct;
typedef struct
{
S32 currhiliteTab;
S32 currhiliteIndex;
S32 currfreeTab;
U8 dispUri[VOIP_URI_LEN * ENCODING_LENGTH]; /* 128 unicode + 2 bytes null terminator. input and display uri for category screen */
U8 inputUri[VOIP_URI_LEN]; /* 64 ascii + 1 byte null terminator. actual inputted uri for VoIP CC */
U8 dispDtmf[MMI_VOIP_DTMF_LEN * ENCODING_LENGTH]; /* 80 unicode + 2 bytes null terminator. input and display dtmf for category screen */
U8 inputDtmf[MMI_VOIP_DTMF_LEN]; /* 40 ascii + 1 byte null terminator. actual inputted dtmf for VoIP RTP */
MMI_BOOL isSOS;
MMI_BOOL isAbort;
MMI_BOOL isDtmf;
MMI_BOOL isMute;
MMI_BOOL isLoud;
mmi_voip_incoming_tone_enum playTone;
mmi_voip_call_origin_enum actualOrigin; /* temp origin call flag for merge call or split call */
MYTIME actualTime; /* temp time buffer for merge call or split call */
} mmi_voip_call_misc_struct;
typedef struct
{
mmi_voip_mo_origin_enum moOrgin;
U16 dispName[VOIP_DISP_NAME_LEN];
U8 remoteUri[VOIP_URI_LEN];
} mmi_voip_call_originapp_struct;
typedef struct
{
U16 mwiType;
U16 mwiStr[MMI_VOIP_MAX_STRING_LEN];
U8 mwiAcct[VOIP_URI_LEN];
MMI_BOOL isDisp;
voip_msg_struct mwiMsg;
} mmi_voip_msg_waiting_struct;
typedef struct
{
U8 close_rtp_num;
U8 remove_mixer_num;
S8 close_rtp_list[MMI_VOIP_MAX_NUM_CALL*VOIP_MAX_NUM_DIALOG];
U32 remove_mixer_list[MMI_VOIP_MAX_NUM_CALL];
U8 rtp_process[MMI_VOIP_MAX_NUM_CALL][VOIP_MAX_NUM_DIALOG];
} mmi_voip_rtp_proc_struct;
typedef struct
{
U16 group_id;
U16 call_id;
} mmi_voip_keep_force_rel_call_struct;
typedef struct
{
kal_uint8 app_id;
mmi_voip_reg_state_enum reg_state_info;
mmi_voip_prof_setting_struct prof_setting_info;
mmi_voip_call_setting_struct call_setting_info;
mmi_voip_proc_scr_struct proc_scr_info;
mmi_voip_call_alert_struct call_alert_info;
mmi_voip_call_list_struct call_list_info;
mmi_voip_call_redial_struct call_redial_info;
mmi_voip_dtmf_queue_struct dtmf_queue_info;
mmi_voip_call_misc_struct call_misc_info;
mmi_voip_call_originapp_struct call_originapp_info;
mmi_voip_call_log_struct call_log_info;
mmi_voip_msg_waiting_struct msg_waiting_info;
mmi_voip_rtp_proc_struct rtp_proc_info;
} mmi_voip_cntx_struct;
typedef struct {
MMI_EVT_PARAM_HEADER
} mmi_evt_mmi_voip_abort_struct;
extern const U8 sipUri[10];
extern const U8 telUri[10];
extern const U8 anonyUri[30];
extern const U8 sosUri[8];
extern const U8 sos112[8];
extern const U8 sos911[8];
extern const U8 zeroIp[8];
extern const U16 VoIPDTMFDigits[MMI_VOIP_MAX_NUM_DIGITS];
extern mmi_voip_cntx_struct *g_voip_cntx_p;
/* VoIPMain.c */
extern mmi_ret mmi_voip_main_evt_hdlr(mmi_event_struct *event);
extern void mmi_voip_init_context(void);
extern void mmi_voip_init_setting_context(void);
extern void mmi_voip_init_call_context(void);
extern void mmi_voip_init_highlight_hdlr(void);
extern void mmi_voip_init_setting_highlight_hdlr(void);
extern void mmi_voip_init_setting_hint_hdlr(void);
extern void mmi_voip_init_call_highlight_hdlr(void);
extern void mmi_voip_init_call_hint_hdlr(void);
extern void mmi_voip_init_protocol_hdlr(void);
extern void mmi_voip_init_register_ucm_cbk(void);
extern MMI_BOOL mmi_voip_load_profile(S32 profIndex);
extern MMI_BOOL mmi_voip_save_profile(S32 profIndex);
extern void mmi_voip_load_profile_active_index(void);
extern void mmi_voip_save_profile_active_index(void);
extern MMI_BOOL mmi_voip_load_setting(void);
extern MMI_BOOL mmi_voip_save_setting(void);
/* VoIPSetting.c */
extern void mmi_voip_highlight_main_menu(void);
extern void mmi_voip_highlight_status(void);
extern void mmi_voip_highlight_summary(void);
extern void mmi_voip_highlight_prof_setting(void);
extern void mmi_voip_highlight_prof_setting_option_activate(void);
extern void mmi_voip_highlight_prof_setting_option_edit(void);
extern void mmi_voip_highlight_prof_edit_common(void);
extern void mmi_voip_highlight_prof_edit_account(void);
extern void mmi_voip_highlight_prof_edit_outbound(void);
extern void mmi_voip_highlight_prof_edit_register(void);
extern void mmi_voip_highlight_prof_edit_nat(void);
extern void mmi_voip_highlight_full_screen_editor(void);
extern void mmi_voip_highlight_done(void);
extern void mmi_voip_highlight_input_method_in_menu(void);
extern void mmi_voip_highlight_call_setting(void);
extern void mmi_voip_highlight_auto_answer(void);
extern void mmi_voip_highlight_auto_reject(void);
extern void mmi_voip_highlight_auto_redial(void);
extern void mmi_voip_highlight_hide_caller_id(void);
extern void mmi_voip_highlight_dtmf_in_menu(void);
extern void mmi_voip_highlight_secure_rtp(void);
extern void mmi_voip_highlight_comfort_noise(void);
extern void mmi_voip_highlight_set_codec_order(void);
extern void mmi_voip_hint_auto_answer(U16 index);
extern void mmi_voip_hint_auto_reject(U16 index);
extern void mmi_voip_hint_auto_redial(U16 index);
extern void mmi_voip_hint_hide_caller_id(U16 index);
extern void mmi_voip_hint_dtmf_in_menu(U16 index);
extern void mmi_voip_hint_secure_rtp(U16 index);
extern void mmi_voip_hint_comfort_noise(U16 index);
#ifdef SIP_CONFORMANCE_TEST
extern void mmi_voip_highlight_option_query(void);
#endif
extern void mmi_voip_pre_entry_main_menu(void);
extern void mmi_voip_entry_main_menu(void);
extern void mmi_voip_entry_status(void);
extern void mmi_voip_account_select_notify_cb (kal_uint32 account_id, kal_bool is_valid);
extern mmi_ret mmi_voip_bear_event_callback(mmi_event_struct* para);
extern void mmi_voip_entry_auto_login(void);
extern void mmi_voip_entry_abort_login(void);
extern mmi_ret mmi_voip_abort_post_event_hdlr(mmi_event_struct *para);
extern void mmi_voip_entry_abort_login_endkey(void);
extern void mmi_voip_entry_summary(void);
extern void mmi_voip_entry_prof_setting(void);
extern void mmi_voip_highlight_prof_setting_item(S32 index);
extern void mmi_voip_entry_prof_setting_option(void);
extern void mmi_voip_entry_prof_activate(void);
extern void mmi_voip_entry_prof_edit(void);
extern void mmi_voip_pre_entry_prof_edit_inlineitems(void);
extern void mmi_voip_entry_prof_edit_inlineitems(void);
extern void mmi_voip_exit_prof_edit_inlineitems(void);
extern void mmi_voip_update_prof_common_cache_to_disp(S32 profIndex);
extern void mmi_voip_update_prof_acct_cache_to_disp(S32 profIndex);
extern void mmi_voip_update_prof_outbound_cache_to_disp(S32 profIndex);
extern void mmi_voip_update_prof_register_cache_to_disp(S32 profIndex);
extern void mmi_voip_update_prof_nat_cache_to_disp(S32 profIndex);
extern void mmi_voip_update_prof_rtp_cache_to_disp(S32 profIndex);
extern void mmi_voip_update_prof_common_disp_to_cache(S32 profIndex);
extern void mmi_voip_update_prof_acct_disp_to_cache(S32 profIndex);
extern void mmi_voip_update_prof_outbound_disp_to_cache(S32 profIndex);
extern void mmi_voip_update_prof_register_disp_to_cache(S32 profIndex);
extern void mmi_voip_update_prof_nat_disp_to_cache(S32 profIndex);
extern void mmi_voip_update_prof_rtp_disp_to_cache(S32 profIndex);
extern S32 mmi_voip_setup_prof_common_inlineitems(void);
extern S32 mmi_voip_setup_prof_acct_inlineitems(void);
extern S32 mmi_voip_setup_prof_outbound_inlineitems(void);
extern S32 mmi_voip_setup_prof_register_inlineitems(void);
extern S32 mmi_voip_setup_prof_nat_inlineitems(void);
extern S32 mmi_voip_setup_prof_rtp_inlineitems(void);
extern void mmi_voip_entry_full_screen_editor_option(void);
extern void mmi_voip_entry_prof_data_acct(void);
extern void mmi_voip_prof_data_acct_callback(U32 index);
extern void mmi_voip_prof_ip_addr_convert(U8 *ipStr, U8 *ip1, U8 *ip2, U8 *ip3, U8 *ip4);
extern void mmi_voip_prof_ip_three_digit_string(U8 *ipStr, U8 ipInt);
extern U16 mmi_voip_prof_validate_activation(S32 profIndex);
extern U16 mmi_voip_prof_validate_inputs(void);
extern void mmi_voip_entry_prof_confirm(void);
extern void mmi_voip_entry_prof_save(void);
extern void mmi_voip_go_back_to_prof_edit(void);
extern void mmi_voip_entry_call_setting(void);
extern void mmi_voip_entry_setting_general(void);
extern void mmi_voip_highlight_setting_general_item(S32 index);
extern void mmi_voip_update_setting_answer_cache_to_disp(void);
extern void mmi_voip_update_setting_reject_cache_to_disp(void);
extern void mmi_voip_update_setting_redial_cache_to_disp(void);
extern void mmi_voip_update_setting_hide_cache_to_disp(void);
extern void mmi_voip_update_setting_dtmf_cache_to_disp(void);
extern void mmi_voip_update_setting_srtp_cache_to_disp(void);
extern void mmi_voip_update_setting_noise_cache_to_disp(void);
extern void mmi_voip_update_setting_codec_cache_to_disp(void);
extern MMI_BOOL mmi_voip_update_setting_answer_disp_to_cache(void);
extern MMI_BOOL mmi_voip_update_setting_reject_disp_to_cache(void);
extern MMI_BOOL mmi_voip_update_setting_redial_disp_to_cache(void);
extern MMI_BOOL mmi_voip_update_setting_hide_disp_to_cache(void);
extern MMI_BOOL mmi_voip_update_setting_dtmf_disp_to_cache(void);
extern MMI_BOOL mmi_voip_update_setting_srtp_disp_to_cache(void);
extern MMI_BOOL mmi_voip_update_setting_noise_disp_to_cache(void);
extern MMI_BOOL mmi_voip_update_setting_codec_disp_to_cache(void);
extern void mmi_voip_entry_setting_general_confirm(void);
extern void mmi_voip_entry_setting_general_save(void);
extern void mmi_voip_go_back_to_call_setting(void);
extern void mmi_voip_entry_set_codec_order(void);
extern void mmi_voip_highlight_set_codec_order_item(S32 index);
extern void mmi_voip_entry_set_codec_order_option(void);
extern void mmi_voip_entry_setting_codec_confirm(void);
extern void mmi_voip_entry_setting_codec_save(void);
extern void mmi_voip_go_back_to_codec_order(void);
#ifdef SIP_CONFORMANCE_TEST
extern void mmi_voip_entry_option_query(void);
extern void mmi_voip_entry_option_query_result(U8 *asciiData);
#endif /* SIP_CONFORMANCE_TEST */
extern void mmi_voip_go_back_2_history(void);
/* VoIPCall.c */
extern void mmi_voip_entry_login_confirm(void);
extern void mmi_voip_go_back_to_call_editor(void);
extern void mmi_voip_go_back_screen_check(void);
extern U32 mmi_voip_get_decoded_dtnct_id(U32 dtnct_id);
/* VoIPSignal.c */
#ifdef SIP_CONFORMANCE_TEST
extern void mmi_voip_entry_option_query_check(void);
#endif
extern void mmi_voip_pre_dial(void);
extern void mmi_voip_entry_dial(void);
extern void mmi_voip_entry_dial_sos(void);
extern void mmi_voip_entry_abort_call(void);
extern void mmi_voip_entry_abort_redial(void);
extern S32 mmi_voip_get_active_call_id(void);
extern void mmi_voip_get_held_call_list(MMI_BOOL singlecallOnly);
extern S32 mmi_voip_get_call_index(S32 callId);
extern S32 mmi_voip_get_dialog_index(S32 callIndex, S32 dialogId);
extern void mmi_voip_log_call_end_time(S32 callId, S32 dialogId, MYTIME *duration);
/* VoIPVoice.c */
extern void mmi_voip_switch_session(mmi_voip_call_state_enum currState);
extern S32 mmi_voip_create_rtp(voip_sdp_struct *sdp);
extern void mmi_voip_close_rtp(S32 rtpHandle);
extern void mmi_voip_switch_rtp(MMI_BOOL isSuspend, S32 callId, S32 dialogId);
extern void mmi_voip_control_rtp(S32 rtpHandle, S32 rtpDirection);
extern void mmi_voip_remove_mixer_before_close(S32 callIndex);
extern void mmi_voip_dtmf_key_down(U16 keyCode);
extern void mmi_voip_dtmf_key_up(void);
extern void mmi_voip_push_dtmf_queue(U16 keyCode);
extern void mmi_voip_pop_dtmf_queue(void);
extern void mmi_voip_send_dtmf_start(U16 keyCode);
extern void mmi_voip_send_dtmf_stop(void);
/* VoIPMsgHdlr.c */
extern void mmi_voip_send_message(
module_type moduleSrc,
module_type moduleDest,
U16 msgId,
void *localPara,
void *peerBuff);
extern void mmi_voip_register_req(void);
extern void mmi_voip_register_rsp(void *inMsg);
extern void mmi_voip_deregister_req(void);
extern void mmi_voip_deregister_rsp(void *inMsg);
extern void mmi_voip_deregister_ind(void *inMsg);
extern void mmi_voip_setting_req(void);
extern void mmi_voip_setting_rsp(void *inMsg);
extern void mmi_voip_progressing_ind(void *inMsg);
extern void mmi_voip_call_ring_ind(void *inMsg);
extern void mmi_voip_call_end_ind(void *inMsg);
extern void mmi_voip_call_state_ind(void *inMsg);
extern void mmi_voip_call_replace_ind(void *inMsg);
extern void mmi_voip_call_replace_cnf(U8 result, void *inMsg);
extern void mmi_voip_call_replace_complete_ind(void *inMsg);
extern void mmi_voip_msg_waiting_ind(void *inMsg);
extern void mmi_voip_at_call_ctrl_approve_ind(void *inMsg);
extern void mmi_voip_at_call_ctrl_approve_res_req(U8 result, U8 action);
extern void mmi_voip_call_status_req(U8 status);
extern void mmi_voip_call_status_rsp(void *inMsg);
#ifdef SIP_CONFORMANCE_TEST
extern void mmi_voip_option_query_req(void);
extern void mmi_voip_option_query_rsp(void *inMsg);
#endif /* SIP_CONFORMANCE_TEST */
extern void mmi_voip_dispatch_call_act_rsp(void *inMsg);
extern void mmi_voip_dial_req(void);
extern void mmi_voip_dial_rsp(void *inMsg);
extern void mmi_voip_accept_req(S32 callId);
extern void mmi_voip_accept_rsp(void *inMsg);
extern void mmi_voip_hold_req(S32 callId);
extern void mmi_voip_hold_rsp(void *inMsg);
extern void mmi_voip_retrieve_req(S32 callId);
extern void mmi_voip_retrieve_rsp(void *inMsg);
extern void mmi_voip_swap_req(S32 activecallId, S32 heldcallId);
extern void mmi_voip_swap_rsp(void *inMsg);
extern void mmi_voip_merge_req(S32 activecallId, S32 heldcallId);
extern void mmi_voip_merge_rsp(void *inMsg);
extern void mmi_voip_split_req(S32 callId, S32 helddialogId);
extern void mmi_voip_split_rsp(void *inMsg);
extern void mmi_voip_release_req(S32 callId, S32 dialogId);
extern void mmi_voip_release_rsp(void *inMsg);
extern void mmi_voip_force_release_req(S32 callId, S32 dialogId);
extern void mmi_voip_force_release_rsp(void *inMsg);
extern void mmi_voip_background_reject_req(S32 callId, S32 dialogId);
extern void mmi_voip_background_reject_rsp(void *inMsg);
#if (0)
/* under construction !*/
/* under construction !*/
#endif
extern void mmi_voip_transfer_req(S32 callId, S32 dialogId);
extern void mmi_voip_transfer_rsp(void *inMsg);
extern void mmi_voip_transferee_cnf(U8 result);
extern void mmi_voip_dial_sos_req(void);
extern void mmi_voip_dial_sos_rsp(void *inMsg);
extern void mmi_voip_hold_and_dial_req(S32 callId);
extern void mmi_voip_hold_and_dial_rsp(void *inMsg);
extern void mmi_voip_hold_and_accept_req(S32 activecallId, S32 mtcallId);
extern void mmi_voip_hold_and_accept_rsp(void *inMsg);
/* VoIPUtil.c */
extern void mmi_voip_set_processing_parameter(U16 titleStr, U16 bodyStr, U16 animationImg, U16 lskStr, FuncPtr lskFunc, U16 rskStr, FuncPtr rskFunc, FuncPtr sendFunc, FuncPtr endFunc);
extern void mmi_voip_entry_processing_screen(void);
extern MMI_BOOL mmi_voip_validate_port(U8 *unicodePort);
extern MMI_BOOL mmi_voip_validate_uri(U8 *unicodeUri);
extern MMI_BOOL mmi_voip_validate_ip(U8 *ip1, U8 *ip2, U8 *ip3, U8 *ip4);
extern MMI_BOOL mmi_voip_validate_dtmf(U16 dtmfKey);
extern void mmi_voip_parse_uri(U8 *unicodeUri);
extern void mmi_voip_convert_uri_star_n_pound(U8 *asciiSrc);
extern void mmi_voip_convert_uri_lower_case(U8 *unicodeSrc, U8 *unicodeDest, U16 len);
extern void mmi_voip_append_uri_prefix(U8 *unicodeUri);
extern void mmi_voip_append_uri_domain(U8 *unicodeUri);
extern void mmi_voip_add_to_call_list(U16 *fileName, S32 callId, S32 dialogId, mmi_voip_call_state_enum currState);
extern void mmi_voip_del_from_call_list(S32 callId, S32 dialogId);
extern void mmi_voip_update_rtp(void);
extern void mmi_voip_update_call_list(U16 *fileName, MMI_BOOL isConf);
extern void mmi_voip_update_to_del_call_list(U16 *fileName, MMI_BOOL isConf);
extern void mmi_voip_update_to_add_call_list(U16 *fileName, MMI_BOOL isConf);
extern S16 mmi_voip_get_actual_dialog_id(S16 ucm_call_info_id);
extern S16 mmi_voip_get_dialog_idx(S32 call_id, S32 dialog_id);
extern void mmi_voip_get_summary_string(U8 *unicodeStr);
extern mmi_voip_call_state_enum mmi_voip_get_call_state_enum(voip_dlg_state_enum state);
extern void mmi_voip_get_call_end_string(MYTIME *duration, U8 *unicodeStr);
extern rtp_dtmf_code_enum mmi_voip_get_dtmf_keycode_enum(U16 *keyCode);
extern U16 mmi_voip_get_error_cause(U8 result, S32 cause);
extern U16 mmi_voip_get_error_string(S32 cause);
extern MMI_BOOL mmi_voip_set_outgoing_origin_app(mmi_voip_mo_origin_enum moOrigin);
extern MMI_BOOL mmi_voip_get_outgoing_disp_name(U8 moOrigin, U8 *unicodeSrc, U8 *unicodeDest, U8 destLen);
extern void mmi_voip_get_redial_string(U8 *unicodeStr);
extern U16 mmi_voip_get_mwi_state_enum(voip_mwi_type_enum state);
extern void mmi_voip_get_mwi_string(U8 *unicodeStr);
extern MMI_BOOL mmi_voip_is_idle_state(void);
extern MMI_BOOL mmi_voip_is_keypad_lock_state(void);
extern MMI_BOOL mmi_voip_is_empty_profile(S32 profIndex);
extern MMI_BOOL mmi_voip_is_owner_number(U8 *unicodeSrc1, U8 *unicodeSrc2);
extern MMI_BOOL mmi_voip_is_sos_number(U8 *unicodeUri);
extern MMI_BOOL mmi_voip_is_codec_compatible(voip_codec_enum *codecList, MMI_BOOL firstcodecOnly);
extern MMI_BOOL mmi_voip_is_addr_change(voip_sdp_struct *mmiSdp, voip_sdp_struct *voipSdp);
extern MMI_BOOL mmi_voip_is_auto_redial(void);
extern void mmi_voip_dtcnt_delete_cb(U8 app_id, U32 account_id, U8 bearer);
extern S32 mmi_voip_query_call_count(mmi_voip_call_state_enum state);
extern void mmi_voip_get_call_n_dialog_id(mmi_voip_call_state_enum state, S32* call_id, S32* dialog_id);
extern MMI_BOOL mmi_voip_is_srv_available(void);
extern void mmi_voip_add_call_to_force_rel_list(U16 group_id, U16 call_id);
extern void mmi_voip_del_call_from_force_rel_list(U16 group_id, U16 call_id, MMI_BOOL result);
#endif /* VOIP_PROT_H */