<div>Hi Marry,<br></div><div><br></div><div>Thanks for help.</div><div><br></div><div>My requirement is fulfill to your suggested function.</div><div><br></div><div>Thanks for friends.</div><br><div class="gmail_quote">On Sat, Oct 16, 2010 at 11:39 PM, 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 06:46:20PM +0100, Tiago Geada wrote:<br>
> r you would have to convert that gsm to another format first like ogg<br>
<br>
</div>Why on earth would you have to do that? Did you even try doing what<br>
I suggested?<br>
<div><div class="h5"><br>
><br>
> On 16 October 2010 18:23, Barry Miller <<a href="mailto:asterisk-users@notanet.net">asterisk-users@notanet.net</a>> wrote:<br>
><br>
> > 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>
> > Set(DUR=$[${STAT(s,/var/lib/asterisk/sounds/en/demo-congrats.gsm)} /<br>
> > 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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Best Regards,<br><br>Rajnikant Vanza<br>