summaryrefslogtreecommitdiffstats
path: root/default/interface.conf
blob: 4c80fedb4f3ac2954a06379a37dd2c291458ec94 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
# interface.conf
################


# Example of an ISDN interface on port 0 used for external calls.

#[Ext]
#extern
#portnum 0

# Example of a multilink ISDN interface (Anlagenanschluss) on port 2
# and 3

#[Ext]
#extern
#portnum 2
#portnum 3


# Example of an PTP ISDN interface on port 0
# Layer-2-Hold is required to keep link alive.

#[Ext]
#extern
#portnum 0
#ptp
#layer2hold yes


# Example of an internal ISDN interface on port 1, which accepts all extensions

#[Int]
#extension
#portnum 1
#nt


# Example of an ISDN interface on port 1, which accepts only extensions
# 201, 202 and 203

#[Int]
#extension
#msn 201,202,203
#portnum 1
#nt


# Example of three ISDN interfaces on port 1, 2 and 3, which accept
# extension 201 on all interfaces, and extension 202 and 203 on the first port
# only.
# Hint: To make extension ring on all three interfaces parallel, use
# "interface Int1,Int2,In3" in extension's settings file.

#[Int1]
#extension
#msn 201,202,203
#portnum 1
#nt

#[Int2]
#extension
#msn 201
#portnum 2
#nt

#[Int3]
#extension
#msn 201
#portnum 3
#nt


# Example of an ISDN interface on port 0 that requires screening of caller IDs.
# This is required if the connected line doesn't screen caller IDs.
# Also this interface will connect bchannel during call setup, so tones are
# required.

#[Ext]
#extern
#screen-out unknown 300  national 21250993300
#screen-out unknown 2*  national 212509932*
#tones yes
#portnum 0


# Example of an ISDN PRI interface on port 0 that has directed channels.
# 10 channels (channel 1-10) are incomming only.
# 10 channels (channel 11-15,17-21) are outgoing only.
# 10 channels (channel 22-31) are both way.
# We prefer to use directed channels first, then we request any channel.
# Outgoing calls on both-way-channels shall be indicated as "any channel".
# (Siemens EWSD will select bot-way-channels when indicated that way.)

#[Ext]
#extern
#portnum 0
#layer2hold
#channel-in 1,2,3,4,5,6,7,8,9,10,22,23,24,25,26,27,28,29,30,31
#channel-out force,11,12,13,14,15,17,18,19,20,21,any


# Example of an ISDN interface that runs in NT-mode, but provides tones during
# setup. Also we provide tones during setup also.
# This is usefull to interconnect to another PBX.
# Additinally the timeout values for the different call states are adjusted to 60 seconds.
# They are: setup, dialing, proceeding, alerting, disconnect

#[PBX]
#portnum 4
#nt
#layer2hold yes
#earlyb yes
#tones yes
#timeouts 60 60 60 60 60


# Example of an interface on port 0 connected to another LCR
# This can be done by direct cross cable (terminated of course) or via L1oIP.
# Since the remote side (NT-mode) normally doesn't accept informations like
# redirected number or display facility, use 'te-special' to even transmit that
# against the ISDN specifications. A remote LCR can handle that.
# Now all information elements can be transmitted in both directions.

#[Ext]
#extern
#portnum 0
#te-special


# Alternatively give port name. You will find the name with 'isdninfo' tool.

#[Int2]
#portname hfc-s_usb.1
#nt


# The remote switch may reject extreamly large numbers to be dialed during
# setup message. Define a limit of maximum numbers to dial. The rest of
# digits will be dialed after setup via overlap dialing.

#[Ext]
#extern
#portnum 0
#dialmax 20


# Example of an ISDN interface on port 1, with alternate tones_dir to use.
# In this case, the tones are "german" tones generated by mISDN_dsp.ko.
# It is possible to give different sample sets, like "tones_german".

#[Int]
#extension
#msn 201,202,203
#tones_dir german
#portnum 1
#nt


# A special case for GSM Network interface.
# Don't remove/change the settings, they will cause undefined behaviour
# of LCR. The actual interface is defined in gsm.conf.
# You may add 'extension' and 'msn' keywords to turn all your subscribers
# in you GSM network to internal 'extensions'.
# The MSN numbers will equal the subscriber number.
#[GSM]
#gsm-bs
#nt
#layer1hold no
#layer2hold no
#tones yes
#earlyb no
#channel-in free
#channel-out any
#nodtmf


# A special case for GSM Mobile Station interface.
# give "gsm-ms <name of mobile> <layer 2 socket to layer 1>".
# Don't remove/change the settings, they will cause undefined behaviour
# of LCR. The actual interface is defined in gsm.conf.
# You may add 'extern' to make this interface the external line by default.
#[GSM]
#gsm-ms 1 /tmp/osmocom_l2
#layer1hold no
#layer2hold no
#tones no
#earlyb yes
#channel-in free
#channel-out any
#nodtmf
##external


# Use chan_lcr (Asterisk PBX interface) as internal interface.
# The interface requires mISDN_l1loop.ko to be loaded:
#  modprobe mISDN_l1loop nchannel=8 # use up to 8 b-channels
# The caller ID is used as extension, if "extension" parameter is given.
# Use "screen-in % xxx" to modify any caller id to xxx.
# An internal extension does not receive tones ("earlyb"), but sends them. 
#[ast]
#remote asterisk
#extension
##screen-in % 209
#earlyb no
#tones yes


# Hint: Enter "lcr interface" for quick help on interface options.


# Add your interfaces here:


[Ext]
extern
portnum 0


[Int]
extension
msn 200,201,202,203
portnum 1
nt