GetCallBarringStatus

From IRON Test Suite
Jump to navigation Jump to search

DESCRIPTION

This command writes to the standard output the call barring status.

COMMAND

Command Input arguments Returns
GetCallBarringStatus Port index Port Barring status

OUTPUT

GSM port barring call information in the following format:
"%s\n%s\n%s\n", voice_facility, data_facility, fax_facility

EXAMPLE

~# GetCallBarringStatus 0
BAOC
NONE
BAIC

API

MessageCode: GRA_GET_CALL_BARRING_STATUS_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_BARRING_STATUS_REQUEST;

MessageCode: GRA_GET_CALL_BARRING_STATUS_CONFIRM

MESSAGE BODY
Field Name Length Description
Status 4 Command status (0 if successful, otherwise see list of Error Codes Values)
VoiceBarring 4 Voice barring condition
DataBarring 4 Data barring condition
FaxBarring 4 Fax barring condition

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

typedef struct 
{
   ULONG    Status;
   ULONG    VoiceBarring;
   ULONG    DataBarring;
   ULONG    FaxBarring;
} GRAM_GET_CALL_BARRING_STATUS_CONFIRM;
Barring option Direction Description #define
BAOC outgoing Barring of all outgoing calls <source>CALL_BARR_BAOC 0x00000001</source>
BOIC outgoing Barring of outgoing international calls <source>CALL_BARR_BOIC 0x00000002</source>
BOIC-EX outgoing Barring of outgoing international calls EXCEPT those directed to the home PLMN country <source>CALL_BARR_BOIC_EX 0x00000004</source>
BAIC incoming Barring of all incoming calls <source>CALL_BARR_BAIC 0x00000008</source>
BIC-RO incoming Barring of incoming calls when roaming outside the home PLMN country <source>CALL_BARR_BIC_RO 0x00000010</source>