Gammu API  1.38.0
Call

Data Structures

struct  GSM_Call
 

Enumerations

enum  GSM_CallStatus {
  GSM_CALL_IncomingCall = 1, GSM_CALL_OutgoingCall, GSM_CALL_CallStart, GSM_CALL_CallEnd,
  GSM_CALL_CallRemoteEnd, GSM_CALL_CallLocalEnd, GSM_CALL_CallEstablished, GSM_CALL_CallHeld,
  GSM_CALL_CallResumed, GSM_CALL_CallSwitched
}
 
enum  GSM_CallShowNumber { GSM_CALL_ShowNumber = 1, GSM_CALL_HideNumber, GSM_CALL_DefaultNumberPresence }
 

Functions

GSM_Error GSM_DialVoice (GSM_StateMachine *s, char *Number, GSM_CallShowNumber ShowNumber)
 
GSM_Error GSM_DialService (GSM_StateMachine *s, char *Number)
 
GSM_Error GSM_AnswerCall (GSM_StateMachine *s, int ID, gboolean all)
 
GSM_Error GSM_CancelCall (GSM_StateMachine *s, int ID, gboolean all)
 
GSM_Error GSM_HoldCall (GSM_StateMachine *s, int ID)
 
GSM_Error GSM_UnholdCall (GSM_StateMachine *s, int ID)
 
GSM_Error GSM_ConferenceCall (GSM_StateMachine *s, int ID)
 
GSM_Error GSM_SplitCall (GSM_StateMachine *s, int ID)
 
GSM_Error GSM_TransferCall (GSM_StateMachine *s, int ID, gboolean next)
 
GSM_Error GSM_SwitchCall (GSM_StateMachine *s, int ID, gboolean next)
 
GSM_Error GSM_SetIncomingCall (GSM_StateMachine *s, gboolean enable)
 
GSM_Error GSM_SendDTMF (GSM_StateMachine *s, char *sequence)
 

Detailed Description

Call entries manipulations.

Enumeration Type Documentation

§ GSM_CallShowNumber

How to handle number when initiating voice call.

Enumerator
GSM_CALL_ShowNumber 

Show number.

GSM_CALL_HideNumber 

Hide number.

GSM_CALL_DefaultNumberPresence 

Keep phone default settings.

Definition at line 192 of file gammu-call.h.

§ GSM_CallStatus

Enum with status of call.

Enumerator
GSM_CALL_IncomingCall 

Somebody calls to us

GSM_CALL_OutgoingCall 

We call somewhere

GSM_CALL_CallStart 

Call started

GSM_CALL_CallEnd 

End of call from unknown side

GSM_CALL_CallRemoteEnd 

End of call from remote side

GSM_CALL_CallLocalEnd 

End of call from our side

GSM_CALL_CallEstablished 

Call established. Waiting for answer or dropping

GSM_CALL_CallHeld 

Call held

GSM_CALL_CallResumed 

Call resumed

GSM_CALL_CallSwitched 

We switch to call

Definition at line 34 of file gammu-call.h.

Function Documentation

§ GSM_AnswerCall()

GSM_Error GSM_AnswerCall ( GSM_StateMachine s,
int  ID,
gboolean  all 
)

Accept current incoming call.

Parameters
sState machine pointer.
IDID of call.
allWhether to handle all call and not only the one specified by ID.
Returns
Error code

§ GSM_CancelCall()

GSM_Error GSM_CancelCall ( GSM_StateMachine s,
int  ID,
gboolean  all 
)

Deny current incoming call.

Parameters
sState machine pointer.
IDID of call.
allWhether to handle all call and not only the one specified by ID.
Returns
Error code

§ GSM_ConferenceCall()

GSM_Error GSM_ConferenceCall ( GSM_StateMachine s,
int  ID 
)

Initiates conference call.

Parameters
sState machine pointer.
IDID of call.
Returns
Error code

§ GSM_DialService()

GSM_Error GSM_DialService ( GSM_StateMachine s,
char *  Number 
)

Dials service number (usually for USSD).

Parameters
sState machine pointer.
NumberNumber to dial.
Returns
Error code

§ GSM_DialVoice()

GSM_Error GSM_DialVoice ( GSM_StateMachine s,
char *  Number,
GSM_CallShowNumber  ShowNumber 
)

Dials number and starts voice call.

Parameters
sState machine pointer.
NumberNumber to dial.
ShowNumberWhether we want to display number on phone.
Returns
Error code

§ GSM_HoldCall()

GSM_Error GSM_HoldCall ( GSM_StateMachine s,
int  ID 
)

Holds call.

Parameters
sState machine pointer.
IDID of call.
Returns
Error code

§ GSM_SendDTMF()

GSM_Error GSM_SendDTMF ( GSM_StateMachine s,
char *  sequence 
)

Sends DTMF (Dual Tone Multi Frequency) tone.

Parameters
sState machine pointer.
sequenceSequence to press.
Returns
Error code

§ GSM_SetIncomingCall()

GSM_Error GSM_SetIncomingCall ( GSM_StateMachine s,
gboolean  enable 
)

Activates/deactivates noticing about incoming calls.

Parameters
sState machine pointer.
enableWhether to enable notifications.
Returns
Error code

§ GSM_SplitCall()

GSM_Error GSM_SplitCall ( GSM_StateMachine s,
int  ID 
)

Splits call.

Parameters
sState machine pointer.
IDID of call.
Returns
Error code

§ GSM_SwitchCall()

GSM_Error GSM_SwitchCall ( GSM_StateMachine s,
int  ID,
gboolean  next 
)

Switches call.

Parameters
sState machine pointer.
IDID of call.
nextSwitches next call and ignores ID.
Returns
Error code

§ GSM_TransferCall()

GSM_Error GSM_TransferCall ( GSM_StateMachine s,
int  ID,
gboolean  next 
)

Transfers call.

Parameters
sState machine pointer.
IDID of call.
nextSwitches next call and ignores ID.
Returns
Error code

§ GSM_UnholdCall()

GSM_Error GSM_UnholdCall ( GSM_StateMachine s,
int  ID 
)

Unholds call.

Parameters
sState machine pointer.
IDID of call.
Returns
Error code