[Freeswitch-users] mod_local_stream strange behavior

Igor Olhovskiy igorolhovskiy at gmail.com
Sat Mar 5 00:05:13 MSK 2016


Hi!
Thanks for an answer, I’ve been expecting that, just needed confirmation
about this. Will move to file_stream. Thanks again!

2016-03-04 18:01 GMT+02:00 Steven Ayre <steveayre at gmail.com>:

> That's the expected behaviour of that module.
>
> 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.
>
> 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.
>
> 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).
>
> Just play the file to them directly rather than with local_stream://
>
>
> On 4 March 2016 at 14:25, Igor Olhovskiy <igorolhovskiy at gmail.com> wrote:
>
>> Hello,
>>
>> Having a strange issue with a MoH and ringback tones defined with
>> local_stream.
>> 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.
>> 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?
>> System: Debian 8, VmWare ESXi, FS 1.6.6 (FusionPBX)
>>
>>     <directory name=«Domain_name/TestingMoH/8000»
>> path=«$${sounds_dir}/Domain_name/TestingMoH/8000»>
>>         <param name="rate" value="8000"/>
>>         <param name="shuffle" value="true"/>
>>         <param name="channels" value="1"/>
>>         <param name="interval" value="20"/>
>>         <param name="timer-name" value="soft"/>
>>     </directory>
>>
>> Or I’m missing some parameter?
>> --
>> Best regards,
>> Igor
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>



-- 
Best regards,
Igor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160304/081cca44/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list