[asterisk-users] Say duration of alaw file?

Jonathan H lardconcepts at gmail.com
Tue Oct 18 09:26:38 CDT 2016


I can get the size of a ulaw file using STAT.
And I can get the duration in seconds by doing filesize/8000.

Your tea-break challenge is to help me find the shortest most
Asterisk-like way of saying:

"The following file is [<n> minutes and] <s> seconds long".

...without referring to external applications!

Yes, I'm aware of the math behind it, but I was hoping for a nice way
than a load of MATH and GoToIf statements :)

Thanks



More information about the asterisk-users mailing list