Playback()
Synopsis
Play a file.
Description
Plays back given filenames (do not put extension of wav/alaw etc). The Playback application answers the channel if no options are specified. If the file is non-existent it will fail.
This application sets the following channel variable upon completion:
PLAYBACKSTATUS
- The status of the playback attempt as a text string.- SUCCESS
- FAILED
See Also: Background (application) – for playing sound files that are interruptible
WaitExten (application) – wait for digits from caller, optionally play music on hold
Syntax
Playback(filename&[filename2[&...]],[options])
Arguments
filenames
filename
filename2
[,filename2
...]
options
- Comma separated list of optionsskip
- Do not play if not answerednoanswer
- Playback without answering, otherwise the channel will be answered before the sound is played.say
- Play using the say.conf file.mix
- Play using a mix of filename and the say.conf file.
See Also
- Asterisk 20 Application_Background
- Asterisk 20 Application_WaitExten
- Asterisk 20 Application_ControlPlayback
- Asterisk 20 AGICommand_stream file
- Asterisk 20 AGICommand_control stream file
- Asterisk 20 ManagerAction_ControlPlayback
Import Version
This documentation was imported from Asterisk Version GIT-20-f8000daff5