Project

General

Profile

MISDN Getting Started » History » Version 1

laforge, 03/13/2022 09:17 AM

1 1 laforge
h1. MISDN Getting Started
2
3
h2. Introduction
4
5
@mISDN@ is a split kernel / userspace architecture.
6
7
The kernel handles
8
* hardware device drivers
9
* PHY/L1 related bits
10
* [optionally] layer2 like Q.921/LAPD on D-channel, HDLC or X.75slp in the B-channel
11
* [optionally] audio processing of B-channels, such as conferencing, DTMF detection, ...
12
13
The userspace handles
14
* configuration of the kernel code / stack
15
* any layers not implemented in the kernel
16
* Layer3 (Q.931) is always handled in userspace
17
18
The interface between kernel and userspace is based around AF_ISDN sockets.  Those sockets carry _primitives_ between the layers.
19
20
The userspace part is called @mISDNuser@ and consists of libraries (@libmisdn.so@ and @libsuppserv.so@) and some utilities + examples.
21
22
h2. Availability
23
24
The kernel part of mISDN is still present in mainline kernels today (as of 5.14), and also built by default as kernel modules by Debian 11.
25
26
However, not all drivers are present, specifically the XHFC driver is currently only available at https://github.com/ISDN4Linux/mISDN
27
28
mISDNuser is available from https://github.com/ISDN4Linux/mISDNuser
29
30
h2. Supported Hardware
31
32
As of kernel 5.15, the following hardwre is supported in mainline:
33
* avmfritz ([[AVM_Fritz!Card_PCI]] adapters)
34
* hfcmulti ([[CologneChip_HFC]] HFC-4S/HFC-8S/HFC-E1 based PCI adapters)
35
* hfcpci ([[CologneChip_HFC]] based PCI adapters)
36
* hfcsusb ([[CologneChip_HFC]]-S based USB adapters)
37
* speedfax (Sedlbauer Speedfax+ cards based on ISAR DSP)
38
* w6692 (Winbond W6692 ISDN S/T Controller for PCI bus)
39
40
h2. First Steps
41
42
Assuming you've installed the hardware, have a kernel with mISDN + driver support and built the @mISDNuser@ tools, you can use @misdn_info@ to list the installed cards:
43
44
h3. tools/misdn_info
45
46
<pre>
47
$ sudo ./misdn_info
48
49
Found 1 port
50
  Port  0 'HFC-S_USB.1':     TE/NT-mode BRI S/T (for phone lines & phones)
51
                              2 B-channels: 1-2
52
                                B-protocols: RAW HDLC X75slp
53
</pre>
54
55
h3. tools/misdn_log
56
57
@misdn_log@ is a tracer/logger of signaling related activity in mISDN.  You can also use it with the @-w@ flag to store pcap files for later analysis by wireshark.
58
59
h3. examples/misdntestlayer3
60
61
Assuming further that you are operating your adapter in TE mode and are connecte to some PBX / softswitch that can route inbound voice calls to it, you can use @misdntestlayer3@ as follows:
62
63
<pre>
64
$ sudo ./misdntestlayer3 -v 3
65
</pre>
66
67
If you then call any MSN routed to this S/T interface, it will be immediately answered and you will get a playback of a fixed audio recordong (supposedly by Karsten Keil, the developer of the tool).
Add picture from clipboard (Maximum size: 48.8 MB)