Sophie

Sophie

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

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>ParkAndAnnounce()</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-APP-B.html" title="Appendix B. Application Reference" /><link rel="prev" href="asterisk-APP-B-126.html" title="Park()" /><link rel="next" href="asterisk-APP-B-130.html" title="ParkedCall()" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">ParkAndAnnounce()</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="asterisk-APP-B-126.html">Prev</a> </td><th width="60%" align="center">Appendix B. Application Reference</th><td width="20%" align="right"> <a accesskey="n" href="asterisk-APP-B-130.html">Next</a></td></tr></table><hr /></div><div class="refentry" lang="en" xml:lang="en"><a id="asterisk-APP-B-128"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>ParkAndAnnounce() — Parks the current call and announces the call over the
      specified channel</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><a id="I_programlisting_tt2323"></a><pre class="programlisting">ParkAndAnnounce(<em class="replaceable"><code>template</code></em>,<em class="replaceable"><code>timeout</code></em>,<em class="replaceable"><code>channel</code></em>[,<em class="replaceable"><code>return</code></em>_<em class="replaceable"><code>context</code></em>])</pre></div><div class="refsect1" lang="en" xml:lang="en"><a id="id4191724"></a><h2></h2><p><a id="I_indexterm_tt2324" class="indexterm"></a>Parks the current call in the parking lot and announces
      the call over the specified <em class="replaceable"><code>channel</code></em>. The
      <em class="replaceable"><code>template</code></em> is a colon-separated list of files
      to announce; the word <code class="literal">PARKED</code> is
      replaced with the parking space number of the call. The
      <em class="replaceable"><code>timeout</code></em> argument is the time in seconds
      before the call returns to the
      <em class="replaceable"><code>return_context</code></em>. The
      <em class="replaceable"><code>channel</code></em> argument is the channel to call to
      make the announcement. <code class="literal">Console/dsp</code>
      calls the console. The <em class="replaceable"><code>return_context</code></em>
      argument is a <code class="literal">Goto()</code>-style label to
      jump the call back in to after timeout, which defaults to <code class="literal">n</code>+1 (where <code class="literal">n</code> is the current priority) in the
      <em class="replaceable"><code>return_context</code></em> context.</p><a id="I_programlisting_tt2325"></a><pre class="programlisting">include =&gt; parkedcalls
exten =&gt; 123,1,Answer()
<span class="strong"><strong>exten =&gt; 123,2,ParkAndAnnounce(vm-youhave:a:pbx-transfer:at:vm-extension:PARKED,120,
Console/dsp)</strong></span>
exten =&gt; 123,3,Playback(vm-nobodyavail)
exten =&gt; 123,4,Playback(vm-goodbye)
exten =&gt; 123,5,Hangup()</pre></div><div class="refsect1" lang="en" xml:lang="en"><a id="asterisk-APP-B-129"></a><h2>See Also</h2><p><a href="asterisk-APP-B-126.html" title="Park()"><span class="refentrytitle">Park()</span></a>, <a href="asterisk-APP-B-130.html" title="ParkedCall()"><span class="refentrytitle">ParkedCall()</span></a></p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="asterisk-APP-B-126.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="asterisk-APP-B.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="asterisk-APP-B-130.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Park() </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> ParkedCall()</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>