Documente Academic
Documente Profesional
Documente Cultură
Version 1.1/2.0
10/10/95
MOTIVATION
This
paper
describes
the
BinTec
extension
for
COMMON-ISDN-API
over
TCP/IP.
REMOTE-COMMON-ISDN-API allows distributed ISDN applications without need of a separate ISDN
adapter at each computer.
It is even possible to use ISDN service within computer environments where there is actual no COMMON-ISDNAPI Operating system specification available (e.g. IBM AS/400)
The REMOTE-COMMON-ISDN-API server is listening TCP port 6000 on a BinTec BIANCA/BRICK router.
1.1
The whole message exchange between REMOTE-COMMON-ISDN-API (RCAPI) server and client is handled
via TCP protocol. The RCAPI server is listening the RCAPI-TCP port 6000 for incoming TCP connections.
Registering and releasing CAPI applications reflects in establishing and disconnecting TCP connections to the
RCAPI server.
Because of the stream oriented structure of a TCP connection each RCAPI message consists of an additional
message length block. If there is any datablock is included within the CAPI message (e.g.
DATAB3_IND,DATAB3_REQ) it is appended after the CAPI message.
Total
length
COMMON-ISDN-API
Message
possible datablock
Message
Total length
COMMON-ISDN-API
Message
datapart
Type
NetWord
Contents
Total length of the message including the complete message
header and data part in network byteorder (highbyte,
lowbyte).
COMMON-ISDN-API Message as descriped in the CAPI
specification
possible datablock (DATAB3_REQ, DATAB3_IND)
1.2
Table of Messages
To represent the CAPI interface functions some additional CAPI messages have been defined.
Message
Description
REGISTER_REQ
REGISTER_CONF
GET_MANFACTURER_REQ
GET_MANUFACTURER_CONF
GET_SERIAL_NUMBER_REQ
GET_SERIAL_NUMBER_CONF
GET_VERSION_REQ
GET_VERSION_CONF
GET_PROFILE_REQ
GET_PROFILE_CONF
MESSAGE DESCRIPTIONS
The following section defines all REMOTE-COMMON-ISDN-API messages with
their respective parameters.
The following order always will be used
CONFIRMATION, INDICATION, RESPONSE.
2.1
for
basic
names: REQUEST,
REGISTER_REQ
Description
This message is used by an application to report its presence to REMOTECOMMON-ISDN-API. By passing the
parameters messageBufferSize,
maxLogicalConnection, maxBDataBlocks,
maxBDataLen and capiVersion the
application describes its needs for the connections it is going to accept or it will try to
establish itself.
REGISTER_REQ
Command
Subcommand
0xf2
0xff
Parameter
Type
Comment
Buffer
messageBufferSize
dword
word
maxLogicalConnections
maxBDataBlocks
maxBDataLen
capiVersion
word
word
word
byte
2.2
REGISTER_CONF
Description
This message confirms the reception of a REGISTER_REQ message.
REGISTER_CONF
Command
Subcommand
Parameter
Type
Comment
Info
word
0: application registered
0x0003:
0x2001:
0x2002:
0x2007:
0xf3
0xff
2.3
GET_MANUFACTURER_REQ
Description
With this message the application determines the manufacturer identification of
REMOTE-COMMON-ISDN-API. The identification string, coded as a zero
terminated ASCII string is returned in the corresponding confirmation message.
GET_MANUFACTURER_REQ
Command
Subcommand
0xfa
0xff
2.4
GET_MANUFACTURER_CONF
Description
This message confirms the reception of a GET_MANUFACTURER_REQ message. It
also includes the requested manufacturer identifications as a zero terminated ASCII
string.
GET_MANUFACTURER_CONF
Command
Subcommand
Parameter
Type
Comment
identification string
struct
0xfb
0xff
2.5
GET_SERIAL_NUMBER_REQ
Description
With this operation the serial number of
requested.
GET_SERIAL_NUMBER_REQ
REMOTE-COMMON-ISDN-API is
Command
Subcommand
0xfe
0xff
2.6
GET_SERIAL_NUMBER_CONF
Description
This message confirms the reception of a GET_SERIAL_NUMBER_REQ message. It
also includes the requested REMOTE-COMMON-ISDN-API serial number
GET_SERIAL_NUMBER_CONF
Command
Subcommand
0xff
0xff
Parameter
Type
Comment
serial number
struct
2.7
GET_VERSION_REQ
Description
With this operation version information of
requested.
GET_VERSION_REQ
Command
Subcommand
REMOTE-COMMON-ISDN-API is
10
0xfc
0xff
2.8
GET_VERSION_CONF
Description
This message confirms the reception of a GET_VERSION_REQ message. It also
includes the requested REMOTE-COMMON-ISDN-API version information.
GET_VERSION_CONF
Command
Subcommand
0xfd
0xff
Parameter
Type
Comment
CAPI version
Manufacturer version
version information
word
word
struct
11
2.9
GET_PROFILE_REQ
Description
The application uses this message to get the capabilities from REMOTE-COMMONISDN-API. Information about implemented features, number of controllers and
supported protocols is returned via GET_PROFILE_CONF. CtrlNr, which is an
input parameter for REMOTE-COMMON-ISDN-API, contains the controller
number (bit 0..6), for which this information is requested.
GET_PROFILE_REQ
Command
Subcommand
Parameter
Type
Comment
CtrlNr
word
Controller number
12
0xe0
0xff
2.10
GET_PROFILE_CONF
Description
This message confirms the reception of a GET_PROFILE_REQ message. It also
includes the requested REMOTE-COMMON-ISDN-API controller information.
GET_PROFILE_CONF
Command
Subcommand
0xe1
0xff
Type
Description
Info
WORD
CtrlNr
nChannel
options
WORD
WORD
DWORD
b1protocols
DWORD
b2protocols
DWORD
13
b3protocols
DWORD
reserved
manufacturer
6 DWORDs
5 DWORDs
Note
This function can be extended, so an application has to ignore unknown bits.
REMOTE-COMMON-ISDN-API will set every reserved field to 0.
14