EnableCallBarring

From IRON Test Suite
Jump to navigation Jump to search

DESCRIPTION

This command enables call barring for the specified GSM port, under the specified lock type and for optional specified call class.
Lock type could be BAOC, BOIC, BOIC_EX, BAIC or BIC_RO. Call class could be VOICE, DATA, FAX, ALL_CALLS or ALL.
If call class is omitted call forwarding will be set for ALL.

COMMAND

Command Input arguments Returns
EnableCallBarring Port index, Lock type, PIN code, [Class] In the case of error, Error Code

OUTPUT

None

EXAMPLE

~# EnableCallBarring 0 BAIC
OK

~# EnableCallBarring 1 BOIC_EX VOICE
OK

API

MessageCode: GRA_ENABLE_CALL_BARRING_REQUEST

MESSAGE BODY
Field Name Length Description
PortIndex 4 GSM Port index
BarringType 4 Call barring type
PinCode 8 SIM Pin code
Class 4 Call class

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

typedef struct
{
   ULONG    PortIndex;
   ULONG    BarringType;
   UCHAR    PinCode[8];
   ULONG    Class;
} GRAM_ENABLE_CALL_BARRING_REQUEST;
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>


<source>

  1. define CALL_CLASS_VOICE 0
  2. define CALL_CLASS_DATA 1
  3. define CALL_CLASS_FAX 2
  4. define CALL_CLASS_SMS 3
  5. define CALL_CLASS_ALL_CALLS 4
  6. define CALL_CLASS_ALL 5

</source>

MessageCode: GRA_ENABLE_CALL_BARRING_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_ENABLE_CALL_BARRING_CONFIRM;