SetCallWaiting

From IRON Test Suite
Jump to navigation Jump to search

DESCRIPTION

This command enables or disables call waiting supplementary service for the specified GSM port.

COMMAND

Command Input arguments Returns
SetCallWaiting Port index, Call Waiting flag In the case of error, Error Code

OUTPUT

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

EXAMPLE

~# SetCallWaiting 0 ENABLE
ENABLED

~# SetCallWaiting 0 DISABLE
DISABLED

API

MessageCode: GRA_SET_CALL _WAITING_REQUEST

MESSAGE BODY
Field Name Length Description
PortIndex 4 GSM Port index
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    PortIndex;
   ULONG    CallWaiting;
} GRAM_SET_CALL _WAITING_REQUEST;

MessageCode: GRA_SET_CALL _WAITING_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_SET_CALL _WAITING_CONFIRM;