O'Reilly logo

Elastix Unified Communications Server Cookbook by Gerardo Barajas Puente

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a phone poll using Elastix

The following example is an AGI script that asks for a code when the user dials in. This code is used to query a database called balance. After the user enters the code, the balance is reproduced. If the user wants to send this data to a call center to get registered for special offers for instance, he/she will be asked to enter the phone number for calling back when any special offer becomes available. When this information is entered, an e-mail will be dispatched to the call center supervisor in order to book a call to the user whenever a special offer may apply.

How to do it…

  1. The first step to take is to create a database and a table with the following structure in MySQL Database Engine:
    CREATE TABLE balance( ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required