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 :)


-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016

New to Asterisk? Start here:

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:

Reply via email to