Steve, that looks just the job, thank you very much.<br><br><br><div class="gmail_quote">On Wed, Dec 8, 2010 at 2:32 AM, Steve Edwards <span dir="ltr"><<a href="http://asterisk.org">asterisk.org</a>@<a href="http://sedwards.com">sedwards.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On Tue, 7 Dec 2010, David Cunningham wrote:<br>
<br>
> Is it possible to somehow 'bookmark' a place in a sound file? That is,<br>
> the user presses a key while a sound file is playing and that point is<br>
> saved, and some time in the future we can play the same sound file and<br>
> tell it to start playing from that point.<br>
><br>
> This would be done within a perl AGI program.<br>
<br>
</div>The AGI command 'stream file' will return 'endpos' when interrupted with a<br>
keypress. You could then save that in a channel variable or a database.<br>
<br>
A subsequent call to 'stream file' would include 'endpos' as the 'sample<br>
offset.'<br>
<br>
--<br>
Thanks in advance,<br>
-------------------------------------------------------------------------<br>
Steve Edwards <a href="mailto:sedwards@sedwards.com">sedwards@sedwards.com</a> Voice: +1-760-468-3867 PST<br>
Newline Fax: +1-760-731-3000<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><br clear="all"><br>-- <br>David Cunningham, Voisonics<br><a href="http://voisonics.com/">http://voisonics.com/</a><br>US toll-free: +1 888 842 2720<br>UK: +44 (0) 20 3298 1642<br>Australia: +61 (0) 2 9037 2180<br>
<br>