Sophie

Sophie

distrib > Mandriva > 2008.1 > i586 > by-pkgid > c7095aefea7b97fbd2a596dcbfb9d481 > files > 502

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>Setting Up the Dialplan for Some Test Calls</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="asterisk-CHP-4.html" title="Chapter 4. Initial Configuration of Asterisk" /><link rel="prev" href="asterisk-CHP-4-SECT-2.html" title="Working with Interface Configuration Files" /><link rel="next" href="asterisk-CHP-4-SECT-4.html" title="FXO and FXS Channels" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Setting Up the Dialplan for Some Test Calls</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="asterisk-CHP-4-SECT-2.html">Prev</a> </td><th width="60%" align="center">Chapter 4. Initial Configuration of Asterisk</th><td width="20%" align="right"> <a accesskey="n" href="asterisk-CHP-4-SECT-4.html">Next</a></td></tr></table><hr /></div><div class="sect1" lang="en" xml:lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="setting_up_dialplan"></a>Setting Up the Dialplan for Some Test Calls</h2></div></div></div><p>Now let’s expand<a id="I_indexterm4_tt447" class="indexterm"></a> upon the test dialplan we started in the previous section,
    allowing us to dial back into the softphone<a id="I_indexterm4_tt448" class="indexterm"></a> after we have configured it and to use a dialplan
    application called <code class="literal">Echo()</code> <a id="I_indexterm4_tt449" class="indexterm"></a>that will allow us to test bidirectional audio. We’ll learn
    more about dialplans in Chapter 5, so for now, just add the italicized
    bits to your existing <code class="filename">extensions.conf</code>
    file. We’ll be making use of this dialplan throughout the chapter, and
    expanding on it in certain sections. Once you’ve entered the text into
    <span class="emphasis"><em>extensions.conf</em></span>, reload the dialplan by running
    <code class="literal">dialplan reload</code> from the Asterisk console:</p><p>
        <a id="I_programlisting4_tt450"></a></p><pre class="programlisting">[globals]

[general]

[default]
<span class="emphasis"><em>exten =&gt; s,1,Verbose(1|Unrouted call handler)
exten =&gt; s,n,Answer()
exten =&gt; s,n,Wait(1)
exten =&gt; s,n,Playback(tt-weasels)
exten =&gt; s,n,Hangup()</em></span>

[incoming_calls]

[internal]
<span class="emphasis"><em>exten =&gt; 500,1,Verbose(1|Echo test application)
exten =&gt; 500,n,Echo()
exten =&gt; 500,n,Hangup()</em></span>

[phones]
include =&gt; internal
</pre><p>
      </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-2.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="asterisk-CHP-4.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="asterisk-CHP-4-SECT-4.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Working with Interface Configuration Files </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> FXO and FXS Channels</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>