Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Elastix Unified Communications Server Cookbook
  • Table Of Contents Toc
Elastix Unified Communications Server Cookbook

Elastix Unified Communications Server Cookbook

By : Gerardo Barajas Puente
5 (3)
close
close
Elastix Unified Communications Server Cookbook

Elastix Unified Communications Server Cookbook

5 (3)
By: Gerardo Barajas Puente

Overview of this book

This book is aimed at those who want to learn how to set up an Elastix Unified Communications Server without losing ground on Unified Communications and Voice over IP.
Table of Contents (19 chapters)
close
close
13
A. Description and Use of the Most Well-known FreePBX Modules
14
B. Addon Market Module
15
C. Asterisk Essential Commands
16
D. Asterisk Gateway Interface Programming
17
E. Helpful Linux Commands
18
Index

Creating an advanced IVR using Asterisk AGI and Asterisk's Dialplan

This recipe will allow us to create an IVR that will store the code or digits entered by the user in a database. Then, the program will display these digits. For the purposes of this section, we will use SQLite3 as the database engine.

How to do it…

  1. Create a database using the following commands in the Linux console:
    cd /var/www/db
    sqlite3 ivr.db
    
  2. Create a table while in the SQLite3 console with the following command:
    CREATE TABLE ivr-data (callerid INT NOT NULL, data INT NOT NULL);
    
  3. To quit the console, type .quit.
  4. Set the proper execution rights and ownership to the database with the following commands: chown asterisk:asterisk ivr.db.
  5. Add the proper recordings using the Recordings module.
  6. Create the ivr.php file in the /var/lib/asterisk/agi-bin/ folder with the following content:
    #!/usr/bin/php -q
    <?php
    
    set_time_limit(60);
    ob_implicit_flush(false);
    error_reporting(0);
    $stdin = fopen( 'php://stdin', &apos...
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Elastix Unified Communications Server Cookbook
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon