Record File offset
Brought to you by:
masham
When recording a file, your function does not take an
offset. Asterisk supports it. I fixed my copy, but
thought you might like to add it. Here is the function. 2
lines changed.
function record_file($file, $format, $escape_digits='',
$timeout=-1, $beep=false, $silence=NULL, $offset=0)
{
$cmd = "RECORD FILE $file $format
\"$escape_digits\" $timeout";
if($offset>0) $cmd .= " $offset";
if($beep) $cmd .= ' BEEP';
if(!is_null($silence)) $cmd .= " s=$silence";
return $this->evaluate($cmd);
}
// these changed.
function record_file($file, $format, $escape_digits='',
$timeout=-1, $beep=false, $silence=NULL, $offset=0)
if($offset>0) $cmd .= " $offset";