The Hitchhiker's Guide to Asterisk | ||
---|---|---|
<<< Previous | Next >>> |
Beyond the base install and drivers, Asterisk contains many additional modules which are not compiled by default. This is to help simplify the installation of Asterisk and not to cause the system to be bloated with extra code that a user may not have a use for.
[This is just a rough introduction, however we should expand upon it. Mention things that your system already needs to have running, what extra software or hardware you need for this to work, and any other issues that should be mentioned briefly before we get in too deep]
[Not sure what the difference is between McNamara and Manousos, but either way lets try and be as detailed as possible]
[Lets explain that MySQL support has not been removed from Asterisk but that it has been moved to a different section of CVS due to licensing issues. This might be a good section to explain them a little bit. Instructions should include how to get MySQL support put back into Asterisk plus how to setup any CDR recording as opposed to simply using CSV. Tell them how to compile, what they will need, and common problems people face when trying to get this to work. We may be able to mention about adding extensions and dialplans and other configuration files into MySQL, but maybe that should be a little bit later on, either in the cookbook, or in some advanced configuration sections. This chapter is for installation, and not configuration.]
[We should give some introduction and clean this up a bit so it flows better in our book here]
The complete source code is available from Kapejod's website
http://www.junghanns.net/asterisk/downloads/chan_capi.0.3.0.tar.gz
Copy the sources to a folder of your choice and type the following commands to untar the source and change into its directory tree.
tar zxf chan_capi.0.3.0.tar.gz
cd chan_capi-0.3.0/
Now edit the file Makefile with your favorite editor to set it to your needs. First set the path to your asterisk include files.
"ASTERISK_HEADER_DIR=/usr/include/asterisk # standard path"
Then you can set some build time configuration parameters like early B3 connects, DEFLECT_ON_CIRCUITBUSY or software DTMF detection/generation. If everything is done simply save the file.
To compile and install the driver type:
make && make install
To install a sample capi.conf in asterisks conf dir:
make config
After this setup add in /etc/asterisk/modules.conf
load => chan_capi.so
and in the [global] section:
"chan_capi.so=yes"
After these steps your channel module is available in Asterisk but it has to be configured. This is done in the main CAPI configuration file capi.conf.
<<< Previous | Home | Next >>> |
ISDN Cards | Glossary of Asterisk & Telecom Terms |