Sophie

Sophie

distrib > Mandriva > 2008.1 > i586 > media > contrib-updates > by-pkgid > c7095aefea7b97fbd2a596dcbfb9d481 > files > 455

asterisk-docs-1.4.26.1-1mdv2008.1.i586.rpm

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Chapter 5. Dialplan Basics</title><link rel="stylesheet" href="styles.css" type="text/css" /><meta name="generator" content="DocBook XSL Stylesheets V1.69.1" /><link rel="start" href="index.html" title="Asterisk™: The Future of Telephony" /><link rel="up" href="index.html" title="Asterisk™: The Future of Telephony" /><link rel="prev" href="asterisk-CHP-4-SECT-11.html" title="Conclusion" /><link rel="next" href="asterisk-CHP-5-SECT-1.html" title="Dialplan Syntax" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 5. Dialplan Basics</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="asterisk-CHP-4-SECT-11.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="asterisk-CHP-5-SECT-1.html">Next</a></td></tr></table><hr /></div><div class="chapter" lang="en" xml:lang="en"><div class="titlepage"><div><div><h2 class="title"><a id="asterisk-CHP-5"></a>Chapter 5. Dialplan Basics</h2></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="asterisk-CHP-5-SECT-1.html">Dialplan Syntax</a></span></dt><dd><dl><dt><span class="sect2"><a href="asterisk-CHP-5-SECT-1.html#asterisk-CHP-5-SECT-1.1">Contexts</a></span></dt><dt><span class="sect2"><a href="asterisk-CHP-5-SECT-1.html#asterisk-CHP-5-SECT-1.2">Extensions</a></span></dt><dt><span class="sect2"><a href="asterisk-CHP-5-SECT-1.html#asterisk-CHP-5-SECT-1.3">Priorities</a></span></dt><dd><dl><dt><span class="sect3"><a href="asterisk-CHP-5-SECT-1.html#id4124821">Unnumbered priorities</a></span></dt><dt><span class="sect3"><a href="asterisk-CHP-5-SECT-1.html#id4124952">Priority labels</a></span></dt></dl></dd><dt><span class="sect2"><a href="asterisk-CHP-5-SECT-1.html#asterisk-CHP-5-SECT-1.4">Applications</a></span></dt></dl></dd><dt><span class="sect1"><a href="asterisk-CHP-5-SECT-2.html">A Simple Dialplan</a></span></dt><dd><dl><dt><span class="sect2"><a href="asterisk-CHP-5-SECT-2.html#id4125280">The s Extension</a></span></dt><dt><span class="sect2"><a href="asterisk-CHP-5-SECT-2.html#asterisk-CHP-5-SECT-2.2">The Answer(), Playback(), and Hangup() Applications</a></span></dt><dt><span class="sect2"><a href="asterisk-CHP-5-SECT-2.html#asterisk-CHP-5-SECT-2.3">Our First Dialplan</a></span></dt></dl></dd><dt><span class="sect1"><a href="asterisk-CHP-5-SECT-3.html">Building an Interactive Dialplan</a></span></dt><dd><dl><dt><span class="sect2"><a href="asterisk-CHP-5-SECT-3.html#asterisk-CHP-5-SECT-3.1">The Background(), WaitExten(), and Goto() Applications</a></span></dt><dt><span class="sect2"><a href="asterisk-CHP-5-SECT-3.html#asterisk-CHP-5-SECT-3.2">Handling Invalid Entries and Timeouts</a></span></dt><dt><span class="sect2"><a href="asterisk-CHP-5-SECT-3.html#asterisk-CHP-5-SECT-3.3">Using the Dial() Application</a></span></dt><dt><span class="sect2"><a href="asterisk-CHP-5-SECT-3.html#asterisk-CHP-5-SECT-3.4">Adding a Context for Internal Calls</a></span></dt><dt><span class="sect2"><a href="asterisk-CHP-5-SECT-3.html#asterisk-CHP-5-SECT-3.5">Using Variables</a></span></dt><dd><dl><dt><span class="sect3"><a href="asterisk-CHP-5-SECT-3.html#asterisk-CHP-5-SECT-3.5.1">Global variables</a></span></dt><dt><span class="sect3"><a href="asterisk-CHP-5-SECT-3.html#asterisk-CHP-5-SECT-3.5.2">Channel variables</a></span></dt><dt><span class="sect3"><a href="asterisk-CHP-5-SECT-3.html#asterisk-CHP-5-SECT-3.5.3">Environment variables</a></span></dt><dt><span class="sect3"><a href="asterisk-CHP-5-SECT-3.html#asterisk-CHP-5-SECT-3.5.4">Adding variables to our dialplan</a></span></dt></dl></dd><dt><span class="sect2"><a href="asterisk-CHP-5-SECT-3.html#asterisk-CHP-5-SECT-3.6">Pattern Matching</a></span></dt><dd><dl><dt><span class="sect3"><a href="asterisk-CHP-5-SECT-3.html#asterisk-CHP-5-SECT-3.6.1">Pattern-matching syntax</a></span></dt><dt><span class="sect3"><a href="asterisk-CHP-5-SECT-3.html#asterisk-CHP-5-SECT-3.6.2">Pattern-matching examples</a></span></dt><dt><span class="sect3"><a href="asterisk-CHP-5-SECT-3.html#asterisk-CHP-5-SECT-3.6.3">Using the ${EXTEN} channel variable</a></span></dt></dl></dd><dt><span class="sect2"><a href="asterisk-CHP-5-SECT-3.html#asterisk-CHP-5-SECT-3.7">Enabling Outbound Dialing</a></span></dt><dt><span class="sect2"><a href="asterisk-CHP-5-SECT-3.html#asterisk-CHP-5-SECT-3.8">Includes</a></span></dt></dl></dd><dt><span class="sect1"><a href="asterisk-CHP-5-SECT-4.html">Conclusion</a></span></dt></dl></div><div class="epigraph"><p>Everything should be made as simple as possible, but not
    simpler.</p><div class="attribution"><span>--<span class="attribution">Albert Einstein (1879–1955)</span></span></div></div><p>The dialplan<a id="ch05_dialplan" class="indexterm"></a> is truly the heart of any Asterisk system, as it defines how
  Asterisk handles inbound and outbound calls. In a nutshell, it consists of a
  list of instructions or steps that Asterisk will follow. Unlike traditional
  phone systems, Asterisk’s dialplan is fully customizable. To successfully
  set up your own Asterisk system, you will need to understand the
  dialplan.</p><p>If you have attempted to read some sample dialplans and found them
  overwhelming, or if you’ve tried to write an Asterisk dialplan and had no
  success, help is at hand. This chapter explains how dialplans work in a
  step-by-step manner and teaches the skills necessary to create your own. The
  examples have been designed to build upon one another, so feel free to go
  back and reread a section if something doesn’t quite make sense. Please also
  note that this chapter is by no means an exhaustive survey of all the
  possible things dialplans can do; our aim is to cover just the fundamentals.
  We’ll cover more advanced dialplan topics in later chapters.</p></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="asterisk-CHP-4-SECT-11.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="asterisk-CHP-5-SECT-1.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Conclusion </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Dialplan Syntax</td></tr></table></div><div xmlns="" id="svn-footer"><hr /><p>You are reading <em>Asterisk: The Future of Telephony</em> (2nd Edition for Asterisk 1.4), by Jim van Meggelen, Jared Smith, and Leif Madsen.<br />
       This work is licensed under the <a href="http://creativecommons.org/licenses/by-nc-nd/3.0/">Creative Commons Attribution-Noncommercial-No Derivative Works License v3.0</a>.<br />
       To submit comments, corrections, or other contributions to the text, please visit <a href="http://oreilly.com/catalog/9780596510480/">http://www.oreilly.com/</a>.</p></div></body></html>