Records the incoming
Record duration in seconds.
- The recorded
voice is saved automatically in a file specified in the variable $RecordFile.
This variable is automatically initialized to a unique temporary filename
by IVR when a session is started, or to a user defined one.
Both Record and Play back will work simultaneously only on full-duplex voice cards. But when using half-duplex cards, play automatically stops when record begins and vice versa.
//The sample works only on full-duplex voice cards
$Recordfile = "Sample.wav"
while int(RecordTimeLeft()/1000) > 10
//10 more seconds to stop recording
//play beep to conclude the talk