asterisk/zapata.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.

michael@202 1 ;
michael@202 2 ; Zapata telephony interface
michael@202 3 ;
michael@202 4 ; Configuration file
michael@202 5 ;
michael@202 6 ; You need to restart Asterisk to re-configure the Zap channel
michael@202 7 ; CLI> reload chan_zap.so
michael@202 8 ; will reload the configuration file,
michael@202 9 ; but not all configuration options are
michael@202 10 ; re-configured during a reload.
michael@202 11
michael@202 12
michael@202 13
michael@202 14 ;[trunkgroups]
michael@202 15 ;
michael@202 16 ; Trunk groups are used for NFAS or GR-303 connections.
michael@202 17 ;
michael@202 18 ; Group: Defines a trunk group.
michael@202 19 ; trunkgroup => <trunkgroup>,<dchannel>[,<backup1>...]
michael@202 20 ;
michael@202 21 ; trunkgroup is the numerical trunk group to create
michael@202 22 ; dchannel is the zap channel which will have the
michael@202 23 ; d-channel for the trunk.
michael@202 24 ; backup1 is an optional list of backup d-channels.
michael@202 25 ;
michael@202 26 ;trunkgroup => 1,24,48
michael@202 27 ;trunkgroup => 1,24
michael@202 28 ;
michael@202 29 ; Spanmap: Associates a span with a trunk group
michael@202 30 ; spanmap => <zapspan>,<trunkgroup>[,<logicalspan>]
michael@202 31 ;
michael@202 32 ; zapspan is the zap span number to associate
michael@202 33 ; trunkgroup is the trunkgroup (specified above) for the mapping
michael@202 34 ; logicalspan is the logical span number within the trunk group to use.
michael@202 35 ; if unspecified, no logical span number is used.
michael@202 36 ;
michael@202 37 ;spanmap => 1,1,1
michael@202 38 ;spanmap => 2,1,2
michael@202 39 ;spanmap => 3,1,3
michael@202 40 ;spanmap => 4,1,4
michael@202 41
michael@202 42 ;[channels]
michael@202 43 ;
michael@202 44 ; Default language
michael@202 45 ;
michael@202 46 ;language=en
michael@202 47 ;
michael@202 48 ; Default context
michael@202 49 ;
michael@202 50 ;context=default
michael@202 51 ;
michael@202 52 ; Switchtype: Only used for PRI.
michael@202 53 ;
michael@202 54 ; national: National ISDN 2 (default)
michael@202 55 ; dms100: Nortel DMS100
michael@202 56 ; 4ess: AT&T 4ESS
michael@202 57 ; 5ess: Lucent 5ESS
michael@202 58 ; euroisdn: EuroISDN
michael@202 59 ; ni1: Old National ISDN 1
michael@202 60 ; qsig: Q.SIG
michael@202 61 ;
michael@202 62 ;switchtype=national
michael@202 63 ;
michael@202 64 ; Some switches (AT&T especially) require network specific facility IE
michael@202 65 ; supported values are currently 'none', 'sdn', 'megacom', 'tollfreemegacom', 'accunet'
michael@202 66 ;
michael@202 67 ;nsf=none
michael@202 68 ;
michael@202 69 ; PRI Dialplan: Only RARELY used for PRI.
michael@202 70 ;
michael@202 71 ; unknown: Unknown
michael@202 72 ; private: Private ISDN
michael@202 73 ; local: Local ISDN
michael@202 74 ; national: National ISDN
michael@202 75 ; international: International ISDN
michael@202 76 ; dynamic: Dynamically selects the appropriate dialplan
michael@202 77 ;
michael@202 78 ;pridialplan=national
michael@202 79 ;
michael@202 80 ; PRI Local Dialplan: Only RARELY used for PRI (sets the calling number's numbering plan)
michael@202 81 ;
michael@202 82 ; unknown: Unknown
michael@202 83 ; private: Private ISDN
michael@202 84 ; local: Local ISDN
michael@202 85 ; national: National ISDN
michael@202 86 ; international: International ISDN
michael@202 87 ; dynamic: Dynamically selects the appropriate dialplan
michael@202 88 ;
michael@202 89 ;prilocaldialplan=national
michael@202 90 ;
michael@202 91 ; PRI callerid prefixes based on the given TON/NPI (dialplan)
michael@202 92 ; This is especially needed for euroisdn E1-PRIs
michael@202 93 ;
michael@202 94 ; sample 1 for Germany
michael@202 95 ;internationalprefix = 00
michael@202 96 ;nationalprefix = 0
michael@202 97 ;localprefix = 0711
michael@202 98 ;privateprefix = 07115678
michael@202 99 ;unknownprefix =
michael@202 100 ;
michael@202 101 ; sample 2 for Germany
michael@202 102 ;internationalprefix = +
michael@202 103 ;nationalprefix = +49
michael@202 104 ;localprefix = +49711
michael@202 105 ;privateprefix = +497115678
michael@202 106 ;unknownprefix =
michael@202 107 ;
michael@202 108 ; PRI resetinterval: sets the time in seconds between restart of unused
michael@202 109 ; channels, defaults to 3600; minimum 60 seconds. Some PBXs don't like
michael@202 110 ; channel restarts. so set the interval to a very long interval e.g. 100000000
michael@202 111 ; or 'never' to disable *entirely*.
michael@202 112 ;
michael@202 113 ;resetinterval = 3600
michael@202 114 ;
michael@202 115 ; Overlap dialing mode (sending overlap digits)
michael@202 116 ;
michael@202 117 ;overlapdial=yes
michael@202 118 ;
michael@202 119 ; PRI Out of band indications.
michael@202 120 ; Enable this to report Busy and Congestion on a PRI using out-of-band
michael@202 121 ; notification. Inband indication, as used by Asterisk doesn't seem to work
michael@202 122 ; with all telcos.
michael@202 123 ;
michael@202 124 ; outofband: Signal Busy/Congestion out of band with RELEASE/DISCONNECT
michael@202 125 ; inband: Signal Busy/Congestion using in-band tones
michael@202 126 ;
michael@202 127 ; priindication = outofband
michael@202 128 ;
michael@202 129 ; If you need to override the existing channels selection routine and force all
michael@202 130 ; PRI channels to be marked as exclusively selected, set this to yes.
michael@202 131 ; priexclusive = yes
michael@202 132 ;
michael@202 133 ; ISDN Timers
michael@202 134 ; All of the ISDN timers and counters that are used are configurable. Specify
michael@202 135 ; the timer name, and its value (in ms for timers).
michael@202 136 ; K: Layer 2 max number of outstanding unacknowledged I frames (default 7)
michael@202 137 ; N200: Layer 2 max number of retransmissions of a frame (default 3)
michael@202 138 ; T200: Layer 2 max time before retransmission of a frame (default 1000 ms)
michael@202 139 ; T203: Layer 2 max time without frames being exchanged (default 10000 ms)
michael@202 140 ; T305: Wait for DISCONNECT acknowledge (default 30000 ms)
michael@202 141 ; T308: Wait for RELEASE acknowledge (default 4000 ms)
michael@202 142 ; T309: Maintain active calls on Layer 2 disconnection (default -1, Asterisk clears calls)
michael@202 143 ; EuroISDN: 6000 to 12000 ms, according to (N200 + 1) x T200 + 2s
michael@202 144 ; May vary in other ISDN standards (Q.931 1993 : 90000 ms)
michael@202 145 ; T313: Wait for CONNECT acknowledge, CPE side only (default 3000 ms)
michael@202 146 ;
michael@202 147 ; pritimer => t200,1000
michael@202 148 ; pritimer => t313,4000
michael@202 149 ;
michael@202 150 ; To enable transmission of facility-based ISDN supplementary services (such
michael@202 151 ; as caller name from CPE over facility), enable this option.
michael@202 152 ; facilityenable = yes
michael@202 153 ;
michael@202 154 ;
michael@202 155 ; Signalling method (default is fxs). Valid values:
michael@202 156 ; em: E & M
michael@202 157 ; em_w: E & M Wink
michael@202 158 ; featd: Feature Group D (The fake, Adtran style, DTMF)
michael@202 159 ; featdmf: Feature Group D (The real thing, MF (domestic, US))
michael@202 160 ; featdmf_ta: Feature Group D (The real thing, MF (domestic, US)) through
michael@202 161 ; a Tandem Access point
michael@202 162 ; featb: Feature Group B (MF (domestic, US))
michael@202 163 ; fgccama Feature Group C-CAMA (DP DNIS, MF ANI)
michael@202 164 ; fgccamamf Feature Group C-CAMA MF (MF DNIS, MF ANI)
michael@202 165 ; fxs_ls: FXS (Loop Start)
michael@202 166 ; fxs_gs: FXS (Ground Start)
michael@202 167 ; fxs_ks: FXS (Kewl Start)
michael@202 168 ; fxo_ls: FXO (Loop Start)
michael@202 169 ; fxo_gs: FXO (Ground Start)
michael@202 170 ; fxo_ks: FXO (Kewl Start)
michael@202 171 ; pri_cpe: PRI signalling, CPE side
michael@202 172 ; pri_net: PRI signalling, Network side
michael@202 173 ; gr303fxoks_net: GR-303 Signalling, FXO Loopstart, Network side
michael@202 174 ; gr303fxsks_cpe: GR-303 Signalling, FXS Loopstart, CPE side
michael@202 175 ; sf: SF (Inband Tone) Signalling
michael@202 176 ; sf_w: SF Wink
michael@202 177 ; sf_featd: SF Feature Group D (The fake, Adtran style, DTMF)
michael@202 178 ; sf_featdmf: SF Feature Group D (The real thing, MF (domestic, US))
michael@202 179 ; sf_featb: SF Feature Group B (MF (domestic, US))
michael@202 180 ; e911: E911 (MF) style signalling
michael@202 181 ;
michael@202 182 ; The following are used for Radio interfaces:
michael@202 183 ; fxs_rx: Receive audio/COR on an FXS kewlstart interface (FXO at the
michael@202 184 ; channel bank)
michael@202 185 ; fxs_tx: Transmit audio/PTT on an FXS loopstart interface (FXO at the
michael@202 186 ; channel bank)
michael@202 187 ; fxo_rx: Receive audio/COR on an FXO loopstart interface (FXS at the
michael@202 188 ; channel bank)
michael@202 189 ; fxo_tx: Transmit audio/PTT on an FXO groundstart interface (FXS at
michael@202 190 ; the channel bank)
michael@202 191 ; em_rx: Receive audio/COR on an E&M interface (1-way)
michael@202 192 ; em_tx: Transmit audio/PTT on an E&M interface (1-way)
michael@202 193 ; em_txrx: Receive audio/COR AND Transmit audio/PTT on an E&M interface
michael@202 194 ; (2-way)
michael@202 195 ; em_rxtx: Same as em_txrx (for our dyslexic friends)
michael@202 196 ; sf_rx: Receive audio/COR on an SF interface (1-way)
michael@202 197 ; sf_tx: Transmit audio/PTT on an SF interface (1-way)
michael@202 198 ; sf_txrx: Receive audio/COR AND Transmit audio/PTT on an SF interface
michael@202 199 ; (2-way)
michael@202 200 ; sf_rxtx: Same as sf_txrx (for our dyslexic friends)
michael@202 201 ;
michael@202 202 ;signalling=fxo_ls
michael@202 203 ;
michael@202 204 ; If you have an outbound signalling format that is different from format
michael@202 205 ; specified above (but compatible), you can specify outbound signalling format,
michael@202 206 ; (see below). The 'signalling' format specified will be the inbound signalling
michael@202 207 ; format. If you only specify 'signalling', then it will be the format for
michael@202 208 ; both inbound and outbound.
michael@202 209 ;
michael@202 210 ; signalling=featdmf
michael@202 211 ; outsignalling=featb
michael@202 212 ;
michael@202 213 ; For Feature Group D Tandem access, to set the default CIC and OZZ use these
michael@202 214 ; parameters:
michael@202 215 ;defaultozz=0000
michael@202 216 ;defaultcic=303
michael@202 217 ;
michael@202 218 ; A variety of timing parameters can be specified as well
michael@202 219 ; Including:
michael@202 220 ; prewink: Pre-wink time (default 50ms)
michael@202 221 ; preflash: Pre-flash time (default 50ms)
michael@202 222 ; wink: Wink time (default 150ms)
michael@202 223 ; flash: Flash time (default 750ms)
michael@202 224 ; start: Start time (default 1500ms)
michael@202 225 ; rxwink: Receiver wink time (default 300ms)
michael@202 226 ; rxflash: Receiver flashtime (default 1250ms)
michael@202 227 ; debounce: Debounce timing (default 600ms)
michael@202 228 ;
michael@202 229 ;rxwink=300 ; Atlas seems to use long (250ms) winks
michael@202 230 ;
michael@202 231 ; How long generated tones (DTMF and MF) will be played on the channel
michael@202 232 ; (in milliseconds)
michael@202 233 ;toneduration=100
michael@202 234 ;
michael@202 235 ; Whether or not to do distinctive ring detection on FXO lines
michael@202 236 ;
michael@202 237 ;usedistinctiveringdetection=yes
michael@202 238 ;distinctiveringaftercid=yes ; enable dring detection after callerid for those countries like Australia
michael@202 239 ; where the ring cadence is changed *after* the callerid spill.
michael@202 240 ;
michael@202 241 ; Whether or not to use caller ID
michael@202 242 ;
michael@202 243 ;usecallerid=yes
michael@202 244 ;
michael@202 245 ; Type of caller ID signalling in use
michael@202 246 ; bell = bell202 as used in US
michael@202 247 ; v23 = v23 as used in the UK
michael@202 248 ; v23_jp = v23 as used in Japan
michael@202 249 ; dtmf = DTMF as used in Denmark, Sweden and Netherlands
michael@202 250 ; smdi = Use SMDI for callerid. Requires SMDI to be enabled (usesmdi).
michael@202 251 ;
michael@202 252 ;cidsignalling=bell
michael@202 253 ;
michael@202 254 ; What signals the start of caller ID
michael@202 255 ; ring = a ring signals the start
michael@202 256 ; polarity = polarity reversal signals the start
michael@202 257 ;
michael@202 258 ;cidstart=ring
michael@202 259 ;
michael@202 260 ; Whether or not to hide outgoing caller ID (Override with *67 or *82)
michael@202 261 ;
michael@202 262 ;hidecallerid=no
michael@202 263 ;
michael@202 264 ; Whether or not to enable call waiting on internal extensions
michael@202 265 ; With this set to 'yes', busy extensions will hear the call-waiting
michael@202 266 ; tone, and can use hook-flash to switch between callers. The Dial()
michael@202 267 ; app will not return the "BUSY" result for extensions.
michael@202 268 ;
michael@202 269 ;callwaiting=yes
michael@202 270 ;
michael@202 271 ; Whether or not restrict outgoing caller ID (will be sent as ANI only, not
michael@202 272 ; available for the user)
michael@202 273 ; Mostly use with FXS ports
michael@202 274 ;
michael@202 275 ;restrictcid=no
michael@202 276 ;
michael@202 277 ; Whether or not use the caller ID presentation for the outgoing call that the
michael@202 278 ; calling switch is sending.
michael@202 279 ; See README.callingpres
michael@202 280 ;
michael@202 281 ;usecallingpres=yes
michael@202 282 ;
michael@202 283 ; Some countries (UK) have ring tones with different ring tones (ring-ring),
michael@202 284 ; which means the callerid needs to be set later on, and not just after
michael@202 285 ; the first ring, as per the default.
michael@202 286 ;
michael@202 287 ;sendcalleridafter=1
michael@202 288 ;
michael@202 289 ;
michael@202 290 ; Support Caller*ID on Call Waiting
michael@202 291 ;
michael@202 292 ;callwaitingcallerid=yes
michael@202 293 ;
michael@202 294 ; Support three-way calling
michael@202 295 ;
michael@202 296 ;threewaycalling=yes
michael@202 297 ;
michael@202 298 ; Support flash-hook call transfer (requires three way calling)
michael@202 299 ; Also enables call parking (overrides the 'canpark' parameter)
michael@202 300 ;
michael@202 301 ;transfer=yes
michael@202 302 ;
michael@202 303 ; Allow call parking
michael@202 304 ; ('canpark=no' is overridden by 'transfer=yes')
michael@202 305 ;
michael@202 306 ;canpark=yes
michael@202 307 ;
michael@202 308 ; Support call forward variable
michael@202 309 ;
michael@202 310 ;cancallforward=yes
michael@202 311 ;
michael@202 312 ; Whether or not to support Call Return (*69)
michael@202 313 ;
michael@202 314 ;callreturn=yes
michael@202 315 ;
michael@202 316 ; Stutter dialtone support: If a mailbox is specified without a voicemail
michael@202 317 ; context, then when voicemail is received in a mailbox in the default
michael@202 318 ; voicemail context in voicemail.conf, taking the phone off hook will cause a
michael@202 319 ; stutter dialtone instead of a normal one.
michael@202 320 ;
michael@202 321 ; If a mailbox is specified *with* a voicemail context, the same will result
michael@202 322 ; if voicemail received in mailbox in the specified voicemail context.
michael@202 323 ;
michael@202 324 ; for default voicemail context, the example below is fine:
michael@202 325 ;
michael@202 326 ;mailbox=1234
michael@202 327 ;
michael@202 328 ; for any other voicemail context, the following will produce the stutter tone:
michael@202 329 ;
michael@202 330 ;mailbox=1234@context
michael@202 331 ;
michael@202 332 ; Enable echo cancellation
michael@202 333 ; Use either "yes", "no", or a power of two from 32 to 256 if you wish to
michael@202 334 ; actually set the number of taps of cancellation.
michael@202 335 ;
michael@202 336 ; Note that when setting the number of taps, the number 256 does not translate
michael@202 337 ; to 256 ms of echo cancellation. echocancel=256 means 256 / 8 = 32 ms.
michael@202 338 ;
michael@202 339 ; Note that if any of your Zaptel cards have hardware echo cancellers,
michael@202 340 ; then this setting only turns them on and off; numeric settings will
michael@202 341 ; be treated as "yes". There are no special settings required for
michael@202 342 ; hardware echo cancellers; when present and enabled in their kernel
michael@202 343 ; modules, they take precedence over the software echo canceller compiled
michael@202 344 ; into Zaptel automatically.
michael@202 345 ;
michael@202 346 ;echocancel=yes
michael@202 347 ;
michael@202 348 ; Generally, it is not necessary (and in fact undesirable) to echo cancel when
michael@202 349 ; the circuit path is entirely TDM. You may, however, change this behavior
michael@202 350 ; by enabling the echo cancel during pure TDM bridging below.
michael@202 351 ;
michael@202 352 ;echocancelwhenbridged=yes
michael@202 353 ;
michael@202 354 ; In some cases, the echo canceller doesn't train quickly enough and there
michael@202 355 ; is echo at the beginning of the call. Enabling echo training will cause
michael@202 356 ; asterisk to briefly mute the channel, send an impulse, and use the impulse
michael@202 357 ; response to pre-train the echo canceller so it can start out with a much
michael@202 358 ; closer idea of the actual echo. Value may be "yes", "no", or a number of
michael@202 359 ; milliseconds to delay before training (default = 400)
michael@202 360 ;
michael@202 361 ; WARNING: In some cases this option can make echo worse! If you are
michael@202 362 ; trying to debug an echo problem, it is worth checking to see if your echo
michael@202 363 ; is better with the option set to yes or no. Use whatever setting gives
michael@202 364 ; the best results.
michael@202 365 ;
michael@202 366 ; Note that these parameters do not apply to hardware echo cancellers.
michael@202 367 ;
michael@202 368 ;echotraining=yes
michael@202 369 ;echotraining=800
michael@202 370 ;
michael@202 371 ; If you are having trouble with DTMF detection, you can relax the DTMF
michael@202 372 ; detection parameters. Relaxing them may make the DTMF detector more likely
michael@202 373 ; to have "talkoff" where DTMF is detected when it shouldn't be.
michael@202 374 ;
michael@202 375 ;relaxdtmf=yes
michael@202 376 ;
michael@202 377 ; You may also set the default receive and transmit gains (in dB)
michael@202 378 ;
michael@202 379 ;rxgain=0.0
michael@202 380 ;txgain=0.0
michael@202 381 ;
michael@202 382 ; Logical groups can be assigned to allow outgoing rollover. Groups range
michael@202 383 ; from 0 to 63, and multiple groups can be specified.
michael@202 384 ;
michael@202 385 ;group=1
michael@202 386 ;
michael@202 387 ; Ring groups (a.k.a. call groups) and pickup groups. If a phone is ringing
michael@202 388 ; and it is a member of a group which is one of your pickup groups, then
michael@202 389 ; you can answer it by picking up and dialling *8#. For simple offices, just
michael@202 390 ; make these both the same. Groups range from 0 to 63.
michael@202 391 ;
michael@202 392 ;callgroup=1
michael@202 393 ;pickupgroup=1
michael@202 394
michael@202 395 ;
michael@202 396 ; Specify whether the channel should be answered immediately or if the simple
michael@202 397 ; switch should provide dialtone, read digits, etc.
michael@202 398 ; Note: If immediate=yes the dialplan execution will always start at extension
michael@202 399 ; 's' priority 1 regardless of the dialed number!
michael@202 400 ;
michael@202 401 ;immediate=no
michael@202 402 ;
michael@202 403 ; Specify whether flash-hook transfers to 'busy' channels should complete or
michael@202 404 ; return to the caller performing the transfer (default is yes).
michael@202 405 ;
michael@202 406 ;transfertobusy=no
michael@202 407 ;
michael@202 408 ; CallerID can be set to "asreceived" or a specific number if you want to
michael@202 409 ; override it. Note that "asreceived" only applies to trunk interfaces.
michael@202 410 ;
michael@202 411 ;callerid=2564286000
michael@202 412 ;
michael@202 413 ; AMA flags affects the recording of Call Detail Records. If specified
michael@202 414 ; it may be 'default', 'omit', 'billing', or 'documentation'.
michael@202 415 ;
michael@202 416 ;amaflags=default
michael@202 417 ;
michael@202 418 ; Channels may be associated with an account code to ease
michael@202 419 ; billing
michael@202 420 ;
michael@202 421 ;accountcode=lss0101
michael@202 422 ;
michael@202 423 ; ADSI (Analog Display Services Interface) can be enabled on a per-channel
michael@202 424 ; basis if you have (or may have) ADSI compatible CPE equipment
michael@202 425 ;
michael@202 426 ;adsi=yes
michael@202 427 ;
michael@202 428 ; SMDI (Simplified Message Desk Interface) can be enabled on a per-channel
michael@202 429 ; basis if you would like that channel to behave like an SMDI message desk.
michael@202 430 ; The SMDI port specified should have already been defined in smdi.conf. The
michael@202 431 ; default port is /dev/ttyS0.
michael@202 432 ;
michael@202 433 ;usesmdi=yes
michael@202 434 ;smdiport=/dev/ttyS0
michael@202 435 ;
michael@202 436 ; On trunk interfaces (FXS) and E&M interfaces (E&M, Wink, Feature Group D
michael@202 437 ; etc, it can be useful to perform busy detection either in an effort to
michael@202 438 ; detect hangup or for detecting busies. This enables listening for
michael@202 439 ; the beep-beep busy pattern.
michael@202 440 ;
michael@202 441 ;busydetect=yes
michael@202 442 ;
michael@202 443 ; If busydetect is enabled, it is also possible to specify how many busy tones
michael@202 444 ; to wait for before hanging up. The default is 4, but better results can be
michael@202 445 ; achieved if set to 6 or even 8. Mind that the higher the number, the more
michael@202 446 ; time that will be needed to hangup a channel, but lowers the probability
michael@202 447 ; that you will get random hangups.
michael@202 448 ;
michael@202 449 ;busycount=4
michael@202 450 ;
michael@202 451 ; If busydetect is enabled, it is also possible to specify the cadence of your
michael@202 452 ; busy signal. In many countries, it is 500msec on, 500msec off. Without
michael@202 453 ; busypattern specified, we'll accept any regular sound-silence pattern that
michael@202 454 ; repeats <busycount> times as a busy signal. If you specify busypattern,
michael@202 455 ; then we'll further check the length of the sound (tone) and silence, which
michael@202 456 ; will further reduce the chance of a false positive.
michael@202 457 ;
michael@202 458 ;busypattern=500,500
michael@202 459 ;
michael@202 460 ; NOTE: In the Asterisk Makefile you'll find further options to tweak the busy
michael@202 461 ; detector. If your country has a busy tone with the same length tone and
michael@202 462 ; silence (as many countries do), consider defining the
michael@202 463 ; -DBUSYDETECT_COMPARE_TONE_AND_SILENCE option.
michael@202 464 ;
michael@202 465 ; Use a polarity reversal to mark when a outgoing call is answered by the
michael@202 466 ; remote party.
michael@202 467 ;
michael@202 468 ;answeronpolarityswitch=yes
michael@202 469 ;
michael@202 470 ; In some countries, a polarity reversal is used to signal the disconnect of a
michael@202 471 ; phone line. If the hanguponpolarityswitch option is selected, the call will
michael@202 472 ; be considered "hung up" on a polarity reversal.
michael@202 473 ;
michael@202 474 ;hanguponpolarityswitch=yes
michael@202 475 ;
michael@202 476 ; On trunk interfaces (FXS) it can be useful to attempt to follow the progress
michael@202 477 ; of a call through RINGING, BUSY, and ANSWERING. If turned on, call
michael@202 478 ; progress attempts to determine answer, busy, and ringing on phone lines.
michael@202 479 ; This feature is HIGHLY EXPERIMENTAL and can easily detect false answers,
michael@202 480 ; so don't count on it being very accurate.
michael@202 481 ;
michael@202 482 ; Few zones are supported at the time of this writing, but may be selected
michael@202 483 ; with "progzone"
michael@202 484 ;
michael@202 485 ; This feature can also easily detect false hangups. The symptoms of this is
michael@202 486 ; being disconnected in the middle of a call for no reason.
michael@202 487 ;
michael@202 488 ;callprogress=yes
michael@202 489 ;progzone=us
michael@202 490 ;
michael@202 491 ; FXO (FXS signalled) devices must have a timeout to determine if there was a
michael@202 492 ; hangup before the line was answered. This value can be tweaked to shorten
michael@202 493 ; how long it takes before Zap considers a non-ringing line to have hungup.
michael@202 494 ;
michael@202 495 ;ringtimeout=8000
michael@202 496 ;
michael@202 497 ; For FXO (FXS signalled) devices, whether to use pulse dial instead of DTMF
michael@202 498 ;
michael@202 499 ;pulsedial=yes
michael@202 500 ;
michael@202 501 ; For fax detection, uncomment one of the following lines. The default is *OFF*
michael@202 502 ;
michael@202 503 ;faxdetect=both
michael@202 504 ;faxdetect=incoming
michael@202 505 ;faxdetect=outgoing
michael@202 506 ;faxdetect=no
michael@202 507 ;
michael@202 508 ; This option specifies a preference for which music on hold class this channel
michael@202 509 ; should listen to when put on hold if the music class has not been set on the
michael@202 510 ; channel with Set(CHANNEL(musicclass)=whatever) in the dialplan, and the peer
michael@202 511 ; channel putting this one on hold did not suggest a music class.
michael@202 512 ;
michael@202 513 ; If this option is set to "passthrough", then the hold message will always be
michael@202 514 ; passed through as signalling instead of generating hold music locally. This
michael@202 515 ; setting is only valid when used on a channel that uses digital signalling.
michael@202 516 ;
michael@202 517 ; This option may be specified globally, or on a per-user or per-peer basis.
michael@202 518 ;
michael@202 519 ;mohinterpret=default
michael@202 520 ;
michael@202 521 ; This option specifies which music on hold class to suggest to the peer channel
michael@202 522 ; when this channel places the peer on hold. It may be specified globally or on
michael@202 523 ; a per-user or per-peer basis.
michael@202 524 ;
michael@202 525 ;mohsuggest=default
michael@202 526 ;
michael@202 527 ; PRI channels can have an idle extension and a minunused number. So long as
michael@202 528 ; at least "minunused" channels are idle, chan_zap will try to call "idledial"
michael@202 529 ; on them, and then dump them into the PBX in the "idleext" extension (which
michael@202 530 ; is of the form exten@context). When channels are needed the "idle" calls
michael@202 531 ; are disconnected (so long as there are at least "minidle" calls still
michael@202 532 ; running, of course) to make more channels available. The primary use of
michael@202 533 ; this is to create a dynamic service, where idle channels are bundled through
michael@202 534 ; multilink PPP, thus more efficiently utilizing combined voice/data services
michael@202 535 ; than conventional fixed mappings/muxings.
michael@202 536 ;
michael@202 537 ;idledial=6999
michael@202 538 ;idleext=6999@dialout
michael@202 539 ;minunused=2
michael@202 540 ;minidle=1
michael@202 541 ;
michael@202 542 ; Configure jitter buffers in zapata (each one is 20ms, default is 4)
michael@202 543 ;
michael@202 544 ;jitterbuffers=4
michael@202 545 ;
michael@202 546 ;------------------------------ JITTER BUFFER CONFIGURATION --------------------------
michael@202 547 ; jbenable = yes ; Enables the use of a jitterbuffer on the receiving side of a
michael@202 548 ; ZAP channel. Defaults to "no". An enabled jitterbuffer will
michael@202 549 ; be used only if the sending side can create and the receiving
michael@202 550 ; side can not accept jitter. The ZAP channel can't accept jitter,
michael@202 551 ; thus an enabled jitterbuffer on the receive ZAP side will always
michael@202 552 ; be used if the sending side can create jitter.
michael@202 553
michael@202 554 ; jbmaxsize = 200 ; Max length of the jitterbuffer in milliseconds.
michael@202 555
michael@202 556 ; jbresyncthreshold = 1000 ; Jump in the frame timestamps over which the jitterbuffer is
michael@202 557 ; resynchronized. Useful to improve the quality of the voice, with
michael@202 558 ; big jumps in/broken timestamps, usually sent from exotic devices
michael@202 559 ; and programs. Defaults to 1000.
michael@202 560
michael@202 561 ; jbimpl = fixed ; Jitterbuffer implementation, used on the receiving side of a ZAP
michael@202 562 ; channel. Two implementations are currently available - "fixed"
michael@202 563 ; (with size always equals to jbmax-size) and "adaptive" (with
michael@202 564 ; variable size, actually the new jb of IAX2). Defaults to fixed.
michael@202 565
michael@202 566 ; jblog = no ; Enables jitterbuffer frame logging. Defaults to "no".
michael@202 567 ;-----------------------------------------------------------------------------------
michael@202 568 ;
michael@202 569 ; You can define your own custom ring cadences here. You can define up to 8
michael@202 570 ; pairs. If the silence is negative, it indicates where the callerid spill is
michael@202 571 ; to be placed. Also, if you define any custom cadences, the default cadences
michael@202 572 ; will be turned off.
michael@202 573 ;
michael@202 574 ; Syntax is: cadence=ring,silence[,ring,silence[...]]
michael@202 575 ;
michael@202 576 ; These are the default cadences:
michael@202 577 ;
michael@202 578 ;cadence=125,125,2000,-4000
michael@202 579 ;cadence=250,250,500,1000,250,250,500,-4000
michael@202 580 ;cadence=125,125,125,125,125,-4000
michael@202 581 ;cadence=1000,500,2500,-5000
michael@202 582 ;
michael@202 583 ; Each channel consists of the channel number or range. It inherits the
michael@202 584 ; parameters that were specified above its declaration.
michael@202 585 ;
michael@202 586 ; For GR-303, CRV's are created like channels except they must start with the
michael@202 587 ; trunk group followed by a colon, e.g.:
michael@202 588 ;
michael@202 589 ; crv => 1:1
michael@202 590 ; crv => 2:1-2,5-8
michael@202 591 ;
michael@202 592 ;
michael@202 593 ;callerid="Green Phone"<(256) 428-6121>
michael@202 594 ;channel => 1
michael@202 595 ;callerid="Black Phone"<(256) 428-6122>
michael@202 596 ;channel => 2
michael@202 597 ;callerid="CallerID Phone" <(256) 428-6123>
michael@202 598 ;callerid="CallerID Phone" <(630) 372-1564>
michael@202 599 ;callerid="CallerID Phone" <(256) 704-4666>
michael@202 600 ;channel => 3
michael@202 601 ;callerid="Pac Tel Phone" <(256) 428-6124>
michael@202 602 ;channel => 4
michael@202 603 ;callerid="Uniden Dead" <(256) 428-6125>
michael@202 604 ;channel => 5
michael@202 605 ;callerid="Cortelco 2500" <(256) 428-6126>
michael@202 606 ;channel => 6
michael@202 607 ;callerid="Main TA 750" <(256) 428-6127>
michael@202 608 ;channel => 44
michael@202 609 ;
michael@202 610 ; For example, maybe we have some other channels which start out in a
michael@202 611 ; different context and use E & M signalling instead.
michael@202 612 ;
michael@202 613 ;context=remote
michael@202 614 ;sigalling=em
michael@202 615 ;channel => 15
michael@202 616 ;channel => 16
michael@202 617
michael@202 618 ;signalling=em_w
michael@202 619 ;
michael@202 620 ; All those in group 0 I'll use for outgoing calls
michael@202 621 ;
michael@202 622 ; Strip most significant digit (9) before sending
michael@202 623 ;
michael@202 624 ;stripmsd=1
michael@202 625 ;callerid=asreceived
michael@202 626 ;group=0
michael@202 627 ;signalling=fxs_ls
michael@202 628 ;channel => 45
michael@202 629
michael@202 630 ;signalling=fxo_ls
michael@202 631 ;group=1
michael@202 632 ;callerid="Joe Schmoe" <(256) 428-6131>
michael@202 633 ;channel => 25
michael@202 634 ;callerid="Megan May" <(256) 428-6132>
michael@202 635 ;channel => 26
michael@202 636 ;callerid="Suzy Queue" <(256) 428-6233>
michael@202 637 ;channel => 27
michael@202 638 ;callerid="Larry Moe" <(256) 428-6234>
michael@202 639 ;channel => 28
michael@202 640 ;
michael@202 641 ; Sample PRI (CPE) config: Specify the switchtype, the signalling as either
michael@202 642 ; pri_cpe or pri_net for CPE or Network termination, and generally you will
michael@202 643 ; want to create a single "group" for all channels of the PRI.
michael@202 644 ;
michael@202 645 ; switchtype = national
michael@202 646 ; signalling = pri_cpe
michael@202 647 ; group = 2
michael@202 648 ; channel => 1-23
michael@202 649
michael@202 650 ;
michael@202 651
michael@202 652 ; Used for distinctive ring support for x100p.
michael@202 653 ; You can see the dringX patterns is to set any one of the dringXcontext fields
michael@202 654 ; and they will be printed on the console when an inbound call comes in.
michael@202 655 ;
michael@202 656 ;dring1=95,0,0
michael@202 657 ;dring1context=internal1
michael@202 658 ;dring2=325,95,0
michael@202 659 ;dring2context=internal2
michael@202 660 ; If no pattern is matched here is where we go.
michael@202 661 ;context=default
michael@202 662 ;channel => 1
michael@202 663

mercurial