Project

General

Profile

MISDN Getting Started » History » Version 2

WIMPy, 03/13/2022 01:55 PM

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 2 WIMPy
An introduction can be found in a presentation by Karten Keil at http://data.guug.de/slides/lk2008/lk2008-mISDN-slides.pdf
23
24 1 laforge
h2. Availability
25
26
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.
27
28
However, not all drivers are present, specifically the XHFC driver is currently only available at https://github.com/ISDN4Linux/mISDN
29
30
mISDNuser is available from https://github.com/ISDN4Linux/mISDNuser
31
32
h2. Supported Hardware
33
34
As of kernel 5.15, the following hardwre is supported in mainline:
35
* avmfritz ([[AVM_Fritz!Card_PCI]] adapters)
36
* hfcmulti ([[CologneChip_HFC]] HFC-4S/HFC-8S/HFC-E1 based PCI adapters)
37
* hfcpci ([[CologneChip_HFC]] based PCI adapters)
38
* hfcsusb ([[CologneChip_HFC]]-S based USB adapters)
39
* speedfax (Sedlbauer Speedfax+ cards based on ISAR DSP)
40
* w6692 (Winbond W6692 ISDN S/T Controller for PCI bus)
41
42
h2. First Steps
43
44
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:
45
46
h3. tools/misdn_info
47
48
<pre>
49
$ sudo ./misdn_info
50
51
Found 1 port
52
  Port  0 'HFC-S_USB.1':     TE/NT-mode BRI S/T (for phone lines & phones)
53
                              2 B-channels: 1-2
54
                                B-protocols: RAW HDLC X75slp
55
</pre>
56
57
h3. tools/misdn_log
58
59
@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.
60
61
h3. examples/misdntestlayer3
62
63
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:
64
65
<pre>
66
$ sudo ./misdntestlayer3 -v 3
67
</pre>
68
69
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)