comparison src/aci2/aci/cmh_cc.h @ 3:93999a60b835

src/aci2, src/condat2: import of g23m/condat source pieces from TCS211
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 26 Sep 2016 00:29:36 +0000
parents
children
comparison
equal deleted inserted replaced
2:c41a534f33c6 3:93999a60b835
1 /*
2 +-----------------------------------------------------------------------------
3 | Project : GSM-PS (6147)
4 | Modul : CMH
5 +-----------------------------------------------------------------------------
6 | Copyright 2002 Texas Instruments Berlin, AG
7 | All rights reserved.
8 |
9 | This file is confidential and a trade secret of Texas
10 | Instruments Berlin, AG
11 | The receipt of or possession of this file does not convey
12 | any rights to reproduce or disclose its contents or to
13 | manufacture, use, or sell anything it may describe, in
14 | whole, or in part, without the specific written consent of
15 | Texas Instruments Berlin, AG.
16 +-----------------------------------------------------------------------------
17 | Purpose : Definitions for the command handler of Call Control
18 +-----------------------------------------------------------------------------
19 */
20
21 #ifndef CMH_CC_H
22 #define CMH_CC_H
23
24 /* #include "cmh.h" */
25
26
27 /*==== CONSTANTS ==================================================*/
28
29 typedef enum
30 {
31 NO_CHLD_ADD_INFO = 0, /* no additional CHLD info */
32 CHLD_ADD_INFO_RTV_CAL, /* additional CHLD info, retrieve call */
33 CHLD_ADD_INFO_ACC_CAL, /* additional CHLD info, accept call */
34 CHLD_ADD_INFO_DIAL_CAL /* additional CHLD info, dial call */
35 } T_CHLD_ADD_INFO;
36
37 typedef enum
38 {
39 NO_VLD_CC_SIM_QLF = 0, /* not a valid SIM CC qualifier */
40 CC_SIM_YES, /* yes, perform SIM CC check */
41 CC_SIM_NO /* no, do not perform SIM CC check */
42 } T_CC_SIM_QLF;
43
44 typedef enum
45 {
46 TTY_STOP, /* stop TTY Service */
47 TTY_PAUSE, /* pause TTY Service (call held/modified) */
48 TTY_TCH, /* TCH assigned */
49 TTY_START /* start TTY Service, if possible */
50 } T_CC_TTY_ACTION;
51
52 typedef enum
53 {
54 NO_VLD_CC_CALL_TYPE = -1,
55 VOICE_CALL = 0
56 #ifdef FAX_AND_DATA
57 ,
58 TRANS_CALL,
59 NON_TRANS_CALL,
60 FAX_CALL,
61 UNSUP_DATA_CALL
62 #endif /* FAX_AND_DATA */
63 #ifdef CO_UDP_IP
64 ,
65 UDPIP_CALL
66 #endif /* CO_UDP_IP */
67 #ifdef FF_TCP_IP
68 ,
69 PPP_CALL
70 #endif /* FF_TCP_IP */
71 #ifdef FF_GPF_TCPIP
72 ,
73 TCPIP_CALL
74 #endif /* FF_GPF_TCPIP */
75 }
76 T_CC_CALL_TYPE;
77
78 /*==== TYPES ======================================================*/
79
80
81 /*==== PROTOTYPES =================================================*/
82
83 /*
84 * PSA notification events
85 */
86 EXTERN void cmhCC_CallConnected ( SHORT cId );
87 EXTERN void cmhCC_CallDisconnected( SHORT cId );
88 EXTERN void cmhCC_CallReleased ( SHORT cId );
89 EXTERN void cmhCC_CPIReleaseMsg ( SHORT cId );
90 EXTERN void cmhCC_CPIrejectMsg ( SHORT cId );
91 EXTERN void cmhCC_CallProceeding ( SHORT cId );
92 EXTERN void cmhCC_CallAlerted ( SHORT cId );
93 EXTERN void cmhCC_CallModified ( SHORT cId );
94 EXTERN void cmhCC_IncomingCall ( SHORT cId );
95 /*EXTERN void cmhCC_DisconnectCall ( SHORT cId );*/ // HM 11-May-2005: Dead code
96 EXTERN void cmhCC_Synchronized ( SHORT cId );
97 EXTERN void cmhCC_CallRetrieved ( SHORT cId );
98 EXTERN void cmhCC_CallHeld ( SHORT cId );
99 EXTERN void cmhCC_RA_Activated ( SHORT cId );
100 EXTERN void cmhCC_RA_Deactivated ( SHORT cId );
101 EXTERN void cmhCC_RA_Modified ( SHORT cId );
102 EXTERN void cmhCC_L2R_Failed ( void );
103 EXTERN void cmhCC_T30_Activated ( void );
104 EXTERN void cmhCC_T30_Deactivated ( void );
105 EXTERN void cmhCC_T30_Failed ( void );
106 EXTERN void cmhCC_T30_RmtCaps ( void );
107 EXTERN void cmhCC_SSTransFail ( SHORT cId );
108
109
110 EXTERN void cmhCC_get_active_als_mode( T_ACI_CMD_SRC srcId, T_ACI_ALS_MOD *mode );
111 EXTERN void cmhCC_init_cldPty ( T_CLPTY_PRM *cldPty );
112 EXTERN BOOL cmhCC_SendDTMFdig ( T_ACI_AT_CMD cmd, SHORT cId, CHAR digit, UBYTE mode);
113 EXTERN SHORT cmhCC_find_call_for_DTMF( void );
114 EXTERN BOOL is_call_ok_for_dtmf ( SHORT cId );
115 EXTERN T_ACI_RETURN cmhCC_chkShortString ( T_ACI_CMD_SRC srcId,
116 SHORT cId,
117 T_CLPTY_PRM *cldPty);
118
119 EXTERN void cmhCC_PrepareCmdEnd (SHORT cId, UBYTE *cmdBuf, UBYTE *srcBuf);
120
121 EXTERN UBYTE cmhCC_set_speech_serv ( T_CC_CMD_PRM *pCCCmdPrm);
122
123 EXTERN UBYTE cmhCC_SelCE ( T_ACI_CBST_CE ce );
124 EXTERN UBYTE cmhCC_SelServ ( T_ACI_CBST_NAM name );
125 EXTERN UBYTE cmhCC_SelRate ( T_ACI_BS_SPEED speed );
126 EXTERN UBYTE cmhCC_SelMT ( T_ACI_BS_SPEED speed );
127 EXTERN UBYTE cmhCC_SelStopBit ( T_ACI_CMD_SRC srcId );
128 EXTERN UBYTE cmhCC_SelDataBit ( T_ACI_CMD_SRC srcId );
129 EXTERN UBYTE cmhCC_SelParity ( T_ACI_CMD_SRC srcId );
130 EXTERN SHORT cmhCC_GetCallType_from_bearer( void * bearCap );
131 EXTERN SHORT cmhCC_GetSrvType ( void * bearCap );
132 EXTERN SHORT cmhCC_GetDataRate ( void * bearCap );
133 EXTERN SHORT cmhCC_GetParity ( void * bearCap );
134 EXTERN SHORT cmhCC_GetFormat ( void * bearCap );
135 EXTERN T_ACI_CLASS cmhCC_GetCallClass ( SHORT cId );
136 EXTERN T_ACI_TOA* cmhCC_ctbGetCldNumTyp ( SHORT cId,
137 T_ACI_TOA * pToaBuf );
138 EXTERN T_ACI_TOS* cmhCC_ctbGetCldSubTyp ( SHORT cId,
139 T_ACI_TOS * pTosBuf );
140 EXTERN T_ACI_TOA* cmhCC_ctbGetClrNumTyp ( SHORT cId,
141 T_ACI_TOA * pToaBuf );
142 EXTERN T_ACI_TOS* cmhCC_ctbGetClrSubTyp ( SHORT cId,
143 T_ACI_TOS * pTosBuf );
144 EXTERN T_ACI_TOA* cmhCC_ctbGetRdrNumTyp ( SHORT cId,
145 T_ACI_TOA * pToaBuf );
146 EXTERN T_ACI_TOS* cmhCC_ctbGetRdrSubTyp ( SHORT cId,
147 T_ACI_TOS * pTosBuf );
148 EXTERN void cmhCC_SndDiscRsn ( SHORT cId );
149 EXTERN BOOL cmhCC_ChckInCallMdfy ( SHORT cId, UBYTE cmd );
150 EXTERN void cmhCC_flagCall ( SHORT cId,
151 USHORT * flags );
152 EXTERN BOOL cmhCC_tstAndUnflagCall( SHORT cId,
153 USHORT * flags );
154 EXTERN void cmhCC_ClearCall ( SHORT cId,
155 USHORT cs,
156 T_ACI_CMD_SRC srcId,
157 UBYTE cmd,
158 SHORT *waitId);
159 EXTERN void cmhCC_NewCall ( SHORT cId,
160 T_ACI_CMD_SRC srcId,
161 T_ACI_AT_CMD cmd );
162 EXTERN void cmhCC_RetrieveCall ( SHORT cId,
163 T_ACI_CMD_SRC srcId );
164 EXTERN void cmhCC_AcceptCall ( SHORT cId,
165 T_ACI_CMD_SRC srcId,
166 T_ACI_AT_CMD cmd );
167 EXTERN void cmhCC_HoldCall ( SHORT cId,
168 T_ACI_CMD_SRC srcId,
169 T_ACI_AT_CMD cmd );
170 EXTERN BOOL cmhCC_atdsendok ( SHORT cId );
171
172 EXTERN void send_CSSX_notification(SHORT ctbIdx,
173 T_ACI_CSSX_CODE cssx_code,
174 SHORT index,
175 CHAR *number,
176 T_ACI_TOA *toa,
177 CHAR *subaddr,
178 T_ACI_TOS *tos);
179
180 EXTERN void cmhrat_ccbs ( UBYTE srcId,
181 T_ACI_CCBS_IND ccbs_ind,
182 T_ACI_CCBS_STAT status,
183 T_ACI_CCBS_SET *setting );
184 EXTERN T_CC_CALL_TYPE cmhCC_getcalltype ( SHORT cId );
185 EXTERN void cmhCC_NotifySS ( SHORT cId,
186 T_NOTIFY_SS_INV *ntfySS );
187 EXTERN void cmhCC_CheckSS ( SHORT cId );
188 EXTERN void cmhCC_MPTYBuild ( SHORT cId,
189 T_BUILD_MPTY_RES *bldMPTY );
190 EXTERN void cmhCC_MPTYSplit ( SHORT cId,
191 T_SPLIT_MPTY_RES *splMPTY );
192 EXTERN void cmhCC_MPTYHeld ( SHORT cId,
193 T_HOLD_MPTY_RES *hldMPTY );
194 EXTERN void cmhCC_MPTYRetrieved ( SHORT cId,
195 T_RETRIEVE_MPTY_RES *rtvMPTY );
196 EXTERN void cmhCC_MPTYTimeout ( void );
197 EXTERN void cmhCC_ECTTimeout ( void );
198 EXTERN void cmhCC_CCBSRegistered ( SHORT cId,
199 T_ACC_REGISTER_CC_ENTRY_RES *CCBSreg );
200 EXTERN void cmhCC_CDRegistered ( SHORT cId );
201 EXTERN T_ACI_RETURN cmhCC_chkKeySeq ( T_ACI_CMD_SRC srcId,
202 T_CLPTY_PRM *cldPty,
203 T_ACI_D_TOC *callType,
204 T_ACI_D_CLIR_OVRD *CLIRovrd,
205 T_CC_SIM_QLF ccSIMQlf );
206 EXTERN T_ACI_RETURN cmhCC_Dial ( T_ACI_CMD_SRC srcId,
207 T_CLPTY_PRM * cldPty,
208 T_ACI_D_CLIR_OVRD clirOvrd,
209 T_ACI_D_CUG_CTRL cugCtrl,
210 T_ACI_D_TOC callType );
211 EXTERN T_ACI_RETURN cmhCC_fillSetupPrm ( SHORT cId,
212 T_ACI_CMD_SRC srcId,
213 T_CLPTY_PRM *cldPty,
214 T_bcpara *bc,
215 UBYTE prio,
216 T_ACI_D_CLIR_OVRD clirOvrd,
217 T_ACI_D_CUG_CTRL cugCtrl,
218 T_ACI_D_TOC callType );
219 EXTERN void cmhCC_chkDTMFDig ( CHAR *num,
220 SHORT cId,
221 USHORT length,
222 BOOL within_dial_string );
223 EXTERN void cmhCC_DTMFsent ( SHORT cId );
224 EXTERN void cmhCC_DTMFstopped ( SHORT cId );
225 EXTERN BOOL is_digit_dtmf_separator(CHAR digit);
226 #ifdef FF_TTY
227 EXTERN T_ACI_CTTY_TRX cmhCC_getTTYtrx_state (int ttyTrxState);
228 EXTERN void cmhCC_notifyTTY ( T_ACI_CTTY_NEG neg,
229 T_ACI_CTTY_TRX trx );
230 EXTERN void cmhCC_TTY_Control ( SHORT cId, UBYTE action );
231 #else
232 #define cmhCC_TTY_Control(_x_,_y_)
233 #endif
234
235 EXTERN void cmhCC_checkALS_Support ( );
236 EXTERN void cmhCC_checkALS_Support_cb ( SHORT aId );
237 EXTERN void cmhCC_checkALS_Support_2 ( );
238 EXTERN void cmhCC_checkALS_Support_cb_2 ( SHORT aId );
239 GLOBAL void cmhCC_checkALS_Support_exec ( UBYTE flag );
240
241 EXTERN T_ACI_RETURN cmhCC_sendFie( T_ACI_FAC_DIR tDirection,
242 SHORT cId,
243 T_fac_inf *fie );
244 #if defined(_TARGET_)
245 EXTERN T_ACI_RETURN cmhCC_rd_mode_FFS(T_ACI_CC_REDIAL_MODE rdl_mode,
246 T_ACI_CC_RDL_FFS ffs_mode);
247 #endif /* _TARGET_ */
248 EXTERN void cmhCC_redialTimeout ( void );
249 EXTERN void cmhCC_redialCheck(SHORT cId);
250 EXTERN T_ACI_RETURN cmhCC_redialChkBlackl(SHORT cId);
251 /*==== EXPORT =====================================================*/
252
253 #ifdef CMH_CCF_C
254
255 GLOBAL T_CHLD_ADD_INFO CHLDaddInfo;
256 GLOBAL T_ACI_CC_REDIAL_PAR rdlPrm;
257 #else
258
259 EXTERN T_CHLD_ADD_INFO CHLDaddInfo;
260 EXTERN T_ACI_CC_REDIAL_PAR rdlPrm;
261 #endif /* CMH_CCF_C */
262
263
264 #endif /* CMH_CC_H */
265
266 /*==== EOF =======================================================*/