Technical data

isdnio(7I) Ioctl Requests SunOS 5.5
/
ISDN_TYPE_OTHER, /Not an ISDN interface /
ISDN_TYPE_TE,
ISDN_TYPE_NT,
ISDN_TYPE_PRI,
} isdn_interface_t;
Activation and
Deactivation of ISDN
Interfaces
The management device associated with an ISDN D-channel is used to request activation,
deactivation and receive information about the activation state of the interface. See the
descriptions of the ISDN_PH_ACTIVATE_REQ andISDN_MPH_DEACTIVATE_REQ ioctls.
Changes in the activation state of an interface are communicated to the D-channel appli-
cation throughM_PROTO messages sent up-stream on the management device associated
with the D-channel. If the D-channel protocol stack is implemented as a user process, the
user process can retrieve the M_PROTO messages usingthe getmsg(2) system call.
TheseM_PROTO messages have the following format:
typedef struct isdn_message {
unsigned int magic; /set to ISDN_PROTO_MAGIC /
isdn_interface_t type; /Interface type /
isdn_message_type_t message; /CCITT or vendor Primitive /
unsigned int vendor[5]; /Vendor specific content /
} isdn_message_t;
typedef enum isdn_message_type {
ISDN_VPH_VENDOR = 0, /Vendor specific messages /
ISDN_PH_AI, /Physical: Activation Ind /
ISDN_PH_DI, /Physical: Deactivation Ind /
ISDN_MPH_AI, /Management: Activation Ind /
ISDN_MPH_DI, /Management: Deactivation Ind /
ISDN_MPH_EI1, /Management: Error 1 Indication /
ISDN_MPH_EI2, /Management: Error 2 Indication /
ISDN_MPH_II_C, /Management: Info Ind, connection /
ISDN_MPH_II_D /Management: Info Ind, disconn. /
} isdn_message_type_t;
IOCTLS
STREAMS IOCTLS All of the streamio(7I) ioctl commands may be issued for a device conforming to the the
isdnio interface.
ISDN interfaces that allow access to audio data should implement a reasonable subset of
the audio(7I) interface.
ISDN ioctls ISDN_PH_ACTIVATE_REQ
Request ISDN physical layer activation. This command is valid for both TE and NT
interfaces. fd must be a D-channel file descriptor. arg is ignored.
TE activation will occur without use of theISDN_PH_ACTIVATE_REQ ioctl if the
device corresponding to the TE D-channel is open, “on”, and theISDN switch is
requesting activation.
ISDN_MPH_DEACTIVATE_REQ
7I-156 modified 7 Apr 1994