All pastes #3283 Raw Edit

Update for Harry

public ini v1 · immutable
#3283 ·published 2004-12-22 11:12 UTC
rendered paste body
-------/etc/zapta.conf-----------# Autogenerated by /usr/sbin/genzaptelconf -- do not hand edit# Zaptel Configuration File## This file is parsed by the Zaptel Configurator, ztcfg## It must be in the module loading order# Global datafxsks           = 1loadzone        = usdefaultzone     = us----------/etc/asterisk/zapta.conf----------; asterisk to briefly mute the channel, send an impulse, and use the impulse; response to pre-train the echo canceller so it can start out with a much; closer idea of the actual echo.  Value may be "yes", "no", or a number of; milliseconds to delay before training (default = 400);;echotraining=yes;echotraining=800;; If you are having trouble with DTMF detection, you can relax the; DTMF detection parameters.  Relaxing them may make the DTMF detector; more likely to have "talkoff" where DTMF is detected when it; shouldn't be.;;relaxdtmf=yes;; You may also set the default receive and transmit gains (in dB);rxgain=0.0txgain=0.0;; Logical groups can be assigned to allow outgoing rollover.  Groups; range from 0 to 31, and multiple groups can be specified.;group=1;; Ring groups (a.k.a. call groups) and pickup groups.  If a phone is ringing; and it is a member of a group which is one of your pickup groups, then; you can answer it by picking up and dialing *8#.  For simple offices, just; make these both the same;callgroup=1pickupgroup=1;; Specify whether the channel should be answered immediately or; if the simple switch should provide dialtone, read digits, etc.;immediate=no;; CallerID can be set to "asreceived" or a specific number; if you want to override it.  Note that "asreceived" only; applies to trunk interfaces.;;callerid=2564286000;; AMA flags affects the recording of Call Detail Records.  If specified; it may be 'default', 'omit', 'billing', or 'documentation'.;;amaflags=default;; Channels may be associated with an account code to ease; billing;;accountcode=lss0101;; ADSI (Analog Display Services Interface) can be enabled on a per-channel; basis if you have (or may have) ADSI compatible CPE equipment;;adsi=yes;; On trunk interfaces (FXS) and E&M interfaces (E&M, Wink, Feature Group D; etc, it can be useful to perform busy detection either in an effort to; detect hangup or for detecting busies;;busydetect=yes;; If busydetect is enabled, is also possible to specify how many; busy tones to wait before hanging up. The default is 4, but; better results can be achieved if set to 6 or even 8. Mind that; higher the number, more time is needed to hangup a channel, but; lower is probability to get random hangups;;busycount=4;; On trunk interfaces (FXS) it can be useful to attempt to follow the progress; of a call through RINGING, BUSY, and ANSWERING.   If turned on, call; progress attempts to determine answer, busy, and ringing on phone lines.; This feature is HIGHLY EXPERIMENTAL and can easily detect false answers,; so don't count on it being very accurate.;; Few zones are supported at the time of this writing, but may; be selected with "progzone";; This feature can also easily detect false hangups. The symptoms of this; is being disconnected in the middle of a call for no reason.;;callprogress=yes;progzone=us;; For FXO (FXS signalled) devices, whether to use pulse dial instead of DTMF;;pulsedial=yes;; For fax detection, uncomment one of the following lines.  The default is *OFF*;;faxdetect=both;faxdetect=incoming;faxdetect=outgoing;faxdetect=no;; Select which class of music to use for music on hold.  If not specified; then the default will be used.;;musiconhold=default;; PRI channels can have an idle extension and a minunused number.  So long; as at least "minunused" channels are idle, chan_zap will try to call; "idledial" on them, and then dump them into the PBX in the "idleext"; extension (which is of the form exten@context).  When channels are needed; the "idle" calls are disconnected (so long as there are at least "minidle"; calls still running, of course) to make more channels available.  The; primary use of this is to create a dynamic service, where idle channels; are bundled through multilink PPP, thus more efficiently utilizing; combined voice/data services than conventional fixed mappings/muxings.;;idledial=6999;idleext=6999@dialout;minunused=2;minidle=1;; Configure jitter buffers in zapata (each one is 20ms, default is 4);;jitterbuffers=4;; You can define your own custom ring cadences here.  You can define up to; 8 pairs.  If the silence is negative, it indicates where the callerid; spill is to be placed.  Also, if you define any custom cadences, the; default cadences will be turned off.;; Syntax is:  cadence=ring,silence[,ring,silence[...]];; These are the default cadences:;;cadence=125,125,2000,-4000;cadence=250,250,500,1000,250,250,500,-4000;cadence=125,125,125,125,125,-4000;cadence=1000,500,2500,-5000;; Each channel consists of the channel number or range.  It; inherits the parameters that were specified above its declaration;; For GR-303, CRV's are created like channels except they must start; with the trunk group followed by a colon, e.g.:;; crv => 1:1; crv => 2:1-2,5-8;;;callerid="Green Phone"<(256) 428-6121>;channel => 1;callerid="Black Phone"<(256) 428-6122>;channel => 2;callerid="CallerID Phone" <(256) 428-6123>;callerid="CallerID Phone" <(630) 372-1564>;callerid="CallerID Phone" <(256) 704-4666>;channel => 3;callerid="Pac Tel Phone" <(256) 428-6124>;channel => 4;callerid="Uniden Dead" <(256) 428-6125>;channel => 5;callerid="Cortelco 2500" <(256) 428-6126>;channel => 6;callerid="Main TA 750" <(256) 428-6127>;channel => 44;; For example, maybe we have some other channels; which start out in a different context and use; E & M signalling instead.;;context=remote;sigalling=em;channel => 15;channel => 16;signalling=em_w;; All those in group 0 I'll use for outgoing calls;; Strip most significant digit (9) before sending;;stripmsd=1;callerid=asreceived;group=0;signalling=fxs_ls;channel => 45;signalling=fxo_ls;group=1;callerid="Joe Schmoe" <(256) 428-6131>;channel => 25;callerid="Megan May" <(256) 428-6132>;channel => 26;callerid="Suzy Queue" <(256) 428-6233>;channel => 27;callerid="Larry Moe" <(256) 428-6234>;channel => 28;; Sample PRI (CPE) config:  Specify the switchtype, the signalling as; either pri_cpe or pri_net for CPE or Network termination, and generally; you will want to create a single "group" for all channels of the PRI.;; switchtype = national; signalling = pri_cpe; group = 2; channel => 1-23;;  Used for distintive ring support for x100p.;  You can see the dringX patterns is to set any one of the dringXcontext fields;  and they will be printed on the console when an inbound call comes in.;;dring1=95,0,0;dring1context=internal1;dring2=325,95,0;dring2context=internal2; If no pattern is matched here is where we go.;context=default;channel => 1context=myinboundcontextsignalling=fxo_kschannel=1