VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
igorolhovskiy at gmail... Guest
|
Posted: Fri Mar 04, 2016 9:27 am Post subject: [Freeswitch-users] mod_local_stream strange behavior |
|
|
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 |
|
Back to top |
|
|
steveayre at gmail.com Guest
|
Posted: Fri Mar 04, 2016 11:04 am Post subject: [Freeswitch-users] mod_local_stream strange behavior |
|
|
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@gmail.com (igorolhovskiy@gmail.com)> wrote:
|
|
Back to top |
|
|
igorolhovskiy at gmail... Guest
|
Posted: Fri Mar 04, 2016 4:07 pm Post subject: [Freeswitch-users] mod_local_stream strange behavior |
|
|
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@gmail.com (steveayre@gmail.com)>:
--
Best regards,Igor |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|