Menu

#2 Record File offset

open
nobody
None
5
2005-03-15
2005-03-15
Anonymous
No

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";

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.