OpenUSSDSession

From IRON Test Suite
Jump to navigation Jump to search

DESCRIPTION

This command opens a new USSD session and sends specified USSD string on the specified GSM port. Optional character set can be specified (GSM, HEX or UCS2)

COMMAND

Command Input arguments Returns
OpenUSSDSession Port index, USSD string, charset In the case of error, Error Code

OUTPUT

None

EXAMPLE

~# OpenUSSDSession 0 "*111#"

API

MessageCode: GRA_OPEN_USSD_SESSION_REQUEST

MESSAGE BODY
Field Name Length Description
PortIndex 4 GSM Port index
UssdString 512 USSD string
CharSet 4 Character set:
0- Unknown
1- GSM
2- HEX
3- UCS2

The format of Message Body can be coded as the following C-language structure:

typedef struct
{
   ULONG    PortIndex;
   UCHAR    UssdString[512];
   ULONG    CharSet;
} GRAM_OPEN_USSD_SESSION_REQUEST;

MessageCode: GRA_OPEN_USSD_SESSION_CONFIRM

MESSAGE BODY
Field Name Length Description
Status 4 Command status (0 if successful, otherwise see list of Error Codes Values)

The format of Message Body can be coded as the following C-language structure:

typedef struct 
{
   ULONG    Status;
} GRAM_OPEN_USSD_SESSION_CONFIRM;