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 -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016 http://www.asterisk.org/community/astricon-user-conference New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users