Extra Sounds

If you would like to download extra sound files for Asterisk, there is an archive of sounds on the Web located at http://downloads.asterisk.org/pub/telephony/sounds/. If you are not familiar with a command line Linux operating system, downloading files and extracting the data may be changing. In this lesson we will walk through the process of downloading […]

The Playback Application

The Playback() application can be used in the dial plan to play a sound or video file. The default sound files are stored in the /usr/share/asterisk/sounds directory. In the sounds directory there should be folders for the language package used by Asterisk. For example, English sounds will be located in the en or en_US directories. […]

Radio Switch

[code language=”html”] <!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title></title> <script> function check_value(onoff){ switch(onoff){ case "On": document.getElementById("myImage").src = "images/pic_bulbon.gif"; break; case "Off": document.getElementById("myImage").src = "images/pic_bulboff.gif"; break; } } </script> </head> <body> <img id="myImage" src="images/pic_bulboff.gif" style="width:100px"> <form method="post" action=""> <input type="radio" name="switch" value="On" onchange="check_value(‘On’)"> On<br> <input type="radio" name="switch" value="Off" onchange="check_value(‘Off’)" checked="checked"> Off<br> </form> </body> </html> […]

Call logs

Asterisk keeps track of call data records (cdr) in the /var/log/asterisk/cdr-csv/ directory. Inside the folder there will be a comma seperated file (csv) file named Master.csv. This file contains a lot of useful details of calls. Within the Master.csv file, each log of the call will record various fields. The fields are listed in the […]

Creating a dialplan for the users

Rather than using the existing extensions.conf file, a new file will be created in this lesson. Similar to moving the original sip.conf file in the previous section the extensions.conf will also be moved so that it may be reviewed at a later time. To move the extensions.conf file use the following command: sudo mv /etc/asterisk/extensions.conf […]

The extension config file

The configuration file /etc/asterisk/extensions.conf is often referred to as the “dial plan”. This configuration file controls the execution of phone operations and how the phone calls are routed. It also allows for programming to place conditions on the behavior of the system. The extensions.conf file should be organized by sections. Usually the first section is […]