Record()
Record(Basisname
[.Format
[,Stille
[,maxDauer
[,Optionen
]]]])
Basisname.Format
. Existiert diese Datei bereits, wird sie
überschrieben.format
g723
, g729
, gsm
,
h263
, ulaw
, alaw
,
wav
, ...).Stille
maxDauer
Optionen
s
n
a
t
*
an Stelle der standardmäßig eingestellten
#
-Taste.q
x
#
oder
*
als DTMF-Töne aufzeichnen. Die Aufnahme kann
dann nur durch Timeout von maxDauer
oder durch
Auflegen beendet werden.Basisname
die Zeichenkette
%d
, wird diese durch eine Nummerierung ersetzt, die bei jedem
erneuten Aufnehmen der Datei um 1 erhöht wird.#
benutzen, um die
Aufnahme abzubrechen und zur nächsten Priorität überzugehen. Beim Auflegen
wird die Aufnahme verworfen.; den Namen des Anrufers aufzeichnen: exten => 123,1,Playback(bitte-sprechen-sie-ihren-namen-nach-dem-ton) exten => 123,n,Record(/tmp/name.gsm,3,10) exten => 123,n,Playback(/tmp/name)
Monitor()
.————————| 1.2 |————————| 1.4 |————————| 1.6 |————————
-= Info about application 'Record' =-
[Synopsis]
Record to a file
[Description]
Record(filename.format|silence[|maxduration][|options])
Records from the channel into a given filename. If the file exists it will
be overwritten.
- 'format' is the format of the file type to be recorded (wav, gsm, etc).
- 'silence' is the number of seconds of silence to allow before returning.
- 'maxduration' is the maximum recording duration in seconds. If missing
or 0 there is no maximum.
- 'options' may contain any of the following letters:
'a' : append to existing recording rather than replacing
'n' : do not answer, but record anyway if line not yet answered
'q' : quiet (do not play a beep tone)
's' : skip recording if the line is not yet answered
't' : use alternate '*' terminator key (DTMF) instead of default '#'
'x' : ignore all terminator keys (DTMF) and keep recording until hangup
If filename contains '%%%%d', these characters will be replaced with a number
incremented by one each time the file is recorded. A channel variable
named RECORDED_FILE will also be set, which contains the final filemname.
Use 'core show file formats' to see the available formats on your system
User can press '#' to terminate the recording and continue to the next priority.
If the user should hangup during a recording, all data will be lost and the
application will teminate.
--- in Asterisk 1.2
+++ in Asterisk 1.4
@@ -17,13 +17,14 @@
'n' : do not answer, but record anyway if line not yet answered
'q' : quiet (do not play a beep tone)
's' : skip recording if the line is not yet answered
- 't' : use alternate '*' terminator key instead of default '#'
+ 't' : use alternate '*' terminator key (DTMF) instead of default '#'
+ 'x' : ignore all terminator keys (DTMF) and keep recording until hangup
If filename contains '%%%%d', these characters will be replaced with a number
incremented by one each time the file is recorded. A channel variable
named RECORDED_FILE will also be set, which contains the final filemname.
- Use 'show file formats' to see the available formats on your system
+ Use 'core show file formats' to see the available formats on your system
User can press '#' to terminate the recording and continue to the next priority.
--- in Asterisk 1.4
+++ in Asterisk 1.6
@@ -4,7 +4,7 @@
Record to a file
[Description]
- Record(filename.format|silence[|maxduration][|options])
+ Record(filename.format,silence[,maxduration][,options])
Records from the channel into a given filename. If the file exists it will
be overwritten.