You can save this file as, for example, /var/lib/asterisk/agi-bin/agitest.php and run it from the system command line independently of Asterisk and the AGI. $agi->text2wav("Hello world") // line B: uncomment for readback through the phoneĪny group 1 error will never make it to the phone but will dump visual information. Here is a basic template for this project:
![visual dialplan for asterisk visual dialplan for asterisk](https://www.apstel.com/site/wp-content/uploads/2013/11/04_quick_office-dial-in.png)
Visual dialplan for asterisk free#
We’ll build an example script for a callback test.įor testing I am using a free Zoiper softphone. Here’s how this application might be implemented with some audible debugging feedback. Sometimes your customer may be reluctant to try Linux as a base for the telephone system, so as part of the package you offer a callback test: the customer can call the PBX, which gathers some information and calls the customer back to reassure him that it is working correctly. Let’s take a specific example of a useful AGI application.
![visual dialplan for asterisk visual dialplan for asterisk](http://apstel.com/site/wp-content/uploads/2013/05/Gmail.png)
An alternative open source synthesizer is Java-based FreeTTS I use Festival because it ties in nicely with PHPAGI with the call to text2wav(). Festival is a remarkable free voice synthesis application developed by the University of Edinburgh, which you can use to “speak” debug information over the phone line. PHPAGI is an open source PHP class library that gives convenient access to the AGI. You can make the process of debugging a bit easier with the assistance of PHPAGI and Festival.
![visual dialplan for asterisk visual dialplan for asterisk](https://apstel.com/site/wp-content/uploads/2013/05/laptop-596x340.png)
It is fun since it can make a telephone dance, but frustrating because errors and debugging information can be difficult to catch since status information arrives on multiple channels: audible, Asterisk console, and STDERR. Programming the Asterisk open source PBX via the Asterisk Gateway Interface (AGI) is a fun but exasperating exercise for the telephony programmer.