(closes issue #12846)
[asterisk-bristuff.git] / configs / misdn.conf.sample
blob1b1049d3faab68effc91c58070618df16544e739
2 ; chan_misdn sample config
5 ; general section:
7 ; for debugging and general setup, things that are not bound to port groups
10 [general] 
12 ; Sets the Path to the misdn-init.conf (for nt_ptp mode checking)
14 misdn_init=/etc/misdn-init.conf
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
23 ; default value: 0
25 debug=0
29 ; set debugging file and flags for mISDNuser (NT-Stack) 
30
31 ; flags can be or'ed with the following values:
33 ; DBGM_NET        0x00000001
34 ; DBGM_MSG        0x00000002
35 ; DBGM_FSM        0x00000004
36 ; DBGM_TEI        0x00000010
37 ; DBGM_L2         0x00000020
38 ; DBGM_L3         0x00000040
39 ; DBGM_L3DATA     0x00000080
40 ; DBGM_BC         0x00000100
41 ; DBGM_TONE       0x00000200
42 ; DBGM_BCDATA     0x00000400
43 ; DBGM_MAN        0x00001000
44 ; DBGM_APPL       0x00002000
45 ; DBGM_ISDN       0x00004000
46 ; DBGM_SOCK       0x00010000
47 ; DBGM_CONN       0x00020000
48 ; DBGM_CDATA      0x00040000
49 ; DBGM_DDATA      0x00080000
50 ; DBGM_SOUND      0x00100000
51 ; DBGM_SDATA      0x00200000
52 ; DBGM_TOPLEVEL   0x40000000
53 ; DBGM_ALL        0xffffffff
56 ntdebugflags=0
57 ntdebugfile=/var/log/misdn-nt.log
60 ; some pbx systems do cut the L1 for some milliseconds, to avoid 
61 ; dropping running calls, we can set this flag to yes and tell
62 ; mISDNuser not to drop the calls on L2_RELEASE
63 ntkeepcalls=no
65 ; the big trace
67 ; default value: [not set]
69 ;tracefile=/var/log/asterisk/misdn.log
72 ; set to yes if you want mISDN_dsp to bridge the calls in HW
74 ; default value: yes
76 bridging=no
80 ; watches the L1s of every port. If one l1 is down it tries to 
81 ; get it up. The timeout is given in seconds. with 0 as value it
82 ; does not watch the l1 at all
83
84 ; default value: 0
86 ; this option is only read at loading time of chan_misdn, 
87 ; which means you need to unload and load chan_misdn to change the 
88 ; value, an asterisk restart should do the trick
89
90 l1watcher_timeout=0
92 ; stops dialtone after getting first digit on nt Port
94 ; default value: yes
96 stop_tone_after_first_digit=yes
98 ; whether to append overlapdialed Digits to Extension or not 
100 ; default value: yes
102 append_digits2exten=yes
104 ;;; CRYPTION STUFF
106 ; Whether to look for dynamic crypting attempt
108 ; default value: no
110 dynamic_crypt=no
112 ; crypt_prefix, what is used for crypting Protocol
114 ; default value: [not set]
116 crypt_prefix=**
118 ; Keys for cryption, you reference them in the dialplan
119 ; later also in dynamic encr.
121 ; default value: [not set]
123 crypt_keys=test,muh
125 ; users sections:
127 ; name your sections as you which but not "general" ! 
128 ; the sections are Groups, you can dial out in extensions.conf
129 ; with Dial(mISDN/g:extern/101) where extern is a section name, 
130 ; chan_misdn tries every port in this section to find a 
131 ; new free channel
134 ; The default section is not a group section, it just contains config elements
135 ; which are inherited by group sections.
138 [default]
140 ; define your default context here
142 ; default value: default
144 context=misdn
146 ; language
148 ; default value: en
150 language=en
153 ; sets the musiconhold class
155 musicclass=default
158 ; Either if we should produce DTMF Tones ourselves
160 senddtmf=yes
163 ; If we should generate Ringing for chan_sip and others
165 far_alerting=no
169 ; here you can define which bearers should be allowed
171 allowed_bearers=all
173 ; Prefixes for national and international, those are put before the 
174 ; oad if an according dialplan is set by the other end. 
176 ; default values: nationalprefix      : 0
177 ;                 internationalprefix : 00
179 nationalprefix=0
180 internationalprefix=00
182 ; set rx/tx gains between -8 and 8 to change the RX/TX Gain
184 ; default values: rxgain: 0
185 ;                 txgain: 0
187 rxgain=0
188 txgain=0
190 ; some telcos especially in NL seem to need this set to yes, also in 
191 ; switzerland this seems to be important
193 ; default value: no
195 te_choose_channel=no
200 ; This option defines, if chan_misdn should check the L1 on  a PMP 
201 ; before making a group call on it. The L1 may go down for PMP Ports
202 ; so we might need this.
203 ; But be aware! a broken or plugged off cable might be used for a group call
204 ; as well, since chan_misdn has no chance to distinguish if the L1 is down
205 ; because of a lost Link or because the Provider shut it down...
207 ; default: no
209 pmp_l1_check=no
213 ; in PMP this option defines which cause should be sent out to 
214 ; the 3. caller. chan_misdn does not support callwaiting on TE
215 ; PMP side. This allows to modify the RELEASE_COMPLETE cause 
216 ; at least.
218 reject_cause=16
222 ; Send Setup_Acknowledge on incoming calls anyway (instead of PROCEEDING), 
223 ; this requests additional Infos, so we can waitfordigits 
224 ; without much issues. This works only for PTP Ports
226 ; default value: no
228 need_more_infos=no
232 ; set this to yes if you want to disconnect calls when a timeout occurs
233 ; for example during the overlapdial phase
235 nttimeout=no
237 ; set the method to use for channel selection:
238 ;   standard    - always choose the first free channel with the lowest number
239 ;   round_robin - use the round robin algorithm to select a channel. use this
240 ;                 if you want to balance your load.
242 ; default value: standard
244 method=standard
247 ; specify if chan_misdn should collect digits before going into the 
248 ; dialplan, you can choose yes=4 Seconds, no, or specify the amount
249 ; of seconds you need;
251 overlapdial=yes
254 ; dialplan means Type Of Number in ISDN Terms (for outgoing calls)
256 ; there are different types of the dialplan:
258 ; dialplan -> outgoing Number
259 ; localdialplan -> callerid
260 ; cpndialplan -> connected party number
262 ; dialplan options: 
264 ; 0 - unknown
265 ; 1 - International
266 ; 2 - National
267 ; 4 - Subscriber
269 ; This setting is used for outgoing calls
271 ; default value: 0
273 dialplan=0
274 localdialplan=0
275 cpndialplan=0
280 ; turn this to no if you don't mind correct handling of Progress Indicators  
282 early_bconnect=yes
286 ; turn this on if you like to send Tone Indications to a Incoming
287 ; isdn channel on a TE Port. Rarely used, only if the Telco allows
288 ; you to send indications by yourself, normally the Telco sends the 
289 ; indications to the remote party.
291 ; default: no
293 incoming_early_audio=no
295 ; uncomment the following to get into s extension at extension conf
296 ; there you can use DigitTimeout if you can't or don't want to use
297 ; isdn overlap dial. 
298 ; note: This will jump into the s exten for every exten!
300 ; default value: no
302 ;always_immediate=no
305 ; set this to yes if you want to generate your own dialtone 
306 ; with always_immediate=yes, else chan_misdn generates the dialtone
308 ; default value: no
310 nodialtone=no
313 ; uncomment the following if you want callers which called exactly the 
314 ; base number (so no extension is set) jump to the s extension.
315 ; if the user dials something more it jumps to the correct extension 
316 ; instead
318 ; default value: no
320 ;immediate=no
322 ; uncomment the following to have hold and retrieve support
324 ; default value: no
326 ;hold_allowed=yes
328 ; Pickup and Callgroup
330 ; default values: not set = 0
331 ; range: 0-63
333 ;callgroup=1
334 ;pickupgroup=1
338 ; these are the exact isdn screening and presentation indicators
339 ; if -1 is given for both values the presentation indicators are used
340 ; from asterisks SetCallerPres application.
341 ; s=0, p=0 -> callerid presented not screened
342 ; s=1, p=1 -> callerid presented but screened (the remote end does not see it!)
344 ; default values s=-1, p=-1
345 presentation=-1
346 screen=-1
348 ; this enables echocancellation, with the given number of taps
349 ; be aware, move this setting only to outgoing portgroups!
350 ; A value of zero turns echocancellation off.
352 ; possible values are: 0,32,64,128,256,yes(=128),no(=0)
354 ; default value: no
356 ;echocancel=no
358 ; Set this to no to disable echotraining. You can enter a number > 10
359 ; the value is a multiple of 0.125 ms. 
361 ; default value: no 
362 ; yes = 2000
363 ; no = 0
365 echotraining=no
368 ; chan_misdns jitterbuffer, default 4000
370 jitterbuffer=4000
373 ; change this threshold to enable dejitter functionality
375 jitterbuffer_upper_threshold=0
379 ; change this to yes, if you want to bridge a mISDN data channel to 
380 ; another channel type or to an application.
382 hdlc=no
386 ; defines the maximum amount of incoming calls per port for
387 ; this group. Calls which exceed the maximum will be marked with 
388 ; the channel variable MAX_OVERFLOW. It will contain the amount of 
389 ; overflowed calls
391 max_incoming=-1
394 ; defines the maximum amount of outgoing calls per port for this group
395 ; exceeding calls will be rejected
397 max_outgoing=-1
399 [intern]
400 ; define your ports, e.g. 1,2 (depends on mISDN-driver loading order) 
401 ports=1,2
402 ; context where to go to when incoming Call on one of the above ports
403 context=Intern
405 [internPP]
407 ; adding the postfix 'ptp' to a port number is obsolete now, chan_misdn
408 ; parses /etc/misdn-init.conf and sets the ptp mode to the corresponding
409 ; configs. For backwards compatibility you can still set ptp here.
411 ports=3
412         
413 [first_extern]
414 ; again port defs
415 ports=4
416 ; again a context for incoming calls
417 context=Extern1
418 ; msns for te ports, listen on those numbers on the above ports, and 
419 ; indicate the incoming calls to asterisk
420 ; here you can give a comma separated list or simply an '*' for 
421 ; any msn. 
422 msns=*
424 ; here an example with given msns
425 [second_extern]
426 ports=5
427 context=Extern2
428 callerid=15
429 msns=102,144,101,104