Siebel Communications Server Administration Guide > Developing a Communications Driver > Siebel Adaptive Communications API Reference >

Constants for Communications Drivers


Each of the following elements enumerates one or more constants. Values for all fields are stored when information about objects is passed back and forth between the Siebel software and the communications driver.

For example, object information is passed in this manner when the client handle method UpdateObjectInformation is invoked. See UpdateObjectInformation.

SCCommandFlag

Communications commands have dynamic or runtime status, consisting of the bit-flags enumerated by SCCommandFlag. Zero or more bit-flags can apply to a given command at any given time.

NOTE:  In developing a driver, specify the names of the status flags, such as SC_CF_DISABLED, SC_CF_BLINKING, and so on, rather than the integer values.

enum SCCommandFlag
{
    SC_CF_NOTSUPPORTED  = 1,
    SC_CF_DISABLED      = 2,
    SC_CF_CHECKED       = 4,
    SC_CF_BLINKING      = 8,
    SC_CF_NOPARAMSOK    = 16,
    SC_CF_STRPARAMSOK   = 32
};

Each bit-flag that can be associated with a command is described below:

NOTE:  If a device command's status excludes SC_CF_NOTSUPPORTED or SC_CF_DISABLED bit flags, then the command is considered enabled.

SCCommandTypeEx

Communications commands can be specified using either the InvokeCommand or InvokeCommandEx methods of the service handle. The values enumerated by SCCommandTypeEx specify the command type for an invocation of the InvokeCommandEx method. See InvokeCommandEx.

NOTE:  In developing a driver, specify the names of the command types, such as SC_CT_MAKECALL, rather than the integer values.

enum SCCommandTypeEx
{
    SC_CT_MAKECALL       = 1,
    SC_CT_SENDMESSAGE    = 2
};

Each command type is described below:

SCErrorCode

The values enumerated by SCErrorCode specify predefined error codes. The error codes from 0 to 1000 are reserved.

NOTE:  In developing a driver, specify the names of the error codes, such as SC_EC_OK, SC_EC_ERROR, and so on, rather than the integer values.

enum SCErrorCode
{
    SC_EC_OK                       = 0,
    SC_EC_ERROR                    = 1,
    SC_EC_CMD_NOT_SUPPORTED        = 2,
    SC_EC_MEDIA_TYPE_NOT_SUPPORTED = 3,
    SC_EC_INVALID_HANDLE           = 4,
    SC_EC_OUT_OF_MEMORY            = 5,
    SC_EC_NETWORK_ERROR            = 6,
    SC_EC_LIB_LOAD_ERR             = 7,
    SC_EC_FUNC_NOT_RESOLVED        = 8,
    SC_EC_DRIVER_CREATION_ERR      = 9,
    SC_EC_DRIVER_RELEASE_ERR       = 10,
    SC_EC_SERVICE_CREATION_ERR     = 11,
    SC_EC_SERVICE_RELEASE_ERR      = 12,
    SC_EC_INVALID_ITEM_TRACKING_ID = 13,
    SC_EC_CLIENT_INTERFACE_ERR     = 14,
    SC_EC_SENDMSG_FAILED_RETRY     = 15,
    SC_EC_IMPOBJ_CREATE_ERR        = 16,
    SC_EC_INVALID_LICENSE          = 17,
    SC_EC_WORK_ITEM_WRONG_STATE    = 18,
    SC_EC_DRIVER_SPECIFIC          = 1000
};

Each error code is described below:

SCObjectProperty

Properties of monitored communications objects.

NOTE:  In developing a driver, specify the names of the object properties, such as SC_OP_ONOFF, SC_OP_AGENTID, and so on, rather than the integer values.

enum SCObjectProperty
{
       SC_OP_ONOFF         = 1,
       SC_OP_AGENTID       = 2,
       SC_OP_ISNOTREADY    = 4,
       SC_OP_ISBUSY        = 5,
       SC_OP_DESCRIPTION   = 7,
       SC_OP_TIMEINQUEUE   = 9,
       SC_OP_QUEUEID       = 12,
       SC_OP_ISLOGON       = 13
};

Each object property is described below:

SCWorkItemMode

Identifies work item modes, for inbound or outbound work items.

NOTE:  In developing a driver, specify the names of the error codes, such as SC_WM_INBOUND, rather than the integer values.

enum SCWorkItemMode
{
      SC_WM_INBOUND  = 1,
      SC_WM_OUTBOUND = 2
};

Each work item type is described below:


 Siebel Communications Server Administration Guide 
 Published: 23 June 2003