Gammu internals  1.38.0
gammu-call.h
Go to the documentation of this file.
1 
7 #ifndef __gammu_call_h
8 #define __gammu_call_h
9 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 #include <gammu-types.h>
20 #include <gammu-limits.h>
21 #include <gammu-error.h>
22 #include <gammu-statemachine.h>
23 
34 typedef enum {
76 
82 typedef struct {
86  GSM_CallStatus Status;
90  int CallID;
102  unsigned char PhoneNumber[(GSM_MAX_NUMBER_LENGTH + 1) * 2];
103 } GSM_Call;
104 
110 typedef enum {
128 
134 typedef enum {
152 
158 typedef struct {
162  GSM_Divert_DivertTypes DivertType;
166  GSM_Divert_CallTypes CallType;
170  unsigned int Timeout;
174  unsigned char Number[(GSM_MAX_NUMBER_LENGTH + 1) * 2];
176 
182 typedef struct {
184  GSM_CallDivert Entries[GSM_MAX_CALL_DIVERTS];
186 
192 typedef enum {
206 
218 GSM_Error GSM_DialVoice(GSM_StateMachine * s, char *Number,
219  GSM_CallShowNumber ShowNumber);
230 GSM_Error GSM_DialService(GSM_StateMachine * s, char *Number);
231 
245 
259 
271 
283 
295 
307 
320 
333 
345 GSM_Error GSM_GetCallDivert(GSM_StateMachine *s, GSM_CallDivert *request, GSM_MultiCallDivert *result);
346 
357 GSM_Error GSM_SetCallDivert(GSM_StateMachine * s, GSM_CallDivert * divert);
358 
369 
381 
392 GSM_Error GSM_SendDTMF(GSM_StateMachine * s, char *sequence);
393 
394 #ifdef __cplusplus
395 }
396 #endif
397 #endif
398 
399 /* Editor configuration
400  * vim: noexpandtab sw=8 ts=8 sts=8 tw=72:
401  */
GSM_Error GSM_DialVoice(GSM_StateMachine *s, char *Number, GSM_CallShowNumber ShowNumber)
Definition: api.c:845
GSM_Error GSM_DialService(GSM_StateMachine *s, char *Number)
Definition: api.c:858
GSM_Error GSM_SendDTMF(GSM_StateMachine *s, char *sequence)
Definition: api.c:1040
GSM_CallStatus Status
Definition: gammu-call.h:86
GSM_Divert_DivertTypes
Definition: gammu-call.h:110
#define GSM_MAX_NUMBER_LENGTH
Definition: gammu-limits.h:77
GSM_Error GSM_TransferCall(GSM_StateMachine *s, int ID, gboolean next)
Definition: api.c:949
GSM_Error GSM_AnswerCall(GSM_StateMachine *s, int ID, gboolean all)
Definition: api.c:871
GSM_Error
Definition: gammu-error.h:23
GSM_CallShowNumber
Definition: gammu-call.h:192
GSM_Error GSM_CancelAllDiverts(GSM_StateMachine *s)
Definition: api.c:1001
GSM_CallStatus
Definition: gammu-call.h:34
unsigned int Timeout
Definition: gammu-call.h:170
GSM_Error GSM_ConferenceCall(GSM_StateMachine *s, int ID)
Definition: api.c:923
GSM_Error GSM_CancelCall(GSM_StateMachine *s, int ID, gboolean all)
Definition: api.c:884
int StatusCode
Definition: gammu-call.h:98
int gboolean
Definition: gammu-types.h:23
GSM_Error GSM_SetCallDivert(GSM_StateMachine *s, GSM_CallDivert *divert)
Definition: api.c:988
GSM_Divert_CallTypes
Definition: gammu-call.h:134
GSM_Error GSM_SetIncomingCall(GSM_StateMachine *s, gboolean enable)
Definition: api.c:1014
GSM_Divert_CallTypes CallType
Definition: gammu-call.h:166
GSM_Error GSM_HoldCall(GSM_StateMachine *s, int ID)
Definition: api.c:897
GSM_Divert_DivertTypes DivertType
Definition: gammu-call.h:162
GSM_Error GSM_SwitchCall(GSM_StateMachine *s, int ID, gboolean next)
Definition: api.c:962
int CallID
Definition: gammu-call.h:90
gboolean CallIDAvailable
Definition: gammu-call.h:94
GSM_Error GSM_UnholdCall(GSM_StateMachine *s, int ID)
Definition: api.c:910
GSM_Error GSM_GetCallDivert(GSM_StateMachine *s, GSM_CallDivert *request, GSM_MultiCallDivert *result)
Definition: api.c:975
#define GSM_MAX_CALL_DIVERTS
Definition: gammu-limits.h:330
GSM_Error GSM_SplitCall(GSM_StateMachine *s, int ID)
Definition: api.c:936