ISDNTEL(4) | Kernel Interfaces Manual | ISDNTEL(4) |
The lower six bits of the driver's minor number are used to specify a unit number, whereas the upper two bits specify a functionality.
Functionality zero is the usual telephony data stream i/o driver.
Functionality one is used to enable commands to dial out and hang up and receive responses about the state of the dial out progress and status. This commands may change in the future, for details see the file /usr/include/netisdn/i4b_tel_ioctl.h and the isdntel(8) utility.
The telephony data stream comes out of the line in a bit-reversed format, so the isdntel driver does the bit-reversion process in any case.
Additionally, the user can specify to do A-law to mu-law, mu-law to A-law or no conversion at all in the isdntel driver by using the isdntelctl(8) utility.
The driver is able to process several ioctl's:
For the I4B_TEL_GETAUDIOFMT and I4B_TEL_SETAUDIOFMT, the following parameters are available:
USER <--> bitreversing <--> ISDN-line
USER <-- mu-law/A-law <-- bitreversing <-- ISDN-line
and the write(2) conversion path looks like this:
USER --> mu-law/A-law --> bitreversing --> ISDN-line
USER <-- A-law/mu-law <-- bitreversing <-- ISDN-line
and the write(2) conversion path looks like this:
USER --> A-law/mu-law --> bitreversing --> ISDN-line
April 21, 1999 | NetBSD 6.1 |