David Cunningham
2010-Dec-07 09:42 UTC
[asterisk-users] 'Bookmarking' a place in a sound file
Hi all, Is it possible to somehow 'bookmark' a place in a sound file? That is, the user presses a key while a sound file is playing and that point is saved, and some time in the future we can play the same sound file and tell it to start playing from that point. This would be done within a perl AGI program. Thanks for any advice! -- David Cunningham, Voisonics http://voisonics.com/ US toll-free: +1 888 842 2720 UK: +44 (0) 20 3298 1642 Australia: +61 (0) 2 9037 2180 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101207/630f3f63/attachment.htm
Steve Edwards
2010-Dec-07 15:32 UTC
[asterisk-users] 'Bookmarking' a place in a sound file
On Tue, 7 Dec 2010, David Cunningham wrote:> Is it possible to somehow 'bookmark' a place in a sound file? That is, > the user presses a key while a sound file is playing and that point is > saved, and some time in the future we can play the same sound file and > tell it to start playing from that point. > > This would be done within a perl AGI program.The AGI command 'stream file' will return 'endpos' when interrupted with a keypress. You could then save that in a channel variable or a database. A subsequent call to 'stream file' would include 'endpos' as the 'sample offset.' -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000