Fri, 22 Oct 2010 19:54:57 +0200
Correct dependencies and use a canonical package name.
michael@202 | 1 | ; |
michael@202 | 2 | ; chan_misdn sample config |
michael@202 | 3 | ; |
michael@202 | 4 | |
michael@202 | 5 | ; general section: |
michael@202 | 6 | ; |
michael@202 | 7 | ; for debugging and general setup, things that are not bound to port groups |
michael@202 | 8 | ; |
michael@202 | 9 | |
michael@202 | 10 | ;[general] |
michael@202 | 11 | ; |
michael@202 | 12 | ; Sets the Path to the misdn-init.conf (for nt_ptp mode checking) |
michael@202 | 13 | ; |
michael@202 | 14 | ;misdn_init=/etc/misdn-init.conf |
michael@202 | 15 | |
michael@202 | 16 | ; set debugging flag: |
michael@202 | 17 | ; 0 - No Debug |
michael@202 | 18 | ; 1 - mISDN Messages and * - Messages, and * - State changes |
michael@202 | 19 | ; 2 - Messages + Message specific Informations (e.g. bearer capability) |
michael@202 | 20 | ; 3 - very Verbose, the above + lots of Driver specific infos |
michael@202 | 21 | ; 4 - even more Verbose than 3 |
michael@202 | 22 | ; |
michael@202 | 23 | ; default value: 0 |
michael@202 | 24 | ; |
michael@202 | 25 | ;debug=0 |
michael@202 | 26 | |
michael@202 | 27 | |
michael@202 | 28 | |
michael@202 | 29 | ; set debugging file and flags for mISDNuser (NT-Stack) |
michael@202 | 30 | ; |
michael@202 | 31 | ; flags can be or'ed with the following values: |
michael@202 | 32 | ; |
michael@202 | 33 | ; DBGM_NET 0x00000001 |
michael@202 | 34 | ; DBGM_MSG 0x00000002 |
michael@202 | 35 | ; DBGM_FSM 0x00000004 |
michael@202 | 36 | ; DBGM_TEI 0x00000010 |
michael@202 | 37 | ; DBGM_L2 0x00000020 |
michael@202 | 38 | ; DBGM_L3 0x00000040 |
michael@202 | 39 | ; DBGM_L3DATA 0x00000080 |
michael@202 | 40 | ; DBGM_BC 0x00000100 |
michael@202 | 41 | ; DBGM_TONE 0x00000200 |
michael@202 | 42 | ; DBGM_BCDATA 0x00000400 |
michael@202 | 43 | ; DBGM_MAN 0x00001000 |
michael@202 | 44 | ; DBGM_APPL 0x00002000 |
michael@202 | 45 | ; DBGM_ISDN 0x00004000 |
michael@202 | 46 | ; DBGM_SOCK 0x00010000 |
michael@202 | 47 | ; DBGM_CONN 0x00020000 |
michael@202 | 48 | ; DBGM_CDATA 0x00040000 |
michael@202 | 49 | ; DBGM_DDATA 0x00080000 |
michael@202 | 50 | ; DBGM_SOUND 0x00100000 |
michael@202 | 51 | ; DBGM_SDATA 0x00200000 |
michael@202 | 52 | ; DBGM_TOPLEVEL 0x40000000 |
michael@202 | 53 | ; DBGM_ALL 0xffffffff |
michael@202 | 54 | ; |
michael@202 | 55 | |
michael@202 | 56 | ;ntdebugflags=0 |
michael@202 | 57 | ;ntdebugfile=/var/log/misdn-nt.log |
michael@202 | 58 | |
michael@202 | 59 | |
michael@202 | 60 | ; some pbx systems do cut the L1 for some milliseconds, to avoid |
michael@202 | 61 | ; dropping running calls, we can set this flag to yes and tell |
michael@202 | 62 | ; mISDNuser not to drop the calls on L2_RELEASE |
michael@202 | 63 | ;ntkeepcalls=no |
michael@202 | 64 | |
michael@202 | 65 | ; the big trace |
michael@202 | 66 | ; |
michael@202 | 67 | ; default value: [not set] |
michael@202 | 68 | ; |
michael@202 | 69 | ;tracefile=/var/log/asterisk/misdn.log |
michael@202 | 70 | |
michael@202 | 71 | |
michael@202 | 72 | ; set to yes if you want mISDN_dsp to bridge the calls in HW |
michael@202 | 73 | ; |
michael@202 | 74 | ; default value: yes |
michael@202 | 75 | ; |
michael@202 | 76 | ;bridging=no |
michael@202 | 77 | |
michael@202 | 78 | |
michael@202 | 79 | ; |
michael@202 | 80 | ; watches the L1s of every port. If one l1 is down it tries to |
michael@202 | 81 | ; get it up. The timeout is given in seconds. with 0 as value it |
michael@202 | 82 | ; does not watch the l1 at all |
michael@202 | 83 | ; |
michael@202 | 84 | ; default value: 0 |
michael@202 | 85 | ; |
michael@202 | 86 | ; this option is only read at loading time of chan_misdn, |
michael@202 | 87 | ; which means you need to unload and load chan_misdn to change the |
michael@202 | 88 | ; value, an asterisk restart should do the trick |
michael@202 | 89 | ; |
michael@202 | 90 | ;l1watcher_timeout=0 |
michael@202 | 91 | |
michael@202 | 92 | ; stops dialtone after getting first digit on nt Port |
michael@202 | 93 | ; |
michael@202 | 94 | ; default value: yes |
michael@202 | 95 | ; |
michael@202 | 96 | ;stop_tone_after_first_digit=yes |
michael@202 | 97 | |
michael@202 | 98 | ; whether to append overlapdialed Digits to Extension or not |
michael@202 | 99 | ; |
michael@202 | 100 | ; default value: yes |
michael@202 | 101 | ; |
michael@202 | 102 | ;append_digits2exten=yes |
michael@202 | 103 | |
michael@202 | 104 | ;;; CRYPTION STUFF |
michael@202 | 105 | |
michael@202 | 106 | ; Whether to look for dynamic crypting attempt |
michael@202 | 107 | ; |
michael@202 | 108 | ; default value: no |
michael@202 | 109 | ; |
michael@202 | 110 | ;dynamic_crypt=no |
michael@202 | 111 | |
michael@202 | 112 | ; crypt_prefix, what is used for crypting Protocol |
michael@202 | 113 | ; |
michael@202 | 114 | ; default value: [not set] |
michael@202 | 115 | ; |
michael@202 | 116 | ;crypt_prefix=** |
michael@202 | 117 | |
michael@202 | 118 | ; Keys for cryption, you reference them in the dialplan |
michael@202 | 119 | ; later also in dynamic encr. |
michael@202 | 120 | ; |
michael@202 | 121 | ; default value: [not set] |
michael@202 | 122 | ; |
michael@202 | 123 | ;crypt_keys=test,muh |
michael@202 | 124 | |
michael@202 | 125 | ; users sections: |
michael@202 | 126 | ; |
michael@202 | 127 | ; name your sections as you which but not "general" ! |
michael@202 | 128 | ; the sections are Groups, you can dial out in extensions.conf |
michael@202 | 129 | ; with Dial(mISDN/g:extern/101) where extern is a section name, |
michael@202 | 130 | ; chan_misdn tries every port in this section to find a |
michael@202 | 131 | ; new free channel |
michael@202 | 132 | ; |
michael@202 | 133 | |
michael@202 | 134 | ; The default section is not a group section, it just contains config elements |
michael@202 | 135 | ; which are inherited by group sections. |
michael@202 | 136 | ; |
michael@202 | 137 | |
michael@202 | 138 | ;[default] |
michael@202 | 139 | |
michael@202 | 140 | ; define your default context here |
michael@202 | 141 | ; |
michael@202 | 142 | ; default value: default |
michael@202 | 143 | ; |
michael@202 | 144 | ;context=misdn |
michael@202 | 145 | |
michael@202 | 146 | ; language |
michael@202 | 147 | ; |
michael@202 | 148 | ; default value: en |
michael@202 | 149 | ; |
michael@202 | 150 | ;language=en |
michael@202 | 151 | |
michael@202 | 152 | ; |
michael@202 | 153 | ; sets the musiconhold class |
michael@202 | 154 | ; |
michael@202 | 155 | ;musicclass=default |
michael@202 | 156 | |
michael@202 | 157 | ; |
michael@202 | 158 | ; Either if we should produce DTMF Tones ourselves |
michael@202 | 159 | ; |
michael@202 | 160 | ;senddtmf=yes |
michael@202 | 161 | |
michael@202 | 162 | ; |
michael@202 | 163 | ; If we should generate Ringing for chan_sip and others |
michael@202 | 164 | ; |
michael@202 | 165 | ;far_alerting=no |
michael@202 | 166 | |
michael@202 | 167 | |
michael@202 | 168 | ; |
michael@202 | 169 | ; here you can define which bearers should be allowed |
michael@202 | 170 | ; |
michael@202 | 171 | ;allowed_bearers=all |
michael@202 | 172 | |
michael@202 | 173 | ; Prefixes for national and international, those are put before the |
michael@202 | 174 | ; oad if an according dialplan is set by the other end. |
michael@202 | 175 | ; |
michael@202 | 176 | ; default values: nationalprefix : 0 |
michael@202 | 177 | ; internationalprefix : 00 |
michael@202 | 178 | ; |
michael@202 | 179 | ;nationalprefix=0 |
michael@202 | 180 | ;internationalprefix=00 |
michael@202 | 181 | |
michael@202 | 182 | ; set rx/tx gains between -8 and 8 to change the RX/TX Gain |
michael@202 | 183 | ; |
michael@202 | 184 | ; default values: rxgain: 0 |
michael@202 | 185 | ; txgain: 0 |
michael@202 | 186 | ; |
michael@202 | 187 | ;rxgain=0 |
michael@202 | 188 | ;txgain=0 |
michael@202 | 189 | |
michael@202 | 190 | ; some telcos especially in NL seem to need this set to yes, also in |
michael@202 | 191 | ; switzerland this seems to be important |
michael@202 | 192 | ; |
michael@202 | 193 | ; default value: no |
michael@202 | 194 | ; |
michael@202 | 195 | ;te_choose_channel=no |
michael@202 | 196 | |
michael@202 | 197 | |
michael@202 | 198 | |
michael@202 | 199 | ; |
michael@202 | 200 | ; This option defines, if chan_misdn should check the L1 on a PMP |
michael@202 | 201 | ; before making a group call on it. The L1 may go down for PMP Ports |
michael@202 | 202 | ; so we might need this. |
michael@202 | 203 | ; But be aware! a broken or plugged off cable might be used for a group call |
michael@202 | 204 | ; as well, since chan_misdn has no chance to distinguish if the L1 is down |
michael@202 | 205 | ; because of a lost Link or because the Provider shut it down... |
michael@202 | 206 | ; |
michael@202 | 207 | ; default: no |
michael@202 | 208 | ; |
michael@202 | 209 | ;pmp_l1_check=no |
michael@202 | 210 | |
michael@202 | 211 | |
michael@202 | 212 | ; |
michael@202 | 213 | ; in PMP this option defines which cause should be sent out to |
michael@202 | 214 | ; the 3. caller. chan_misdn does not support callwaiting on TE |
michael@202 | 215 | ; PMP side. This allows to modify the RELEASE_COMPLETE cause |
michael@202 | 216 | ; at least. |
michael@202 | 217 | ; |
michael@202 | 218 | ;reject_cause=16 |
michael@202 | 219 | |
michael@202 | 220 | |
michael@202 | 221 | ; |
michael@202 | 222 | ; Send Setup_Acknowledge on incoming calls anyway (instead of PROCEEDING), |
michael@202 | 223 | ; this requests additional Infos, so we can waitfordigits |
michael@202 | 224 | ; without much issues. This works only for PTP Ports |
michael@202 | 225 | ; |
michael@202 | 226 | ; default value: no |
michael@202 | 227 | ; |
michael@202 | 228 | ;need_more_infos=no |
michael@202 | 229 | |
michael@202 | 230 | |
michael@202 | 231 | ; |
michael@202 | 232 | ; set this to yes if you want to disconnect calls when a timeout occurs |
michael@202 | 233 | ; for example during the overlapdial phase |
michael@202 | 234 | ; |
michael@202 | 235 | ;nttimeout=no |
michael@202 | 236 | |
michael@202 | 237 | ; set the method to use for channel selection: |
michael@202 | 238 | ; standard - always choose the first free channel with the lowest number |
michael@202 | 239 | ; round_robin - use the round robin algorithm to select a channel. use this |
michael@202 | 240 | ; if you want to balance your load. |
michael@202 | 241 | ; |
michael@202 | 242 | ; default value: standard |
michael@202 | 243 | ; |
michael@202 | 244 | ;method=standard |
michael@202 | 245 | |
michael@202 | 246 | |
michael@202 | 247 | ; specify if chan_misdn should collect digits before going into the |
michael@202 | 248 | ; dialplan, you can choose yes=4 Seconds, no, or specify the amount |
michael@202 | 249 | ; of seconds you need; |
michael@202 | 250 | ; |
michael@202 | 251 | ;overlapdial=yes |
michael@202 | 252 | |
michael@202 | 253 | ; |
michael@202 | 254 | ; dialplan means Type Of Number in ISDN Terms (for outgoing calls) |
michael@202 | 255 | ; |
michael@202 | 256 | ; there are different types of the dialplan: |
michael@202 | 257 | ; |
michael@202 | 258 | ; dialplan -> outgoing Number |
michael@202 | 259 | ; localdialplan -> callerid |
michael@202 | 260 | ; cpndialplan -> connected party number |
michael@202 | 261 | ; |
michael@202 | 262 | ; dialplan options: |
michael@202 | 263 | ; |
michael@202 | 264 | ; 0 - unknown |
michael@202 | 265 | ; 1 - International |
michael@202 | 266 | ; 2 - National |
michael@202 | 267 | ; 4 - Subscriber |
michael@202 | 268 | ; |
michael@202 | 269 | ; This setting is used for outgoing calls |
michael@202 | 270 | ; |
michael@202 | 271 | ; default value: 0 |
michael@202 | 272 | ; |
michael@202 | 273 | ;dialplan=0 |
michael@202 | 274 | ;localdialplan=0 |
michael@202 | 275 | ;cpndialplan=0 |
michael@202 | 276 | |
michael@202 | 277 | |
michael@202 | 278 | |
michael@202 | 279 | ; |
michael@202 | 280 | ; turn this to no if you don't mind correct handling of Progress Indicators |
michael@202 | 281 | ; |
michael@202 | 282 | ;early_bconnect=yes |
michael@202 | 283 | |
michael@202 | 284 | |
michael@202 | 285 | ; |
michael@202 | 286 | ; turn this on if you like to send Tone Indications to a Incoming |
michael@202 | 287 | ; isdn channel on a TE Port. Rarely used, only if the Telco allows |
michael@202 | 288 | ; you to send indications by yourself, normally the Telco sends the |
michael@202 | 289 | ; indications to the remote party. |
michael@202 | 290 | ; |
michael@202 | 291 | ; default: no |
michael@202 | 292 | ; |
michael@202 | 293 | ;incoming_early_audio=no |
michael@202 | 294 | |
michael@202 | 295 | ; uncomment the following to get into s extension at extension conf |
michael@202 | 296 | ; there you can use DigitTimeout if you can't or don't want to use |
michael@202 | 297 | ; isdn overlap dial. |
michael@202 | 298 | ; note: This will jump into the s exten for every exten! |
michael@202 | 299 | ; |
michael@202 | 300 | ; default value: no |
michael@202 | 301 | ; |
michael@202 | 302 | ;always_immediate=no |
michael@202 | 303 | |
michael@202 | 304 | ; |
michael@202 | 305 | ; set this to yes if you want to generate your own dialtone |
michael@202 | 306 | ; with always_immediate=yes, else chan_misdn generates the dialtone |
michael@202 | 307 | ; |
michael@202 | 308 | ; default value: no |
michael@202 | 309 | ; |
michael@202 | 310 | ;nodialtone=no |
michael@202 | 311 | |
michael@202 | 312 | |
michael@202 | 313 | ; uncomment the following if you want callers which called exactly the |
michael@202 | 314 | ; base number (so no extension is set) jump to the s extension. |
michael@202 | 315 | ; if the user dials something more it jumps to the correct extension |
michael@202 | 316 | ; instead |
michael@202 | 317 | ; |
michael@202 | 318 | ; default value: no |
michael@202 | 319 | ; |
michael@202 | 320 | ;immediate=no |
michael@202 | 321 | |
michael@202 | 322 | ; uncomment the following to have hold and retrieve support |
michael@202 | 323 | ; |
michael@202 | 324 | ; default value: no |
michael@202 | 325 | ; |
michael@202 | 326 | ;hold_allowed=yes |
michael@202 | 327 | |
michael@202 | 328 | ; Pickup and Callgroup |
michael@202 | 329 | ; |
michael@202 | 330 | ; default values: not set = 0 |
michael@202 | 331 | ; range: 0-63 |
michael@202 | 332 | ; |
michael@202 | 333 | ;callgroup=1 |
michael@202 | 334 | ;pickupgroup=1 |
michael@202 | 335 | |
michael@202 | 336 | |
michael@202 | 337 | ; |
michael@202 | 338 | ; these are the exact isdn screening and presentation indicators |
michael@202 | 339 | ; if -1 is given for both values the presentation indicators are used |
michael@202 | 340 | ; from asterisks SetCallerPres application. |
michael@202 | 341 | ; s=0, p=0 -> callerid presented not screened |
michael@202 | 342 | ; s=1, p=1 -> callerid presented but screened (the remote end does not see it!) |
michael@202 | 343 | ; |
michael@202 | 344 | ; default values s=-1, p=-1 |
michael@202 | 345 | ;presentation=-1 |
michael@202 | 346 | ;screen=-1 |
michael@202 | 347 | |
michael@202 | 348 | ; this enables echocancellation, with the given number of taps |
michael@202 | 349 | ; be aware, move this setting only to outgoing portgroups! |
michael@202 | 350 | ; A value of zero turns echocancellation off. |
michael@202 | 351 | ; |
michael@202 | 352 | ; possible values are: 0,32,64,128,256,yes(=128),no(=0) |
michael@202 | 353 | ; |
michael@202 | 354 | ; default value: no |
michael@202 | 355 | ; |
michael@202 | 356 | ;echocancel=no |
michael@202 | 357 | |
michael@202 | 358 | ; Set this to no to disable echotraining. You can enter a number > 10 |
michael@202 | 359 | ; the value is a multiple of 0.125 ms. |
michael@202 | 360 | ; |
michael@202 | 361 | ; default value: no |
michael@202 | 362 | ; yes = 2000 |
michael@202 | 363 | ; no = 0 |
michael@202 | 364 | ; |
michael@202 | 365 | ;echotraining=no |
michael@202 | 366 | |
michael@202 | 367 | ; |
michael@202 | 368 | ; chan_misdns jitterbuffer, default 4000 |
michael@202 | 369 | ; |
michael@202 | 370 | ;jitterbuffer=4000 |
michael@202 | 371 | |
michael@202 | 372 | ; |
michael@202 | 373 | ; change this threshold to enable dejitter functionality |
michael@202 | 374 | ; |
michael@202 | 375 | ;jitterbuffer_upper_threshold=0 |
michael@202 | 376 | |
michael@202 | 377 | |
michael@202 | 378 | ; |
michael@202 | 379 | ; change this to yes, if you want to bridge a mISDN data channel to |
michael@202 | 380 | ; another channel type or to an application. |
michael@202 | 381 | ; |
michael@202 | 382 | ;hdlc=no |
michael@202 | 383 | |
michael@202 | 384 | |
michael@202 | 385 | ; |
michael@202 | 386 | ; defines the maximum amount of incoming calls per port for |
michael@202 | 387 | ; this group. Calls which exceed the maximum will be marked with |
michael@202 | 388 | ; the channel variable MAX_OVERFLOW. It will contain the amount of |
michael@202 | 389 | ; overflowed calls |
michael@202 | 390 | ; |
michael@202 | 391 | ;max_incoming=-1 |
michael@202 | 392 | |
michael@202 | 393 | ; |
michael@202 | 394 | ; defines the maximum amount of outgoing calls per port for this group |
michael@202 | 395 | ; exceeding calls will be rejected |
michael@202 | 396 | ; |
michael@202 | 397 | ;max_outgoing=-1 |
michael@202 | 398 | |
michael@202 | 399 | ;[intern] |
michael@202 | 400 | ; define your ports, e.g. 1,2 (depends on mISDN-driver loading order) |
michael@202 | 401 | ;ports=1,2 |
michael@202 | 402 | ; context where to go to when incoming Call on one of the above ports |
michael@202 | 403 | ;context=Intern |
michael@202 | 404 | |
michael@202 | 405 | ;[internPP] |
michael@202 | 406 | ; |
michael@202 | 407 | ; adding the postfix 'ptp' to a port number is obsolete now, chan_misdn |
michael@202 | 408 | ; parses /etc/misdn-init.conf and sets the ptp mode to the corresponding |
michael@202 | 409 | ; configs. For backwards compatibility you can still set ptp here. |
michael@202 | 410 | ; |
michael@202 | 411 | ;ports=3 |
michael@202 | 412 | |
michael@202 | 413 | ;[first_extern] |
michael@202 | 414 | ; again port defs |
michael@202 | 415 | ;ports=4 |
michael@202 | 416 | ; again a context for incoming calls |
michael@202 | 417 | ;context=Extern1 |
michael@202 | 418 | ; msns for te ports, listen on those numbers on the above ports, and |
michael@202 | 419 | ; indicate the incoming calls to asterisk |
michael@202 | 420 | ; here you can give a comma separated list or simply an '*' for |
michael@202 | 421 | ; any msn. |
michael@202 | 422 | ;msns=* |
michael@202 | 423 | |
michael@202 | 424 | ; here an example with given msns |
michael@202 | 425 | ;[second_extern] |
michael@202 | 426 | ;ports=5 |
michael@202 | 427 | ;context=Extern2 |
michael@202 | 428 | ;callerid=15 |
michael@202 | 429 | ;msns=102,144,101,104 |