<div dir="ltr">That's the expected behaviour of that module.<div><br></div><div>When you create a local stream you have a single stream of that file playing in a continuous loop. That stream is not connected to any call. When you play that stream to a call they're listening in on that stream at whichever point it is currently at.</div><div><br></div><div>The advantage of this is that you're only playing the file once and sending it to multiple listeners, which can give some performance benefits. For listening in on something like hold music it probably doesn't matter that you're not hearing it from the start.</div><div><br></div><div>You could restart the stream to jump back to the start, but that means it'll jump for every other listener too (assuming the API would even run while they're attached without blocking).</div><div><br></div><div>Just play the file to them directly rather than with local_stream://</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 4 March 2016 at 14:25, Igor Olhovskiy <span dir="ltr"><<a href="mailto:igorolhovskiy@gmail.com" target="_blank">igorolhovskiy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>Having a strange issue with a MoH and ringback tones defined with local_stream.</div><div>Idea is I’m having 1 wav file for MoH. And when I’m playing it, it starts not from beginning, but nearly 3-7 seconds before file end and than - starts over. Can’t get why it not just playing file from start.</div><div>Yes, I know there is a workaround to use file_stream, but may be there is way to make local_stream with a same behavior?</div><div>System: Debian 8, VmWare ESXi, FS 1.6.6 (FusionPBX)</div><div><br></div><div><div> <directory name=«Domain_name/TestingMoH/8000» path=«$${sounds_dir}/Domain_name/TestingMoH/8000»></div><div> <param name="rate" value="8000"/></div><div> <param name="shuffle" value="true"/></div><div> <param name="channels" value="1"/></div><div> <param name="interval" value="20"/></div><div> <param name="timer-name" value="soft"/></div><div> </directory></div><div><br></div><div>Or I’m missing some parameter?</div><span><font color="#888888">-- <br><div><div dir="ltr">Best regards,<div>Igor</div></div></div>
</font></span></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.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="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div></div>