Osmocom icE1usb » History » Version 1
manawyrm, 02/23/2022 04:12 PM
1 | 1 | manawyrm | h1. Osmocom icE1usb |
---|---|---|---|
2 | |||
3 | h3. Using the icE1usb to provide a S2m line |
||
4 | |||
5 | This configuration will provide an S2m line that behaves like a german Primärmultiplexanschluss/PMX. |
||
6 | The framing/checksumming configuration required might be different for other countries. |
||
7 | |||
8 | The icE1usb ships in TE mode. You either need to use an E1 cross-over cable or change the jumpers inside the icE1usb. |
||
9 | +Ethernet cross-over cables are different and do not work!+ |
||
10 | |||
11 | /etc/dahdi/system.conf: |
||
12 | <pre><code class="shell"> |
||
13 | # Span 1: icE1usb/1/0 "Osmocom icE1USB Card 1 Span 0" (MASTER) |
||
14 | span=1,0,0,ccs,hdb3,crc4 |
||
15 | # termtype: nt |
||
16 | bchan=1-15,17-31 |
||
17 | dchan=16 |
||
18 | |||
19 | # Global data |
||
20 | loadzone = de |
||
21 | defaultzone = de |
||
22 | </code></pre> |
||
23 | |||
24 | Apply the config using: |
||
25 | <pre><code class="shell"> |
||
26 | dahdi_cfg -v |
||
27 | </code></pre> |
||
28 | |||
29 | Then create the span assignments using: |
||
30 | <pre><code class="shell"> |
||
31 | dahdi_span_assignments dumpconfig > /etc/dahdi/assigned-spans.conf |
||
32 | </code></pre> |
||
33 | |||
34 | To use Asterisk, create /etc/asterisk/dahdi-channels.conf: |
||
35 | <pre><code class="ini"> |
||
36 | ; This is not intended to be a complete chan_dahdi.conf. Rather, it is intended |
||
37 | ; to be #include-d by /etc/chan_dahdi.conf that will include the global settings |
||
38 | ; |
||
39 | |||
40 | ; Span 1: icE1usb/1/0 "Osmocom icE1USB Card 1 Span 0" (MASTER) |
||
41 | group=0,11 |
||
42 | context=from-pstn |
||
43 | switchtype = euroisdn |
||
44 | signalling = pri_net |
||
45 | channel => 1-15,17-31 |
||
46 | context = default |
||
47 | group = 63 |
||
48 | </code></pre> |
||
49 | |||
50 | |||
51 | and /etc/asterisk/chan_dahdi.conf: |
||
52 | <pre><code class="ini"> |
||
53 | [trunkgroups] |
||
54 | |||
55 | [channels] |
||
56 | language=de |
||
57 | switchtype=euroisdn |
||
58 | |||
59 | echocancel=no |
||
60 | echocancelwhenbridged=no |
||
61 | |||
62 | transfer=no |
||
63 | |||
64 | pridialplan=unknown |
||
65 | prilocaldialplan=unknown |
||
66 | internationalprefix = 00 |
||
67 | nationalprefix = 0 |
||
68 | overlapdial=yes |
||
69 | |||
70 | #include dahdi-channels.conf |
||
71 | </code></pre> |
||
72 | (careful: that #include is not a comment) |