<div dir="ltr">We set these channel variables in switch_ivr_play_say.c : <div>playback_last_offset_pos, playback_seconds, playback_ms, playback_samples. <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 23, 2021 at 5:53 PM Avi Marcus <<a href="mailto:avi@avimarcus.net">avi@avimarcus.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">I'm trying to create a bookmark feature for long playbacks.<div dir="auto"><br></div><div dir="auto">I'll save the file and position (to be exact the sample position) and then when the caller comes back, they can choose to restart in the same place.</div><div dir="auto"><br></div><div dir="auto">The playback tool allows me to specify the sample position (and uuid_fileman lets me seek to one)</div><div dir="auto"><br></div><div dir="auto">But I don't see how to query the _current_ position.</div><div dir="auto">There's no status inside uuid_fileman</div><div dir="auto">There's no variables I see that are updating when doing uuid_dump.</div><div dir="auto"><br></div><div dir="auto">The closest I see is that if I stop the playback, I get a PLAYBACK_STOP event with the sample position.</div><div dir="auto"><br></div><div dir="auto">This seems like it could work, but that's means I need to trigger a script to stop the playback (can't continue listening) and wait for an ESL event, and hope we're getting the right one. (How to I listen for events attached only to a specific UUID?) This seems overly complicated.</div><div dir="auto"><br></div><div dir="auto">I was hoping to have a uuid_fileman option or the like to query the current position.</div><div dir="auto"><br></div><div dir="auto">Does that exist somewhere? </div><div dir="auto"><br></div><div dir="auto">Thanks. </div></div>
_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div>