Gammu internals  1.38.0
USSD messages
Collaboration diagram for USSD messages:

Data Structures

struct  GSM_USSDMessage
 

Enumerations

enum  GSM_USSDStatus {
  USSD_Unknown = 1, USSD_NoActionNeeded, USSD_ActionNeeded, USSD_Terminated,
  USSD_AnotherClient, USSD_NotSupported, USSD_Timeout
}
 

Functions

GSM_Error GSM_SetIncomingUSSD (GSM_StateMachine *s, gboolean enable)
 

Detailed Description

USSD messages manipulations.

Enumeration Type Documentation

§ GSM_USSDStatus

Status of USSD message.

Enumerator
USSD_Unknown 

Unknown status

USSD_NoActionNeeded 

No action is needed, maybe network initiated USSD

USSD_ActionNeeded 

Reply is expected

USSD_Terminated 

USSD dialog terminated

USSD_AnotherClient 

Another client replied

USSD_NotSupported 

Operation not supported

USSD_Timeout 

Network timeout

Definition at line 130 of file gammu-message.h.

Function Documentation

§ GSM_SetIncomingUSSD()

GSM_Error GSM_SetIncomingUSSD ( GSM_StateMachine s,
gboolean  enable 
)

Activates/deactivates noticing about incoming USSDs (UnStructured Supplementary Services).

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

Activates/deactivates noticing about incoming USSDs (UnStructured Supplementary Services).

Definition at line 1027 of file api.c.

References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, _GSM_StateMachine::Phone, PRINT_LOG_ERROR, and GSM_Phone_Functions::SetIncomingUSSD.

1028 {
1029  GSM_Error err;
1030 
1032 
1033  err = s->Phone.Functions->SetIncomingUSSD(s, enable);
1034  PRINT_LOG_ERROR(err);
1035  return err;
1036 }
GSM_Error
Definition: gammu-error.h:23
GSM_Phone Phone
Definition: gsmstate.h:1431
#define PRINT_LOG_ERROR(err)
Definition: api.c:28
#define CHECK_PHONE_CONNECTION()
Definition: api.c:38
GSM_Error(* SetIncomingUSSD)(GSM_StateMachine *s, gboolean enable)
Definition: gsmstate.h:1051
GSM_Phone_Functions * Functions
Definition: gsmstate.h:1373