[asterisk-users] length voicefile

Tim Panton thp at westhawk.co.uk
Wed May 28 03:45:12 CDT 2008


On 28 May 2008, at 08:21, Arjan Kroon | Mobillion wrote:

> Hi,
>
> Is there a way to get the length (in seconds) of a voicefile which  
> is record with the command Record()?

Well, if you know the format, you can do some maths on the length of  
the file.
RECORDED_FILE is set to the filename, so a exec'ing shell script  
should do the trick.

AGI seems to return the length of the recording in 'offset'

http://www.voip-info.org/wiki/view/record+file

But app_record seems not to.

Tim.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080528/7a1810b4/attachment.htm 


More information about the asterisk-users mailing list