Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] mod_local_stream strange behavior


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
igorolhovskiy at gmail...
Guest





PostPosted: Fri Mar 04, 2016 9:27 am    Post subject: [Freeswitch-users] mod_local_stream strange behavior Reply with quote

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





PostPosted: Fri Mar 04, 2016 11:04 am    Post subject: [Freeswitch-users] mod_local_stream strange behavior Reply with quote

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:
Quote:
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@freeswitch.org (consulting@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@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
igorolhovskiy at gmail...
Guest





PostPosted: Fri Mar 04, 2016 4:07 pm    Post subject: [Freeswitch-users] mod_local_stream strange behavior Reply with quote

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)>:
Quote:
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:


Quote:
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@freeswitch.org (consulting@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@lists.freeswitch.org (FreeSWITCH-users@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@freeswitch.org (consulting@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@lists.freeswitch.org (FreeSWITCH-users@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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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

VoiceMeUp - Corporate & Wholesale VoIP Services