<font color="#000066"><font size="2"><font face="tahoma,sans-serif">r you would have to convert that gsm to another format first like ogg<br></font></font></font><br><div class="gmail_quote">On 16 October 2010 18:23, Barry Miller <span dir="ltr"><<a href="mailto:asterisk-users@notanet.net">asterisk-users@notanet.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Sat, Oct 16, 2010 at 04:12:14PM +0530, RAJNIKANT VANZA wrote:<br>
> Hi Friends,<br>
><br>
> I need to find ".gsm" file length or duration.<br>
><br>
> *E.g.*<br>
> demo-congrats.gsm<br>
><br>
> sox demo-congrats.gsm -e stat<br>
><br>
> Above command is display file length in seconds. like as<br>
> Length (seconds): 27.960000<br>
><br>
> I want to ".gsm" file length or duration in dialplan.<br>
<br>
</div> Set(DUR=$[${STAT(s,/var/lib/asterisk/sounds/en/demo-congrats.gsm)} / 1650])<br>
Verbose(Length (seconds): ${DUR})<br>
<br>
for asterisk >= 1.6<br>
<br>
--<br>
Barry<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br>