asterisk/misdn.conf

Sun, 20 Mar 2011 19:04:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sun, 20 Mar 2011 19:04:35 +0100
changeset 308
50be4b455aec
permissions
-rw-r--r--

Update download URL to current location.

     1 ;
     2 ; chan_misdn sample config
     3 ;
     5 ; general section:
     6 ;
     7 ; for debugging and general setup, things that are not bound to port groups
     8 ;
    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
    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
    29 ; set debugging file and flags for mISDNuser (NT-Stack) 
    30 ; 
    31 ; flags can be or'ed with the following values:
    32 ;
    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
    54 ;
    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
    66 ;
    67 ; default value: [not set]
    68 ;
    69 ;tracefile=/var/log/asterisk/misdn.log
    72 ; set to yes if you want mISDN_dsp to bridge the calls in HW
    73 ;
    74 ; default value: yes
    75 ;
    76 ;bridging=no
    79 ;
    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
    85 ;
    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
    93 ;
    94 ; default value: yes
    95 ;
    96 ;stop_tone_after_first_digit=yes
    98 ; whether to append overlapdialed Digits to Extension or not 
    99 ;
   100 ; default value: yes
   101 ;
   102 ;append_digits2exten=yes
   104 ;;; CRYPTION STUFF
   106 ; Whether to look for dynamic crypting attempt
   107 ;
   108 ; default value: no
   109 ;
   110 ;dynamic_crypt=no
   112 ; crypt_prefix, what is used for crypting Protocol
   113 ;
   114 ; default value: [not set]
   115 ;
   116 ;crypt_prefix=**
   118 ; Keys for cryption, you reference them in the dialplan
   119 ; later also in dynamic encr.
   120 ;
   121 ; default value: [not set]
   122 ;
   123 ;crypt_keys=test,muh
   125 ; users sections:
   126 ; 
   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
   132 ; 
   134 ; The default section is not a group section, it just contains config elements
   135 ; which are inherited by group sections.
   136 ;
   138 ;[default]
   140 ; define your default context here
   141 ;
   142 ; default value: default
   143 ;
   144 ;context=misdn
   146 ; language
   147 ;
   148 ; default value: en
   149 ;
   150 ;language=en
   152 ;
   153 ; sets the musiconhold class
   154 ;
   155 ;musicclass=default
   157 ;
   158 ; Either if we should produce DTMF Tones ourselves
   159 ; 
   160 ;senddtmf=yes
   162 ;
   163 ; If we should generate Ringing for chan_sip and others
   164 ;
   165 ;far_alerting=no
   168 ;
   169 ; here you can define which bearers should be allowed
   170 ;
   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. 
   175 ;
   176 ; default values: nationalprefix      : 0
   177 ;                 internationalprefix : 00
   178 ;
   179 ;nationalprefix=0
   180 ;internationalprefix=00
   182 ; set rx/tx gains between -8 and 8 to change the RX/TX Gain
   183 ;
   184 ; default values: rxgain: 0
   185 ;                 txgain: 0
   186 ;
   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
   192 ;
   193 ; default value: no
   194 ;
   195 ;te_choose_channel=no
   199 ;
   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...
   206 ;
   207 ; default: no
   208 ;
   209 ;pmp_l1_check=no
   212 ;
   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.
   217 ;
   218 ;reject_cause=16
   221 ;
   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
   225 ; 
   226 ; default value: no
   227 ;
   228 ;need_more_infos=no
   231 ;
   232 ; set this to yes if you want to disconnect calls when a timeout occurs
   233 ; for example during the overlapdial phase
   234 ;
   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.
   241 ;
   242 ; default value: standard
   243 ;
   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;
   250 ; 
   251 ;overlapdial=yes
   253 ;
   254 ; dialplan means Type Of Number in ISDN Terms (for outgoing calls)
   255 ;
   256 ; there are different types of the dialplan:
   257 ;
   258 ; dialplan -> outgoing Number
   259 ; localdialplan -> callerid
   260 ; cpndialplan -> connected party number
   261 ;
   262 ; dialplan options: 
   263 ;
   264 ; 0 - unknown
   265 ; 1 - International
   266 ; 2 - National
   267 ; 4 - Subscriber
   268 ;
   269 ; This setting is used for outgoing calls
   270 ;
   271 ; default value: 0
   272 ;
   273 ;dialplan=0
   274 ;localdialplan=0
   275 ;cpndialplan=0
   279 ;
   280 ; turn this to no if you don't mind correct handling of Progress Indicators  
   281 ;
   282 ;early_bconnect=yes
   285 ;
   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.
   290 ; 
   291 ; default: no
   292 ;
   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!
   299 ;
   300 ; default value: no
   301 ;
   302 ;always_immediate=no
   304 ;
   305 ; set this to yes if you want to generate your own dialtone 
   306 ; with always_immediate=yes, else chan_misdn generates the dialtone
   307 ;
   308 ; default value: no
   309 ;
   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
   317 ;
   318 ; default value: no
   319 ;
   320 ;immediate=no
   322 ; uncomment the following to have hold and retrieve support
   323 ;
   324 ; default value: no
   325 ;
   326 ;hold_allowed=yes
   328 ; Pickup and Callgroup
   329 ;
   330 ; default values: not set = 0
   331 ; range: 0-63
   332 ;
   333 ;callgroup=1
   334 ;pickupgroup=1
   337 ;
   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!)
   343 ; 
   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.
   351 ;
   352 ; possible values are: 0,32,64,128,256,yes(=128),no(=0)
   353 ;
   354 ; default value: no
   355 ;
   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. 
   360 ;
   361 ; default value: no 
   362 ; yes = 2000
   363 ; no = 0
   364 ;
   365 ;echotraining=no
   367 ;
   368 ; chan_misdns jitterbuffer, default 4000
   369 ; 
   370 ;jitterbuffer=4000
   372 ;
   373 ; change this threshold to enable dejitter functionality
   374 ;
   375 ;jitterbuffer_upper_threshold=0
   378 ;
   379 ; change this to yes, if you want to bridge a mISDN data channel to 
   380 ; another channel type or to an application.
   381 ;
   382 ;hdlc=no
   385 ;
   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
   390 ;
   391 ;max_incoming=-1
   393 ;
   394 ; defines the maximum amount of outgoing calls per port for this group
   395 ; exceeding calls will be rejected
   396 ;
   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]
   406 ;
   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.
   410 ;
   411 ;ports=3
   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

mercurial