1a465adfcfaaeb4dcdc286cd677d0b030ce8dc32
[lcr.git] / default / interface.conf
1 # interface.conf
2 ################
3
4
5 # Example of an ISDN interface on port 0 used for external calls.
6
7 #[Ext]
8 #extern
9 #portnum 0
10
11 # Example of a multilink ISDN interface (Anlagenanschluss) on port 2
12 # and 3
13
14 #[Ext]
15 #extern
16 #portnum 2
17 #portnum 3
18
19
20 # Example of an PTP ISDN interface on port 0
21 # Layer-2-Hold is required to keep link alive.
22
23 #[Ext]
24 #extern
25 #portnum 0
26 #ptp
27 #layer2hold yes
28
29
30 # Example of an internal ISDN interface on port 1, which accepts all extensions
31
32 #[Int]
33 #extension
34 #portnum 1
35 #nt
36
37
38 # Example of an ISDN interface on port 1, which accepts only extensions
39 # 201, 202 and 203
40
41 #[Int]
42 #extension
43 #msn 201,202,203
44 #portnum 1
45 #nt
46
47
48 # Example of three ISDN interfaces on port 1, 2 and 3, which accept
49 # extension 201 on all interfaces, and extension 202 and 203 on the first port
50 # only.
51 # Hint: To make extension ring on all three interfaces parallel, use
52 # "interface Int1,Int2,In3" in extension's settings file.
53
54 #[Int1]
55 #extension
56 #msn 201,202,203
57 #portnum 1
58 #nt
59
60 #[Int2]
61 #extension
62 #msn 201
63 #portnum 2
64 #nt
65
66 #[Int3]
67 #extension
68 #msn 201
69 #portnum 3
70 #nt
71
72
73 # Example of an ISDN interface on port 0 that requires screening of caller IDs.
74 # This is required if the connected line doesn't screen caller IDs.
75 # Also this interface will connect bchannel during call setup, so tones are
76 # required.
77
78 #[Ext]
79 #extern
80 #screen-out unknown 300  national 21250993300
81 #screen-out unknown 2%  national 212509932%
82 #tones yes
83 #portnum 0
84
85
86 # Example of an ISDN PRI interface on port 0 that has directed channels.
87 # 10 channels (channel 1-10) are incomming only.
88 # 10 channels (channel 11-15,17-21) are outgoing only.
89 # 10 channels (channel 22-31) are both way.
90 # We prefer to use directed channels first, then we request any channel.
91 # Outgoing calls on both-way-channels shall be indicated as "any channel".
92 # (Siemens EWSD will select bot-way-channels when indicated that way.)
93
94 #[Ext]
95 #extern
96 #portnum 0
97 #layer2hold
98 #channel-in 1,2,3,4,5,6,7,8,9,10,22,23,24,25,26,27,28,29,30,31
99 #channel-out force,11,12,13,14,15,17,18,19,20,21,any
100
101
102 # Example of an ISDN interface that runs in NT-mode, but provides tones during
103 # setup. Also we provide tones during setup also.
104 # This is usefull to interconnect to another PBX.
105 # Additinally the timeout values for the different call states are adjusted to 60 seconds.
106 # They are: setup, dialing, proceeding, alerting, disconnect
107
108 #[PBX]
109 #portnum 4
110 #nt
111 #layer2hold yes
112 #earlyb yes
113 #tones yes
114 #timeouts 60 60 60 60 60
115
116
117 # Example of an interface on port 0 connected to another LCR
118 # This can be done by direct cross cable (terminated of course) or via L1oIP.
119 # Since the remote side (NT-mode) normally doesn't accept informations like
120 # redirected number or display facility, use 'te-special' to even transmit that
121 # against the ISDN specifications. A remote LCR can handle that.
122 # Now all information elements can be transmitted in both directions.
123
124 #[Ext]
125 #extern
126 #portnum 0
127 #te-special
128
129
130 # Alternatively give port name. You will find the name with 'isdninfo' tool.
131
132 #[Int2]
133 #portname hfc-s_usb.1
134 #nt
135
136
137 # The remote switch may reject extreamly large numbers to be dialed during
138 # setup message. Define a limit of maximum numbers to dial. The rest of
139 # digits will be dialed after setup via overlap dialing.
140
141 #[Ext]
142 #extern
143 #portnum 0
144 #dialmax 20
145
146
147 # Example of an ISDN interface on port 1, with alternate tones_dir to use.
148 # In this case, the tones are "german" tones generated by mISDN_dsp.ko.
149 # It is possible to give different sample sets, like "tones_german".
150
151 #[Int]
152 #extension
153 #msn 201,202,203
154 #tones_dir german
155 #portnum 1
156 #nt
157
158
159 # A special case for GSM Network interface.
160 # You may add 'extension' and 'msn' keywords to turn all your subscribers
161 # in you GSM network to internal 'extensions'.
162 # The MSN numbers will equal the subscriber number.
163 #[GSM]
164 #gsm-bs
165 #tones yes
166 #earlyb no
167
168
169 # A special case for GSM Mobile Station interface.
170 # give "gsm-ms <name of mobile instance>".
171 # You may add 'extern' to make this interface the external line by default.
172 #[GSM]
173 #gsm-ms 1
174 #tones no
175 #earlyb yes
176 ##extern
177
178
179 # Use chan_lcr (Asterisk PBX interface) as internal interface.
180 # The interface requires mISDN_l1loop.ko to be loaded:
181 #  modprobe mISDN_l1loop nchannel=8 # use up to 8 b-channels
182 # The caller ID is used as extension, if "extension" parameter is given.
183 # Use "screen-in % xxx" to modify any caller id to xxx.
184 # An internal extension does not receive tones ("earlyb"), but sends them. 
185 #[ast]
186 #remote asterisk
187 #extension
188 ##screen-in % 209
189 #earlyb no
190 #tones yes
191
192
193 # Use Sofia-SIP as SIP point-to-point interface
194 #[sip]
195 #sip <local ip> <remote ip>[:<remote port>]
196 #sip 10.0.0.12 10.0.0.34
197 #earlyb no
198 #tones no
199
200
201 # Hint: Enter "lcr interface" for quick help on interface options.
202
203
204 # Add your interfaces here:
205
206
207 [Ext]
208 extern
209 portnum 0
210
211
212 [Int]
213 extension
214 msn 200,201,202,203
215 portnum 1
216 nt
217
218