5. Dialplan Programming

In Asterisk, functions or programs can be implemented either externally, through an Asterisk Gateway Interface (AGI) script (in much the same way that a Common Gateway Interface [CGI] script can add functionality to a web page) or internally, through functions and applications in the dialplan. This chapter focuses strictly on the internal functions; AGI is treated in depth in a separate chapter.

The dialplan is defined in the extensions.conf configuration file. The dialplan itself looks much like a BASIC program. The administrator can implement features and call flow using a simple scripting language.

5.1 Programming “How-To”

Whatever your experience level with Asterisk (whether you’re an administrator, programmer, telephone ...

Get Practical Asterisk 1.4 and 1.6: From Beginner to Expert now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.