55b20490436eab85b276bbfc8b042a1987f831f8
[asterisk/asterisk.git] / configs / misdn.conf.sample
1 ;
2 ; chan_misdn sample config
3 ;
4
5 ; general section:
6 ;
7 ; for debugging and general setup, things that are not bound to port groups
8 ;
9
10 [general] 
11 ;
12 ; Sets the Path to the misdn-init.conf (for nt_ptp mode checking)
13 ;
14 misdn_init=/etc/misdn-init.conf
15
16 ; set debugging flag: 
17 ;   0 - No Debug
18 ;   1 - mISDN Messages and * - Messages, and * - State changes
19 ;   2 - Messages + Message specific Informations (e.g. bearer capability)
20 ;   3 - very Verbose, the above + lots of Driver specific infos
21 ;   4 - even more Verbose than 3
22 ;
23 ; default value: 0
24 ;
25 debug=0
26
27
28 ; the big trace
29 ;
30 ; default value: [not set]
31 ;
32 ;tracefile=/var/log/misdn.trace
33
34 ; single call trace files
35 ; set to true if you want to have them
36 ; they depend on debug level
37 ;
38 ; default values: trace_calls : false
39 ;                 trace_dir   : /var/log/
40 ;
41 trace_calls=false
42 trace_dir=/var/log/
43
44 ; set to yes if you want mISDN_dsp to bridge the calls in HW
45 ;
46 ; default value: yes
47 ;
48 bridging=no
49
50 ; stops dialtone after getting first digit on nt Port
51 ;
52 ; default value: yes
53 ;
54 stop_tone_after_first_digit=yes
55
56 ; wether to append overlapdialed Digits to Extension or not 
57 ;
58 ; default value: yes
59 ;
60 append_digits2exten=yes
61
62 ;;; CRYPTION STUFF
63
64 ; Wether to look for dynamic crypting attempt
65 ;
66 ; default value: no
67 ;
68 dynamic_crypt=no
69
70 ; crypt_prefix, what is used for crypting Protocol
71 ;
72 ; default value: [not set]
73 ;
74 crypt_prefix=**
75
76 ; Keys for cryption, you reference them in the dialplan
77 ; later also in dynamic encr.
78 ;
79 ; default value: [not set]
80 ;
81 crypt_keys=test,muh
82
83 ; users sections:
84
85 ; name your sections as you which but not "general" ! 
86 ; the secions are Groups, you can dial out in extensions.conf
87 ; with Dial(mISDN/g:extern/101) where extern is a section name, 
88 ; chan_misdn tries every port in this section to find a 
89 ; new free channel
90
91
92 ; The default section is not a group section, it just contains config elements
93 ; which are inherited by group sections.
94 ;
95
96 [default]
97
98 ; define your default context here
99 ;
100 ; default value: default
101 ;
102 context=misdn
103
104 ; language
105 ;
106 ; default value: en
107 ;
108 language=en
109
110 ;
111 ; sets the musiconhold class
112 ;
113 musicclass=default
114
115 ;
116 ; Either if we should produce DTMF Tones ourselve
117
118 senddtmf=yes
119
120 ; Prefixes for national and international, those are put before the 
121 ; oad if an according dialplan is set by the other end. 
122 ;
123 ; default values: nationalprefix      : 0
124 ;                 internationalprefix : 00
125 ;
126 nationalprefix=0
127 internationalprefix=00
128
129 ; set rx/tx gains between -8 and 8 to change the RX/TX Gain
130 ;
131 ; default values: rxgain: 0
132 ;                 txgain: 0
133 ;
134 rxgain=0
135 txgain=0
136
137 ; some telcos espacially in NL seem to need this set to yes, also in 
138 ; switzerland this seems to be important
139 ;
140 ; default value: no
141 ;
142 te_choose_channel=no
143
144
145
146 ;
147 ; This option defines, if chan_misdn should check the L1 on  a PMP 
148 ; before makeing a group call on it. The L1 may go down for PMP Ports
149 ; so we might need this.
150 ; But be aware! a broken or plugged off cable might be used for a group call
151 ; as well, since chan_misdn has no chance to distinguish if the L1 is down
152 ; because of a lost Link or because the Provider shut it down...
153 ;
154 ; default: yes
155 ;
156 pmp_l1_check=yes
157
158 ;
159 ; Send Setup_Acknowledge on incoming calls anyway (instead of PROCEEDING), 
160 ; this requests additional Infos, so we can waitfordigits 
161 ; without much issues. This works only for PTP Ports
162
163 ; default value: no
164 ;
165 need_more_infos=no
166
167 ; set the method to use for channel selection:
168 ;   standard    - always choose the first free channel with the lowest number
169 ;   round_robin - use the round robin algorithm to select a channel. use this
170 ;                 if you want to balance your load.
171 ;
172 ; default value: standard
173 ;
174 method=standard
175
176 ;
177 ; dialplan means Type Of Number in ISDN Terms (for outgoing calls)
178 ;
179 ; dialplan options: 
180 ;
181 ; 0 - unknown
182 ; 1 - International
183 ; 2 - National
184 ; 4 - Subscriber
185 ;
186 ; This setting is used for outgoing calls
187 ;
188 ; default value: 0
189 ;
190 dialplan=0
191 localdialplan=0
192
193
194
195 ;
196 ; turn this to no if you don't mind correct handling of Progress Indicators  
197 ;
198 early_bconnect=yes
199
200
201 ;
202 ; turn this on if you like to send Tone Indications to a Incoming
203 ; isdn channel on a TE Port. Rarely used, only if the Telco allows
204 ; you to send indications by yourself, normally the Telco sends the 
205 ; indications to the remote party.
206
207 ; default: no
208 ;
209 incoming_early_audio=no
210
211 ; uncomment the following to get into s extension at extension conf
212 ; there you can use DigitTimeout if you can't or don't want to use
213 ; isdn overlap dial. 
214 ; note: This will jump into the s exten for every exten!
215 ;
216 ; default value: no
217 ;
218 ;always_immediate=no
219
220 ; uncomment the following if you want callers which called exactly the 
221 ; base number (so no extension is set) jump to the s extension.
222 ; if the user dials something more it jumps to the correct extension 
223 ; instead
224 ;
225 ; default value: no
226 ;
227 ;immediate=no
228
229 ; uncomment the following to have hold and retrieve support
230 ;
231 ; default value: no
232 ;
233 ;hold_allowed=yes
234
235 ; Pickup and Callgroup
236 ;
237 ; deafult values: not set = 0
238 ;
239 ;callgroup=1
240 ;pickupgroup=1
241
242
243 ;
244 ; these are the exact isdn screening and presentation indicators
245 ; if -1 is given for both values the presentation indicators are used
246 ; from asterisks SetCallerPres application.
247 ; s=0, p=0 -> callerid presented not screened
248 ; s=1, p=1 -> callerid presented but screened (the remote end does not see it!)
249
250 ; defaule values s=-1, p=-1
251 presentation=-1
252 screen=-1
253
254 ; this enables echocancellation, with the given number of taps
255 ; be aware, move this setting only to outgoing portgroups!
256 ; A value of zero turns echocancellation off.
257 ;
258 ; possible values are: 0,32,64,128,256,yes(=128),no(=0)
259 ;
260 ; default value: no
261 ;
262 ;echocancel=no
263
264 ; this disables echocancellation when the call is bridged between 
265 ; mISDN channels
266 ;
267 ; default value: no
268 ;
269 echocancelwhenbridged=no
270
271 ; Set this to no to disable echotraining
272 ;
273 ; default value: yes
274 ;
275 echotraining=yes
276
277 ;
278 ; chan_misdns jitterbuffer, default 1000
279
280 jitterbuffer=4000
281
282 ;
283 ; change this threshold to enable dejitter functionality
284 ;
285 jitterbuffer_upper_threshold=600
286
287
288 [intern]
289 ; define your ports, e.g. 1,2 (depends on mISDN-driver loading order) 
290 ports=1,2
291 ; context where to go to when incoming Call on one of the above ports
292 context=Intern
293
294 [internPP]
295 ;
296 ; adding the postfix 'ptp' to a port number is obsolete now, chan_misdn
297 ; parses /etc/misdn-init.conf and sets the ptp mode to the corresponding
298 ; configs. For backwards compatibility you can still set ptp here.
299 ;
300 ports=3
301         
302 [first_extern]
303 ; again port defs
304 ports=4
305 ; again a context for incomming calls
306 context=Extern1
307 ; msns for te ports, listen on those numbers on the above ports, and 
308 ; indicate the incoming calls to asterisk
309 ; here you can give a comma seperated list or simply an '*' for 
310 ; any msn. 
311 msns=*
312
313 ; here an example with given msns
314 [second_extern]
315 ports=5
316 context=Extern2
317 callerid=15
318 msns=102,144,101,104