Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

<h1>Playback()</h1>

<h3>Synopsis</h3>

<p>Play a file.</p>

<h3>Description</h3>

<p>Plays back given filenames (do not put extension of wav/alaw etc). The playback command answer the channel if no options are specified. If the file is non-existant it will fail</p>

<p>This application sets the following channel variable upon completion:</p>

<ul>
<li><code>PLAYBACKSTATUS</code> - The status of the playback attempt as a text string.
<ul>
<li>SUCCESS</li>
<li>FAILED<br/>
See Also: Background (application) – for playing sound files that are interruptible</li>
</ul>
</li>
</ul>

<p>WaitExten (application) – wait for digits from caller, optionally play music on hold</p>

<h3>Syntax</h3>

<ac:macro ac:name="noformat"><ac:plain-text-body><![CDATA[Playback(filename&filename2&...,options)]]></ac:plain-text-body></ac:macro>

<h5>Arguments</h5>

<ul>
<li><code>filenames</code>
<ul>
<li><code>filename</code></li>
<li><code>filename2</code></li>
</ul>
</li>
<li><code>options</code> - Comma separated list of options
<ul>
<li><code>skip</code> - Do not play if not answered</li>
<li><code>noanswer</code> - Playback without answering, otherwise the channel will be answered before the sound is played.</li>
</ul>
</li>
</ul>

<h3>Import Version</h3>

<p>This documentation was imported from Asterisk Version SVN-branch-11-r386286</p>

  • No labels