GetCallWaiting

From IRON Test Suite
Jump to navigation Jump to search

DESCRIPTION

This command writes to the standard output the call waiting supplementary service status (ENABLED or DISABLED) of the specified GSM port.

COMMAND

Command Input arguments Returns
GetCallWaiting Port index CallWaiting status

OUTPUT

GSM port callwaiting status in the following format:
"%s\n", callwaiting_status

EXAMPLE

~# GetCallWaiting 0
DISABLED

~# GetCallWaiting 1
ENABLED

API

MessageCode: GRA_GET_CALL _WAITING_REQUEST

MESSAGE BODY
Field Name Length Description
PortIndex 4 GSM Port index

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

typedef struct
{
   ULONG    PortIndex;
} GRAM_GET_CALL _WAITING_REQUEST;

MessageCode: GRA_GET_CALL _WAITING_CONFIRM

MESSAGE BODY
Field Name Length Description
Status 4 Command status (0 if successful, otherwise see list of Error Codes Values)
CallWaiting 4 Call Waiting flag (0 for disable, 1 for enable)

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

typedef struct 
{
   ULONG    Status;
   ULONG    CallWaiting;
} GRAM_GET_CALL _WAITING_CONFIRM;