Project

General

Profile

Adding a new ISDN subscriber » History » Version 1

laforge, 11/06/2023 02:09 PM

1 1 laforge
h1. Adding a new ISDN subscriber
2
3
These are the steps require to add a new subscriber (on the divf server) to our OCTOI ISDN network:
4
5
* Adding the new dahdi trunkdev
6
** scripts for next boot
7
*** @vi /etc/dahdi/trunkdev.sh@
8
*** append new user (here called USER) to the USERS variable
9
** right now at runtime
10
*** @/root/trunkdev/trunkdev-tool create USER@
11
*** @/root/trunkdev/trunkdev-tool config USER@
12
* Adding the new user to osmo-e1d
13
** @telnet localhost 4269@
14
<pre>
15
osmo-e1d> enable
16
osmo-e1d# configure terminal
17
osmo-e1d(config)# e1d
18
osmo-e1d(config-e1d)# interface NN dahdi-trunkdev
19
osmo-e1d(config-e1d-intf)# trunkdev-name USER
20
osmo-e1d(config-e1d-intf)# line 0
21
osmo-e1d(config-e1d-intf-line)# mode e1oip
22
osmo-e1d(config-e1d-intf-line)# exit
23
osmo-e1d(config-e1d-intf)# exit
24
osmo-e1d(config-e1d)# exit
25
osmo-e1d(config)# octoi-server
26
osmo-e1d(config-octoi-server)# account USER
27
osmo-e1d(config-octoi-server-account)# mode dahdi-trunkdev
28
osmo-e1d(config-octoi-server-account)# dahdi-trunkdev name USER
29
osmo-e1d(config-octoi-server-account)# dahdi-trunkdev line-number 0
30
osmo-e1d(config-octoi-server-account)# end
31
osmo-e1d# write terminal
32
osmo-e1d# write file
33
</pre>
34
* @git add -p / git commit@ in /etc (etckeeper)
35
* Adding the link and routing to yate
36
** @vi /usr/local/etc/yate/zapcard.conf@
37
<pre>
38
[USER]
39
type=E1
40
span=trunkdev/USER/0
41
dtmfdetect=disable
42
</pre>
43
** @vi /usr/local/etc/yate/ysigchan.conf@
44
<pre>
45
[USER]
46
type=isdn-pri-net
47
sig=USER
48
voice=USER
49
switchtype=euro-isdn-e1
50
channelsync=0
51
</pre>
52
** @vi /usr/local/etc/yate/regexroute.conf@
53
<pre>
54
[berlin]
55
^5490\(....\)$=sig/0305490\1;trunk=USER
56
</pre>
57
<pre>
58
[contexts]
59
${address}^USER\/.*$=aucm2_ctx
60
</pre>
61
** reload yate config via @telnet localhost 5038@
62
<pre>
63
color on
64
debug on
65
reload
66
</pre>
67
** @git add -p / git commit@ in /usr/local/etc/yate (local git repo)
Add picture from clipboard (Maximum size: 48.8 MB)