; ; Sample ADSI Configuration file ; [intro] alignment = center greeting => Welcome to the greeting => Asterisk greeting => Open Source PBX ; ; Voice over Frame Relay (Adtran style) ; ; Configuration file [interfaces] ; ; Default language ; ;language=en ; ; Lines for which we are the user termination. They accept incoming ; and outgoing calls. We use the default context on the first 8 lines ; used by internal phones. ; context=default ;user => voice00 ;user => voice01 ;user => voice02 ;user => voice03 ;user => voice04 ;user => voice05 ;user => voice06 ;user => voice07 ; Calls on 16 and 17 come from the outside world, so they get ; a little bit special treatment context=remote ;user => voice16 ;user => voice17 ; ; Next we have lines which we only accept calls on, and typically ; do not send outgoing calls on (i.e. these are where we are the ; network termination) ; ;network => voice08 ;network => voice09 ;network => voice10 ;network => voice11 ;network => voice12 [general] ; ; Define whether callbacklogins should be stored in astdb for ; persistence. Persistent logins will be reloaded after ; Asterisk restarts. ; persistentagents=yes ; ; Agent configuration ; ; [agents] ; ; Define autologoff times if appropriate. This is how long ; the phone has to ring with no answer before the agent is ; automatically logged off (in seconds) ; ;autologoff=15 ; ; Define ackcall to require an acknowledgement by '#' when ; an agent logs in using agentcallbacklogin. Default is "no". ; ;ackcall=no ; ; Define wrapuptime. This is the minimum amount of time when ; after disconnecting before the caller can receive a new call ; note this is in milliseconds. ; ;wrapuptime=5000 ; ; Define the default musiconhold for agents ; musiconhold => music_class ; ;musiconhold => default ; ; Define updatecdr. This is whether or not to change the source ; channel in the CDR record for this call to agent/agent_id so ; that we know which agent generates the call ; ;updatecdr=no ; ; Group memberships for agents (may change in mid-file) ; ;group=3 ;group=1,2 ;group= ; ; -------------------------------------------------- ; This section is devoted to recording agent's calls ; The keywords are global to the chan_agent channel driver ; ; Enable recording calls addressed to agents. It's turned off by default. ;recordagentcalls=yes ; ; The format to be used to record the calls: wav, gsm, wav49. ; By default its "wav". ;recordformat=gsm ; ; Insert into CDR userfield a name of the the created recording ; By default it's turned off. ;createlink=yes ; ; The text to be added to the name of the recording. Allows forming a url link. ;urlprefix=http://localhost/calls/ ; ; The optional directory to save the conversations in. The default is ; /var/spool/asterisk/monitor ;savecallsin=/var/calls ; ; An optional custom beep sound file to play to always-connected agents. ;custom_beep=beep ; ; -------------------------------------------------- ; ; This section contains the agent definitions, in the form: ; ; agent => agentid,agentpassword,name ; ;agent => 1001,4321,Mark Spencer ;agent => 1002,4321,Will Meadows ; ; alarmreceiver.conf ; ; Sample configuration file for the Asterisk alarm receiver application. ; [general] ; ; Specify a timestamp format for the metadata section of the event files ; Default is %a %b %d, %Y @ %H:%M:%S %Z timestampformat = %a %b %d, %Y @ %H:%M:%S %Z ; ; Specify a command to execute when the caller hangs up ; ; Default is none ; ;eventcmd = yourprogram -yourargs ... ; ; Specify a spool directory for the event files. This setting is required if you want the app to be useful. ; Event files written to the spool directory will be of the template event-XXXXXX, where XXXXXX is a random ; and unique alphanumeric string. ; ; Default is none, and the events will be dropped on the floor. ; eventspooldir = /tmp ; ; The alarmreceiver app can either log the events one-at-a-time to individual files in the spool ; directory, or it can store them until the caller disconnects and write them all to one file. ; ; The default setting for logindividualevents is no. ; logindividualevents = no ; ; The timeout for receiving the first DTMF digit is adjustable from 1000 msec. to 10000 msec. The ; default is 2000 msec. Note: if you wish to test the receiver by entering digits manually, set this ; to a reasonable time out like 10000 milliseconds. fdtimeout = 2000 ; ; The timeout for receiving subsequent DTMF digits is adjustable from 110 msec. to 4000 msec. The ; default is 200 msec. Note: if you wish to test the receiver by entering digits manually, set this ; to a reasonable time out like 4000 milliseconds. ; sdtimeout = 200 ; ; The loudness of the ACK and Kissoff tones is adjustable from 100 to 8192. The default is 8192 ; This shouldn't need to be messed with, but is included just in case there are problems with ; signal levels. ; loudness = 8192 ; ; The db-family setting allows the user to capture statistics on the number of calls, and the errors ; the alarm receiver sees. The default is for no db-family name to be defined and the database logging ; to be turned off. ; ;db-family = yourfamily: ; ; End of alarmreceiver.conf ; ; ; Open Sound System Console Driver Configuration File ; [general] ; ; Automatically answer incoming calls on the console? Choose yes if ; for example you want to use this as an intercom. ; autoanswer=yes ; ; Default context (is overridden with @context syntax) ; context=local ; ; Default extension to call ; extension=s ; ; Default language ; ;language=en ; ; Silence supression can be enabled when sound is over a certain threshold. ; The value for the threshold should probably be between 500 and 2000 or so, ; but your mileage may vary. Use the echo test to evaluate the best setting. ;silencesuppression = yes ;silencethreshold = 1000 ; ; To set which ALSA device to use, change this parameter ;input_device=hw:0,0 ;output_device=default ; ; Answering Machine Detection Configuration ; [general] initial_silence = 2500 ; Maximum silence duration before the greeting. ; If exceeded then MACHINE. greeting = 1500 ; Maximum length of a greeting. If exceeded then MACHINE. after_greeting_silence = 800 ; Silence after detecting a greeting. ; If exceeded then HUMAN total_analysis_time = 5000 ; Maximum time allowed for the algorithm to decide ; on a HUMAN or MACHINE min_word_length = 100 ; Minimum duration of Voice to considered as a word between_words_silence = 50 ; Minimum duration of silence after a word to consider ; the audio what follows as a new word maximum_number_of_words = 3 ; Maximum number of words in the greeting. ; If exceeded then MACHINE silence_threshold = 256 [directories] astetcdir => /etc/asterisk astmoddir => /usr/lib/asterisk/modules astvarlibdir => /var/lib/asterisk astagidir => /var/lib/asterisk/agi-bin astspooldir => /var/spool/asterisk astrundir => /var/run astlogdir => /var/log/asterisk ; Changing the following lines may compromise your security. ;[files] ;astctlpermissions = 0660 ;astctlowner = root ;astctlgroup = apache ;astctl = asterisk.ctl ; ; Asterisk Call Detail Record engine configuration ; ; CDR is Call Detail Record, which provides logging services via a variety of ; pluggable backend modules. Detailed call information can be recorded to ; databases, files, etc. Useful for billing, fraud prevention, compliance with ; Sarbanes-Oxley aka The Enron Act, QOS evaluations, and more. ; [general] ; Define whether or not to use CDR logging. Setting this to "no" will override ; any loading of backend CDR modules. Default is "yes". ;enable=yes ; Define the CDR batch mode, where instead of posting the CDR at the end of ; every call, the data will be stored in a buffer to help alleviate load on the ; asterisk server. Default is "no". ; ; WARNING WARNING WARNING ; Use of batch mode may result in data loss after unsafe asterisk termination ; ie. software crash, power failure, kill -9, etc. ; WARNING WARNING WARNING ; ;batch=no ; Define the maximum number of CDRs to accumulate in the buffer before posting ; them to the backend engines. 'batch' must be set to 'yes'. Default is 100. ;size=100 ; Define the maximum time to accumulate CDRs in the buffer before posting them ; to the backend engines. If this time limit is reached, then it will post the ; records, regardless of the value defined for 'size'. 'batch' must be set to ; 'yes'. Note that time is in seconds. Default is 300 (5 minutes). ;time=300 ; The CDR engine uses the internal asterisk scheduler to determine when to post ; records. Posting can either occure inside the scheduler thread, or a new ; thread can be spawned for the submission of every batch. For small batches, ; it might be acceptable to just use the scheduler thread, so set this to "yes". ; For large batches, say anything over size=10, a new thread is recommended, so ; set this to "no". Default is "no". ;scheduleronly=no ; When shutting down asterisk, you can block until the CDRs are submitted. If ; you don't, then data will likely be lost. You can always check the size of ; the CDR batch buffer with the CLI "cdr status" command. To enable blocking on ; submission of CDR data during asterisk shutdown, set this to "yes". Default ; is "yes". ;safeshutdown=yes ; ; Mappings for custom config file ; [mappings] Master.csv => "${CDR(clid)}","${CDR(src)}","${CDR(dst)}","${CDR(dcontext)}","${CDR(channel)}","${CDR(dstchannel)}","${CDR(lastapp)}","${CDR(lastdata)}","${CDR(start)}","${CDR(answer)}","${CDR(end)}","${CDR(duration)}","${CDR(billsec)}","${CDR(disposition)}","${CDR(amaflags)}","${CDR(accountcode)}","${CDR(uniqueid)}","${CDR(userfield)}" ; ; Asterisk Call Management CDR ; [general] enabled = yes ; ; Note - if the database server is hosted on the same machine as the ; asterisk server, you can achieve a local Unix socket connection by ; setting hostname=localhost ; ; port and sock are both optional parameters. If hostname is specified ; and is not "localhost", then cdr_mysql will attempt to connect to the ; port specified or use the default port. If hostname is not specified ; or if hostname is "localhost", then cdr_mysql will attempt to connect ; to the socket file specified by sock or otherwise use the default socket ; file. ; ;[global] ;hostname=database.host.name ;dbname=asteriskcdrdb ;table=cdr ;password=password ;user=asteriskcdruser ;port=3306 ;sock=/tmp/mysql.sock ;userfield=1 ; ; cdr_odbc.conf ; ;[global] ;dsn=MySQL-test ;username=username ;password=password ;loguniqueid=yes ;dispositionstring=yes ;table=cdr ;"cdr" is default table name ;usegmtime=no ; set to "yes" to log in GMT ; Sample Asterisk config file for CDR logging to PostgresSQL [global] hostname=localhost port=5432 dbname=asterisk password=p0stgr3s user=postgres table=cdr ;SQL table where CDRs will be inserted ; Sample Asterisk config file for CDR logging to FreeTDS ;[global] ;hostname=fs.malico.loc ;port=1433 ;dbname=MalicoHN ;user=mangUsr ;password= ;charset=BIG5 [speex] ;0-10 quality => 3 ;0-10 complexity => 4 ; true / false enhancement => true ; true / false vad => false ; true / false vbr => false ; 0 = off, otherwise, target bitrate in bps abr => 0 ;0-10 vbr_quality => 5 ; true / false dtx => false [plc] ; for all codecs which do not support native PLC ; this determines whether to perform generic PLC ; there is a minor performance penalty for this genericplc => true [general] ;enable=yes ; enable creation of managed DNS lookups ; default is 'no' ;refreshinterval=1200 ; refresh managed DNS lookups every seconds ; default is 300 (5 minutes); ; DUNDi configuration file ; ; For more information about DUNDi, see http://www.dundi.com ; ; [general] ; ; The "general" section contains general parameters relating ; to the operation of the dundi client and server. ; ; The first part should be your complete contact information ; should someone else in your peer group need to contact you. ; ;department=Your Department ;organization=Your Company, Inc. ;locality=Your City ;stateprov=ST ;country=US ;email=your@email.com ;phone=+12565551212 ; ; ; Specify bind address and port number. Default is ; 4520 ; ;bindaddr=0.0.0.0 ;port=4520 ; ; Our entity identifier (Should generally be the MAC address of the ; machine it's running on. Defaults to the first eth address, but you ; can override it here, as long as you set it to the MAC of *something* ; you own!) ; ;entityid=00:07:E9:3B:76:60 ; ; Peers shall cache our query responses for the specified time, ; given in seconds. Default is 3600. ; ;cachetime=3600 ; ; This defines the max depth in which to search the DUNDi system. ; Note that the maximum time that we will wait for a response is ; (2000 + 200 * ttl) ms. ; ttl=32 ; ; If we don't get ACK to our DPDISCOVER within 2000ms, and autokill is set ; to yes, then we cancel the whole thing (that's enough time for one ; retransmission only). This is used to keep things from stalling for a long ; time for a host that is not available, but would be ill advised for bad ; connections. In addition to 'yes' or 'no' you can also specify a number ; of milliseconds. See 'qualify' for individual peers to turn on for just ; a specific peer. ; autokill=yes ; ; pbx_dundi creates a rotating key called "secret", under the family ; 'secretpath'. The default family is dundi (resulting in ; the key being held at dundi/secret). ; ;secretpath=dundi ; ; The 'storehistory' option (also changeable at runtime with ; 'dundi store history' and 'dundi no store history') will ; cause the DUNDi engine to keep track of the last several ; queries and the amount of time each query took to execute ; for the purpose of tracking slow nodes. This option is ; off by default due to performance impacts. ; ;storehistory=yes [mappings] ; ; The "mappings" section maps DUNDi contexts ; to contexts on the local asterisk system. Remember ; that numbers that are made available under the e164 ; DUNDi context are regulated by the DUNDi General Peering ; Agreement (GPA) if you are a member of the DUNDi E.164 ; Peering System. ; ; dundi_context => local_context,weight,tech,dest[,options]] ; ; 'dundi_context' is the name of the context being requested ; within the DUNDi request ; ; 'local_context' is the name of the context on the local system ; in which numbers can be looked up for which responses shall be given. ; ; 'weight' is the weight to use for the responses provided from this ; mapping. The number must be >= 0 and < 60000. Since it is totally ; valid to receive multiple reponses to a query, responses received ; with a lower weight are tried first. Note that the weight has a ; special meaning in the e164 context - see the GPA for more details. ; ; 'tech' is the technology to use (IAX, SIP, H323) ; ; 'dest' is the destination to supply for reaching that number. The ; following variables can be used in the destination string and will ; be automatically substituted: ; ${NUMBER}: The number being requested ; ${IPADDR}: The IP address to connect to ; ${SECRET}: The current rotating secret key to be used ; ; Further options may include: ; ; nounsolicited: No unsolicited calls of any type permitted via this ; route ; nocomunsolicit: No commercial unsolicited calls permitted via ; this route ; residential: This number is known to be a residence ; commercial: This number is known to be a business ; mobile: This number is known to be a mobile phone ; nocomunsolicit: No commercial unsolicited calls permitted via ; this route ; nopartial: Do not search for partial matches ; ; There *must* exist an entry in mappings for DUNDi to respond ; to any request, although it may be empty. ; ;e164 => dundi-e164-canonical,0,IAX2,dundi:${SECRET}@${IPADDR}/${NUMBER},nounsolicited,nocomunsolicit,nopartial ;e164 => dundi-e164-customers,100,IAX2,dundi:${SECRET}@${IPADDR}/${NUMBER},nounsolicited,nocomunsolicit,nopartial ;e164 => dundi-e164-via-pstn,400,IAX2,dundi:${SECRET}@${IPADDR}/${NUMBER},nounsolicited,nocomunsolicit,nopartial ;digexten => default,0,IAX2,guest@lappy/${NUMBER} ;asdf => ; ; ; The remaining sections represent the peers ; that we fundamentally trust. The section name ; represents the name and optionally at a specific ; DUNDi context if you want the trust to be established ; for only a specific DUNDi context. ; ; inkey - What key they will be authenticating to us with ; ; outkey - What key we use to authenticate to them ; ; host - What their host is ; ; order - What search order to use. May be 'primary', 'secondary', ; 'tertiary' or 'quartiary'. In large systems, it is beneficial ; to only query one up-stream host in order to maximize caching ; value. Adding one with primary and one with secondary gives you ; redundancy without sacraficing performance. ; ; include - Includes this peer when searching a particular context ; for lookup (set "all" to perform all lookups with that ; host. This is also the context in which peers are permitted ; to precache. ; ; noinclude - Disincludes this peer when searching a particular context ; for lookup (set "all" to perform no lookups with that ; host. ; ; permit - Permits this peer to search a given DUNDi context on ; the local system. Set "all" to permit this host to ; lookup all contexts. This is also a context for which ; we will create/forward PRECACHE commands. ; ; deny - Denies this peer to search a given DUNDi context on ; the local system. Set "all" to deny this host to ; lookup all contexts. ; ; model - inbound, outbound, or symmetric for whether we receive ; requests only, transmit requests only, or do both. ; ; precache - Utilize/Permit precaching with this peer (to pre ; cache means to provide an answer when no request ; was made and is used so that machines with few ; routes can push those routes up a to a higher level). ; outgoing means we send precache routes to this peer, ; incoming means we permit this peer to send us ; precache routes. symmetric means we do both. ; ; Note: You cannot mix symmetric/outbound model with symmetric/inbound ; precache, nor can you mix symmetric/inbound model with symmetric/outbound ; precache. ; ; ; The '*' peer is special and matches an unspecified entity ; ; ; Sample Primary e164 DUNDi peer ; ;[00:50:8B:F3:75:BB] ;model = symmetric ;host = 64.215.96.114 ;inkey = digium ;outkey = misery ;include = e164 ;permit = e164 ;qualify = yes ; ; Sample Secondary e164 DUNDi peer ; ;[00:A0:C9:96:92:84] ;model = symmetric ;host = misery.digium.com ;inkey = misery ;outkey = ourkey ;include = e164 ;permit = e164 ;qualify = yes ;order = secondary ; ; Sample "push mode" downstream host ; ;[00:0C:76:96:75:28] ;model = inbound ;host = dynamic ;precache = inbound ;inkey = littleguy ;outkey = ourkey ;include = e164 ; In this case used only for precaching ;permit = e164 ;qualify = yes ; ; Sample "push mode" upstream host ; ;[00:07:E9:3B:76:60] ;model = outbound ;precache = outbound ;host = 216.207.245.34 ;register = yes ;inkey = dhcp34 ;permit = all ; In this case used only for precaching ;include = all ;qualify = yes ;outkey=foo ;[*] ; ; ; ENUM Configuration for resolving phone numbers over DNS ; ; Sample config for Asterisk ; This file is reloaded at "reload enum" in the CLI ; [general] ; ; The search list for domains may be customized. Domains are searched ; in the order they are listed here. ; search => e164.arpa ; ; If you'd like to use the E.164.org public ENUM registery in addition ; to the official e164.arpa one, uncomment the following line ; ;search => e164.org ; ; As there are more H323 drivers available you have to select to which ; drive a H323 URI will map. Default is "H323". ; h323driver => H323 ; ; Static and realtime external configuration ; engine configuration ; ; Please read doc/README.extconfig for basic table ; formatting information. ; [settings] ; ; Static configuration files: ; ; file.conf => driver,database[,table] ; ; maps a particular configuration file to the given ; database driver, database and table (or uses the ; name of the file as the table if not specified) ; ;uncomment to load queues.conf via the odbc engine. ; ;queues.conf => odbc,asterisk,ast_config ; ; The following files CANNOT be loaded from Realtime storage: ; asterisk.conf ; extconfig.conf (this file) ; logger.conf ; ; Additionally, the following files cannot be loaded from ; Realtime storage unless the storage driver is loaded ; early using 'preload' statements in modules.conf: ; manager.conf ; cdr.conf ; rtp.conf ; ; ; Realtime configuration engine ; ; maps a particular family of realtime ; configuration to a given database driver, ; database and table (or uses the name of ; the family if the table is not specified ; ;example => odbc,asterisk,alttable ;iaxusers => odbc,asterisk ;iaxpeers => odbc,asterisk ;sipusers => odbc,asterisk ;sippeers => odbc,asterisk ;voicemail => odbc,asterisk ;extensions => odbc,asterisk ;queues => odbc,asterisk ;queue_members => odbc,asterisk [general] static=yes writeprotect=no ;autofallthrough=yes clearglobalvars=no languaje=es [globals] OPERADORA=501 GRUPOTODOS=SIP/sip500&SIP/sip501&SIP/sip502&SIP/sip503&SIP/sip553 GRUPOSOPORTE=SIP/sip500&SIP/sip501 GRUPOSOPORTE=SIP/sip500&SIP/sip501 ;CONSOLE=Console/dsp ; Console interface for demo CONSOLE=Zap/1 ;CONSOLE=Phone/phone0 :IAXINFO=guest ; IAXtel username/password ;IAXINFO=myuser:mypass TRUNK=Zap/1 ; Trunk interface SECONDTRUNK=Zap/2-1 ; Trunk interface TRUNKMSD=1 ; MSD digits to strip (usually 1 or 0) ;TRUNK=IAX2/user:pass@provider ; ; X - any digit from 0-9 ; Z - any digit from 1-9 ; N - any digit from 2-9 ; [1235-9] - any digit in the brackets (in this example, 1,2,3,5,6,7,8,9) ; . - wildcard, matches anything remaining (e.g. _9011. matches ; anything starting with 9011 excluding 9011 itself) ; ! - wildcard, causes the matching process to complete as soon as ; it can unambiguously determine that no other matches are possible ;[context] ;exten => someexten,priority[+offset][(alias)],application(arg1,arg2,...) ;exten => someexten,priority[+offset][(alias)],application,arg1|arg2... ; ; Timing list for includes is ; ;