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
  • Feedback & Rating feedback
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...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

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