Playback()
Playback(Dateiname
[,Optionen
])
Dateiname
(aus dem
Verzeichnis /var/lib/asterisk/sounds/
) vor. Der
Dateiname enthält keine Dateiendung, damit Asterisk automatisch die
Audiodatei mit dem niedrigsten Konvertierungsaufwand auswählen kann.
Keine, eine oder mehr Optionen können hinzugefügt werden.skip
bewirkt, dass die Wiedergabe der
Nachricht übersprungen wird, wenn sich der Channel nicht im Up-Status
befindet.noanswer
ist angegeben.
(Nicht alle Kanäle unterstützen die Wiedergabe von Nachrichten, wenn sie
noch aufgelegt sind.)exten => 123,1,Answer() exten => 123,n,Playback(tt-weasels)
————————| 1.2 |————————| 1.4 |————————| 1.6 |————————
-= Info about application 'Playback' =-
[Synopsis]
Play a file
[Description]
Playback(filename[&filename2...][|option]): Plays back given filenames (do not put
extension). Options may also be included following a pipe symbol. The 'skip'
option causes the playback of the message to be skipped if the channel
is not in the 'up' state (i.e. it hasn't been answered yet). If 'skip' is
specified, the application will return immediately should the channel not be
off hook. Otherwise, unless 'noanswer' is specified, the channel will
be answered before the sound is played. Not all channels support playing
messages while still on hook. If 'j' is specified, the application
will jump to priority n+101 if present when a file specified to be played
does not exist.
This application sets the following channel variable upon completion:
PLAYBACKSTATUS The status of the playback attempt as a text string, one of
SUCCESS | FAILED
See Also: Background (application) -- for playing soundfiles that are interruptible
WaitExten (application) -- wait for digits from caller, optionally play music on hold
--- in Asterisk 1.2
+++ in Asterisk 1.4
@@ -17,3 +17,5 @@
This application sets the following channel variable upon completion:
PLAYBACKSTATUS The status of the playback attempt as a text string, one of
SUCCESS | FAILED
+ See Also: Background (application) -- for playing soundfiles that are interruptible
+ WaitExten (application) -- wait for digits from caller, optionally play music on hold
--- in Asterisk 1.4
+++ in Asterisk 1.6
@@ -4,16 +4,14 @@
Play a file
[Description]
- Playback(filename[&filename2...][|option]): Plays back given filenames (do not put
- extension). Options may also be included following a pipe symbol. The 'skip'
- option causes the playback of the message to be skipped if the channel
+ Playback(filename[&filename2...][,option]): Plays back given filenames (do not put
+ extension). Options may also be included following a comma.
+ The 'skip' option causes the playback of the message to be skipped if the channel
is not in the 'up' state (i.e. it hasn't been answered yet). If 'skip' is
specified, the application will return immediately should the channel not be
off hook. Otherwise, unless 'noanswer' is specified, the channel will
be answered before the sound is played. Not all channels support playing
- messages while still on hook. If 'j' is specified, the application
- will jump to priority n+101 if present when a file specified to be played
- does not exist.
+ messages while still on hook.
This application sets the following channel variable upon completion:
PLAYBACKSTATUS The status of the playback attempt as a text string, one of
SUCCESS | FAILED
Background()
“