Ensure that most install types and roles can be done from DVD-1 itself, and the minimal install ISO is only tested to deliver a minimal install set, when used as an ISO format ( either on cd or usb ). While other forms of installs ( eg. Pxe delivered ) might work from the minimal ISO, they are neither tested not supported. Sep 19, 2011 - There are two essential tools that converts MP3 file to an SLN file format. Following are the packages/tools tested on Centos linux with a brief description. Any dependencies needs to be installed prior on installing mpg123.
Option Value/Example Notes astetcdir /etc/asterisk The location where the Asterisk configuration files are stored. Astmoddir /usr/lib/asterisk/modules The location where loadable modules are stored. Astvarlibdir /var/lib/asterisk The base location for variable state information used by various parts of Asterisk. This includes items that are written out by Asterisk at runtime. Astdbdir /var/lib/asterisk Asterisk will store its internal database in this directory as a file called astdb. Astkeydir /var/lib/asterisk Asterisk will use a subdirectory called keys in this directory as the default location for loading keys for encryption. Astdatadir /var/lib/asterisk This is the base directory for system-provided data, such as the sound files that come with Asterisk.
Astagidir /var/lib/asterisk/ agi-bin Asterisk will use a subdirectory called agi-bin in this directory as the default location for loading AGI scripts. Astspooldir /var/spool/asterisk The Asterisk spool directory, where voicemail, call recordings, and the call origination spool are stored. Astrundir /var/run/asterisk The location where Asterisk will write out its UNIX control socket as well as its process ID (PID) file. Astlogdir /var/log/asterisk The directory where Asterisk will store its log files.
Option Value/Example Notes verbose 3 Sets the default verbose setting for the Asterisk logger. This value is also set by the -v command-line option.
The verbose level is 0 by default. Debug 3 Sets the default debug setting for the Asterisk logger. This value is also set by the -d command-line option.
The debug level is 0 by default. Alwaysfork yes Forking forces Asterisk to always run in the background. This option is set to no by default.
Nofork yes Forces Asterisk to always run in the foreground. This option is set to no by default. Quiet yes Quiet mode reduces the amount of output seen at the console when Asterisk is run in the foreground. This option is set to no by default.
Timestamp yes Adds timestamps to all output except output from a CLI command. This option is set to no by default. Execincludes yes Enables the use of #exec in Asterisk configuration files. This option is set to no by default. Console yes Runs Asterisk in console mode.
Asterisk will run in the foreground and will present a prompt for CLI commands. This option is set to no by default. Highpriority yes Runs the Asterisk application with real-time priority. This option is set to no by default. Initcrypto yes Loads keys from the astkeydir at startup. This option is set to no by default.
nocolor yes Suppresses color output from the Asterisk console. This is useful when saving console output to a file.
This option is set to no by default. Dontwarn yes Disables a few warning messages. This option was put in place to silence warnings that are generally correct, but may be considered to be so obvious that they become an annoyance.
This option is set to no by default. Dumpcore yes Tells Asterisk to generate a core dump in the case of a crash. This option is set to no by default. languageprefix yes Configures how the prompt language is used in building the path for a sound file.
By default, this is yes, which places the language before any subdirectories, such as en/digits/1.gsm. Setting this option to no causes Asterisk to behave as it did in previous versions, placing the language as the last directory in the path, (e.g. Internaltiming yes Uses a timing source to synchronize audio that will be sent out to a channel in cases such as file playback or music on hold. This option is set to yes by default and should be left that way; its usefulness has greatly diminished over the last few major versions of Asterisk. Systemname my system name Gives this instance of Asterisk a unique name. When this has been set, the system name will be used as part of the uniqueid field for channels.
This is incredibly useful if more than one system will be logging CDRs to the same database table. By default, this option is not set. Autosystemname yes Automatically sets the system name by using the hostname of the system. This option is set to no by default.
Maxcalls 100 Sets a maximum number of simultaneous inbound channels. No limit is set by default. Maxload 0.9 Sets a maximum load average.
If the load average is at or above this threshold, Asterisk will not accept new calls. No threshold is set by default. Maxfiles 1000 Set the maximum number of file descriptors that Asterisk is allowed to have open. The default limit imposed by the system is commonly 1024, which is not enough for heavily loaded systems. It is common to set this limit to a very high number. The default system-imposed limit is used by default.
Minmemfree 1 Sets the minimum number of megabytes of free memory required for Asterisk to continue accepting calls. If Asterisk detects that there is less free memory available than this threshold, new calls will not be accepted. This option is not set by default. Cacherecordfiles yes When doing recording, stores the file in the recordcachedir until recording is complete. Once complete, it will be moved into the originally specified destination. The default for this option is no.
Recordcachedir /tmp Sets the directory to be used when cacherecordfiles is set to yes. The default location is a directory called tmp within the astspooldir. Transmitsilence yes Transmits silence to the caller in cases where there is no other audio source. This includes call recording and the Wait family of dialplan applications, among other things. The default for this option is no. transcodeviasln yes When building a codec translation path, forces signed linear to be one of the steps in the path.
The default for this option is yes. Runuser asterisk Sets the system user that the Asterisk application should run as. This option is not set by default, meaning that the application will continue to run as the user that executed the application.
Rungroup asterisk Sets the system group that the Asterisk application should run as. This option is not set by default. Lightbackground yes When using colors in the Asterisk console, it will output colors that are compatible with a light-colored background. This option is set to no by default, in which case Asterisk uses colors that look best on a black background. Documentationlanguage enUS The built-in documentation for Asterisk applications, functions, and other things is included in an external XML document. This option specifies the preferred language for documentation. If it is not available, the default of enUS will be used.
Hideconnect yes Setting this option to yes causes Asterisk to not display notifications of remote console connections and disconnections at the Asterisk CLI. This is useful on systems where there are scripts that use remote consoles heavily. The default setting is no. Lockconfdir no When this option is enabled, the Asterisk configuration directory will be protected with a lock.
This helps protect against having more than one application attempting to write to the same file at the same time. The default value is no. Option Value/Example Notes pbxrealtime 1.6 In versions earlier than Asterisk 1.6. X, the pbxrealtime module would automatically convert pipe characters into commas for arguments to Asterisk applications. This is no longer done by default. To enable this previous behavior, set this option to 1.4. Resagi 1.6 In versions earlier than Asterisk 1.6.
X, the EXEC AGI command would automatically convert pipe characters into commas for arguments to Asterisk applications. This is no longer done by default. To enable this previous behavior, set this option to 1.4. Appset 1.6 Starting with the Asterisk 1.6. X releases, the Set application only allows setting the value of a single variable.
Previously, Set would allow setting more than one variable by separating them with a &. This was done to allow any characters in the value of a variable, including the & character, which was previously used as a separator.
MSet is a new application that behaves like Set used to. However, setting this option to 1.4 makes Set behave like MSet.
Modules.conf This file is not strictly required in an Asterisk installation; however, without any modules Asterisk won’t really be able to do anything, so for all practical purposes, you need a modules.conf file in your /etc/asterisk folder. If you simply define autoload=yes in your modules.conf file, Asterisk will search for all modules in the /usr/lib/asterisk/modules folder and load them at startup. Although most modules do not use much in the way of resources, and they all load very quickly, it just seems cleaner to our minds to load only those modules that you are planning on using in your system.
Additionally, there are security benefits to not loading modules that accept connections over a network. In the past we felt that explicitly loading each desired module was the best way to handle this, but we have since found that this practice creates extra work. After every upgrade we found ourselves having to edit the modules.conf file to correct all the module differences between releases, and the whole process ended up being needlessly complicated. What we prefer to do these days is to allow Asterisk to automatically load the modules that it finds, but to explicitly tell Asterisk not to load any modules we do not want loaded by use of the noload directive. A sample modules.conf file can be found in.
Using menuselect to Control Which Modules Are Compiled and Installed One other way that you can control which modules Asterisk loads is to simply not compile and install them in the first place. During the Asterisk installation process, the make menuselect command provides you with a menu interface that allows you to specify many different directives to the compiler, including which modules to compile and install. If you never compile and install a module, the effect of this at load time is that it won’t exist, and therefore won’t be loaded. If you are new to Linux and Asterisk, this may create confusion for you if you later want to use a module and discover that it doesn’t exist on your system. More information about menuselect is available in. Option Value/Example Notes autoload yes Instead of explicitly listing which modules to load, you can use this directive to tell Asterisk to load all modules that it finds in the modules directory, with the exception of modules listed as not to be loaded using the noload directive.
The default, and our recommendation, is to set this option to yes. Preload resodbc.so Indicates that a module should be loaded at the beginning of the module load order. This directive is much less relevant than it used to be; modules now have a load priority built into them that solves the problems that this directive was previously used to solve. Load chansip.so Defines a module that should be loaded. This directive is only relevant if autoload is set to no. Noload chanalsa.so Defines a module that should not be loaded. This directive is only relevant if autoload is set to yes.
Require chansip.so Does the same thing as load; additionally, Asterisk will exit if this module fails to load for some reason. Preload-require resodbc.so Does the same thing as preload; additionally, Asterisk will exit if this module fails to load for some reason. Indications.conf The sounds that people expect from the telephone network vary in different parts of the world. Different countries or regions present different sounds for events such as dialtone, busy signal, ringback, congestion, and so forth.
The indications.conf file defines the parameters for the various sounds that a telephone system might be expected to produce, and allows you to customize them. In the early days of Asterisk this file only contained sounds for a limited number of countries, but it is now quite comprehensive. To assign the tones common for your region to channels, you can simply assign the tonezone using the CHANNEL function, and that tonezone will apply for the duration of the call (unless changed later): Set(CHANNEL(tonezone)=yourcountry); i.e., uk, de, etc.
However, since signaling from a call could come from various places (from the carrier, from Asterisk, or even from the set itself), you should note that simply setting the tonezone in your dialplan does not guarantee that those tones will be presented in all situations. Hacking indications.conf for Fun and Profit If you have too much time on your hands, you can do all sorts of pointless but entertaining things with your indications. For example, fans of Star Wars can make the following change to the end of their indications.conf files: starwars(us) description = Star Wars Theme Song ring = 262/400,392/500,0/100,349/400,330/400,294/400,524/400,392/500,0/100,349/400, 330/400,294/400,524/400,392/500,0/100,349/400,330/400,349/400,294/500,0/2000 If you then use the country named ' starwars' in your configuration files or dialplan, any ringing you pass back will sound quite different from the standard ring you are used to. Try the following dialplan code to test out your new ringing sound: exten = 500,1,Answer same = n,Set(CHANNEL(tonezone)=starwars) same = n,Dial(SIP/0000FFFF0002); or whatever your channel is named in sip.conf. Note Depending on the type of device used to call into this example, you may wonder if it will actually work. SIP phones, for example, typically generate their own tones instead of having Asterisk generate them. This example was carefully crafted to ensure that Asterisk will generate a ringback tone to the caller.
The key is the Answer that is executed first. Later, when an outbound call is made to another device, the only method Asterisk has available to pass back a ringing indication to the caller is by generating inband audio, since as far as the caller’s phone is concerned, this call has already been answered. While Asterisk will run without an indications.conf file, it is strongly recommended that you include one: copy the sample over from /src/asterisk-complete/1.8/configs/indications.conf.sample, modify the country parameter in the general section to match your region, and restart Asterisk. Musiconhold.conf If you plan on selling Asterisk-based telephone systems and you do not change the default music on hold that ships with Asterisk, you are sending the message, loud and clear, that you don’t really know what you are doing.
Part of the problem with music on hold is that while in the past it was common to just plug a radio or CD player into the phone system, the legal reality is that most music licenses do not actually allow you to do this. That’s right: if you want to play music on hold, somebody, somewhere, typically wants you to pay them for the privilege. So how to deal with this? There are two legal ways: 1) pay for a music on hold license from the copyright holder, or 2) find a source of music that is released under a license suitable for Asterisk. We’re not here to give you legal advice; you are responsible for understanding what is required of you in order to use a particular piece of music as your music on hold source. What we will do, however, is show you how to take the music you have and make it work with Asterisk. Converting Music to a Format That Works Best with Asterisk It’s quite common to have music in MP3 format these days.
While Asterisk can use MP3s as a music source, this method is not at all ideal. MP3s are heavily compressed, and in order to play them the CPU has to do some serious work to decompress them in real time. This is fine when you are only playing one song and want to save space on your iPod, but for music on hold, the proper thing to do is convert the MP3 to a format that is easier on the CPU.
CentOS Prerequisite Since CentOS does not have MP3 capability installed with sox, you will have to install mpg123 before you can convert MP3 files for use with Asterisk. First you will need to install the rpmforge repository. To find out which version you need, open your web browser and go to. Select the text for the version/architecture you want to install and paste it into your shell: $ rpm -Uhv You need to make sure this new repository is used correctly, so run the following: $ yum install yum-priorities (If you want to know more about yum priorities, see this site:.) Once the repository has been added, you can proceed to get mpg123: $ yum install mpg123 Once that’s done, your CentOS system is ready to convert MP3 files for use with Asterisk.
If you are familiar with the file formats and have some experience working with audio engineering software such as Audacity, you can convert the files on your PC and upload them to Asterisk. We find it is simpler to upload the source MP3 files to the Asterisk server (say, to the /tmp folder), and then convert them from the command line. To convert your MP3 files to a format that Asterisk understands, you need to run the commands outlined here (in this example we are using a file named SilentCity.mp3).