how can i do stream piping in freeswitch
Currently i am playing a stream with mod_shout and this is my default xml. <context name="default"> <extension name="global-intercept"> <condition field="destination_number" expression="^14049002000$"> <action application="answer"/> <action application="playback" data="shout:// online.radiodifusion.net:8024/"/> </condition> </extension> </context> Every time a user makes a call for stream it opens a separate connection with the stream provider. If 100 users dials this number, there would be 100 connections with stream provider listening to same stream, means more rtp packets containing same data for different users. What i want is, if a user is listening to stream then other users must share the same listening connection that the first user is opened, instead of creating a separate connection with stream provider for same stream. Someone told me this is possible in asterisk, so there must be a way in freeswitch. How can i do this.? Any help would be much appreciated. Thanks
Look at the Shout stream as MOH section of: https://wiki.freeswitch.org/wiki/Mod_shout You have to define the stream as a local_stream and then reference it via local_stream://moh/whatever I use this to stream a local campus radio station via mp3/icecast as MOH stream. -- Nathan On 01/07/2015 03:21 PM, Aqs Younas wrote:
Currently i am playing a stream with mod_shout and this is my default xml.
<context name="default"> <extension name="global-intercept"> <condition field="destination_number" expression="^14049002000$"> <action application="answer"/> <action application="playback" data="shout://online.radiodifusion.net:8024/ <http://online.radiodifusion.net:8024/>"/> </condition> </extension> </context>
Every time a user makes a call for stream it opens a separate connection with the stream provider. If 100 users dials this number, there would be 100 connections with stream provider listening to same stream, means more rtp packets containing same data for different users.
What i want is, if a user is listening to stream then other users must share the same listening connection that the first user is opened, instead of creating a separate connection with stream provider for same stream.
Someone told me this is possible in asterisk, so there must be a way in freeswitch.
How can i do this.? Any help would be much appreciated.
Thanks
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: 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 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- ------------------------------------------------------------ Nathan Neulinger nneul@mst.edu Missouri S&T Information Technology (573) 612-1412 System Administrator - Architect
Thanks for your suggestions. It really helped. But i have few questions. What if i have multiple streams actually about 400 streams and a lot of users who can switch between different streams, if i put all stream in a file then users will not be able to switch between desired streams. And if i create separate folder each containing a file with single stream then there will be a lots of directories and for every directory and also i have to manually enter its name in local_stream.conf.xml Because i see this setup suitable for only single stream or in a scenario where users don't want to switch between desired streams by pressing extension. Is there any other way to do so.? Or how can i improve this? Really thankful for your help. Regards. On 8 January 2015 at 06:22, Nathan Neulinger <nneul@mst.edu> wrote:
Look at the Shout stream as MOH section of:
https://wiki.freeswitch.org/wiki/Mod_shout
You have to define the stream as a local_stream and then reference it via local_stream://moh/whatever
I use this to stream a local campus radio station via mp3/icecast as MOH stream.
-- Nathan
On 01/07/2015 03:21 PM, Aqs Younas wrote:
Currently i am playing a stream with mod_shout and this is my default xml.
<context name="default"> <extension name="global-intercept"> <condition field="destination_number" expression="^14049002000$"> <action application="answer"/> <action application="playback" data="shout:// online.radiodifusion.net:8024/ <http://online.radiodifusion.net:8024/>"/> </condition> </extension> </context>
Every time a user makes a call for stream it opens a separate connection with the stream provider. If 100 users dials this number, there would be 100 connections with stream provider listening to same stream, means more rtp packets containing same data for different users.
What i want is, if a user is listening to stream then other users must share the same listening connection that the first user is opened, instead of creating a separate connection with stream provider for same stream.
Someone told me this is possible in asterisk, so there must be a way in freeswitch.
How can i do this.? Any help would be much appreciated.
Thanks
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: 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 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- ------------------------------------------------------------ Nathan Neulinger nneul@mst.edu Missouri S&T Information Technology (573) 612-1412 System Administrator - Architect
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: 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 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
You're going to need 400 local streams, or to re-think you approach. On Thu, Jan 8, 2015 at 8:47 AM, Aqs Younas <aqsyounas@gmail.com> wrote:
Thanks for your suggestions. It really helped.
But i have few questions.
What if i have multiple streams actually about 400 streams and a lot of users who can switch between different streams, if i put all stream in a file then users will not be able to switch between desired streams.
And if i create separate folder each containing a file with single stream then there will be a lots of directories and for every directory and also i have to manually enter its name in local_stream.conf.xml
Because i see this setup suitable for only single stream or in a scenario where users don't want to switch between desired streams by pressing extension.
Is there any other way to do so.? Or how can i improve this?
Really thankful for your help.
Regards.
On 8 January 2015 at 06:22, Nathan Neulinger <nneul@mst.edu> wrote:
Look at the Shout stream as MOH section of:
https://wiki.freeswitch.org/wiki/Mod_shout
You have to define the stream as a local_stream and then reference it via local_stream://moh/whatever
I use this to stream a local campus radio station via mp3/icecast as MOH stream.
-- Nathan
On 01/07/2015 03:21 PM, Aqs Younas wrote:
Currently i am playing a stream with mod_shout and this is my default xml.
<context name="default"> <extension name="global-intercept"> <condition field="destination_number" expression="^14049002000$"> <action application="answer"/> <action application="playback" data="shout:// online.radiodifusion.net:8024/ <http://online.radiodifusion.net:8024/>"/> </condition> </extension> </context>
Every time a user makes a call for stream it opens a separate connection with the stream provider. If 100 users dials this number, there would be 100 connections with stream provider listening to same stream, means more rtp packets containing same data for different users.
What i want is, if a user is listening to stream then other users must share the same listening connection that the first user is opened, instead of creating a separate connection with stream provider for same stream.
Someone told me this is possible in asterisk, so there must be a way in freeswitch.
How can i do this.? Any help would be much appreciated.
Thanks
_________________________________________________________________________
Professional FreeSWITCH Consulting Services: 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 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- ------------------------------------------------------------ Nathan Neulinger nneul@mst.edu Missouri S&T Information Technology (573) 612-1412 System Administrator - Architect
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: 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 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 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 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Brian West* brian@freeswitch.org *Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
Actually we are running a radio setup in which users listen to different radio's streams by pressing the desired extension for that radio. We have more than 400 radio streams and concurrent peak of 350 calls. For example, 100 users are listening to same station and after couple of seconds they will be listening to different station. Currently all these connections are being made with stream provider, i.e, 100 connections will be open with stream provider. We want is that if a user is listening to a specific station and another user also wants to listen that station he(second user) must share the stream or connection created by the first user instead of creating a separate connection with stream provider. Thanks for you time. On 8 January 2015 at 19:56, Brian West <brian@freeswitch.org> wrote:
You're going to need 400 local streams, or to re-think you approach.
On Thu, Jan 8, 2015 at 8:47 AM, Aqs Younas <aqsyounas@gmail.com> wrote:
Thanks for your suggestions. It really helped.
But i have few questions.
What if i have multiple streams actually about 400 streams and a lot of users who can switch between different streams, if i put all stream in a file then users will not be able to switch between desired streams.
And if i create separate folder each containing a file with single stream then there will be a lots of directories and for every directory and also i have to manually enter its name in local_stream.conf.xml
Because i see this setup suitable for only single stream or in a scenario where users don't want to switch between desired streams by pressing extension.
Is there any other way to do so.? Or how can i improve this?
Really thankful for your help.
Regards.
On 8 January 2015 at 06:22, Nathan Neulinger <nneul@mst.edu> wrote:
Look at the Shout stream as MOH section of:
https://wiki.freeswitch.org/wiki/Mod_shout
You have to define the stream as a local_stream and then reference it via local_stream://moh/whatever
I use this to stream a local campus radio station via mp3/icecast as MOH stream.
-- Nathan
On 01/07/2015 03:21 PM, Aqs Younas wrote:
Currently i am playing a stream with mod_shout and this is my default xml.
<context name="default"> <extension name="global-intercept"> <condition field="destination_number" expression="^14049002000$"> <action application="answer"/> <action application="playback" data="shout:// online.radiodifusion.net:8024/ <http://online.radiodifusion.net:8024/>"/> </condition> </extension> </context>
Every time a user makes a call for stream it opens a separate connection with the stream provider. If 100 users dials this number, there would be 100 connections with stream provider listening to same stream, means more rtp packets containing same data for different users.
What i want is, if a user is listening to stream then other users must share the same listening connection that the first user is opened, instead of creating a separate connection with stream provider for same stream.
Someone told me this is possible in asterisk, so there must be a way in freeswitch.
How can i do this.? Any help would be much appreciated.
Thanks
_________________________________________________________________________
Professional FreeSWITCH Consulting Services: 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 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- ------------------------------------------------------------ Nathan Neulinger nneul@mst.edu Missouri S&T Information Technology (573) 612-1412 System Administrator - Architect
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: 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 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 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 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: 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 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Thank you guys for your valuable suggestions. It really helped me. On 8 January 2015 at 20:22, Aqs Younas <aqsyounas@gmail.com> wrote:
Actually we are running a radio setup in which users listen to different radio's streams by pressing the desired extension for that radio.
We have more than 400 radio streams and concurrent peak of 350 calls. For example, 100 users are listening to same station and after couple of seconds they will be listening to different station. Currently all these connections are being made with stream provider, i.e, 100 connections will be open with stream provider.
We want is that if a user is listening to a specific station and another user also wants to listen that station he(second user) must share the stream or connection created by the first user instead of creating a separate connection with stream provider.
Thanks for you time.
On 8 January 2015 at 19:56, Brian West <brian@freeswitch.org> wrote:
You're going to need 400 local streams, or to re-think you approach.
On Thu, Jan 8, 2015 at 8:47 AM, Aqs Younas <aqsyounas@gmail.com> wrote:
Thanks for your suggestions. It really helped.
But i have few questions.
What if i have multiple streams actually about 400 streams and a lot of users who can switch between different streams, if i put all stream in a file then users will not be able to switch between desired streams.
And if i create separate folder each containing a file with single stream then there will be a lots of directories and for every directory and also i have to manually enter its name in local_stream.conf.xml
Because i see this setup suitable for only single stream or in a scenario where users don't want to switch between desired streams by pressing extension.
Is there any other way to do so.? Or how can i improve this?
Really thankful for your help.
Regards.
On 8 January 2015 at 06:22, Nathan Neulinger <nneul@mst.edu> wrote:
Look at the Shout stream as MOH section of:
https://wiki.freeswitch.org/wiki/Mod_shout
You have to define the stream as a local_stream and then reference it via local_stream://moh/whatever
I use this to stream a local campus radio station via mp3/icecast as MOH stream.
-- Nathan
On 01/07/2015 03:21 PM, Aqs Younas wrote:
Currently i am playing a stream with mod_shout and this is my default xml.
<context name="default"> <extension name="global-intercept"> <condition field="destination_number" expression="^14049002000$"> <action application="answer"/> <action application="playback" data="shout:// online.radiodifusion.net:8024/ <http://online.radiodifusion.net:8024/>"/> </condition> </extension> </context>
Every time a user makes a call for stream it opens a separate connection with the stream provider. If 100 users dials this number, there would be 100 connections with stream provider listening to same stream, means more rtp packets containing same data for different users.
What i want is, if a user is listening to stream then other users must share the same listening connection that the first user is opened, instead of creating a separate connection with stream provider for same stream.
Someone told me this is possible in asterisk, so there must be a way in freeswitch.
How can i do this.? Any help would be much appreciated.
Thanks
_________________________________________________________________________
Professional FreeSWITCH Consulting Services: 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 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- ------------------------------------------------------------ Nathan Neulinger nneul@mst.edu Missouri S&T Information Technology (573) 612-1412 System Administrator - Architect
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: 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 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 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 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: 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 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Guys, i have another question from you. Is there anyway to find out how many users are listening on a particular stream.Actually this will help me to stop any stream from running locally if no user is listening to it. On 8 January 2015 at 20:44, Aqs Younas <aqsyounas@gmail.com> wrote:
Thank you guys for your valuable suggestions.
It really helped me.
On 8 January 2015 at 20:22, Aqs Younas <aqsyounas@gmail.com> wrote:
Actually we are running a radio setup in which users listen to different radio's streams by pressing the desired extension for that radio.
We have more than 400 radio streams and concurrent peak of 350 calls. For example, 100 users are listening to same station and after couple of seconds they will be listening to different station. Currently all these connections are being made with stream provider, i.e, 100 connections will be open with stream provider.
We want is that if a user is listening to a specific station and another user also wants to listen that station he(second user) must share the stream or connection created by the first user instead of creating a separate connection with stream provider.
Thanks for you time.
On 8 January 2015 at 19:56, Brian West <brian@freeswitch.org> wrote:
You're going to need 400 local streams, or to re-think you approach.
On Thu, Jan 8, 2015 at 8:47 AM, Aqs Younas <aqsyounas@gmail.com> wrote:
Thanks for your suggestions. It really helped.
But i have few questions.
What if i have multiple streams actually about 400 streams and a lot of users who can switch between different streams, if i put all stream in a file then users will not be able to switch between desired streams.
And if i create separate folder each containing a file with single stream then there will be a lots of directories and for every directory and also i have to manually enter its name in local_stream.conf.xml
Because i see this setup suitable for only single stream or in a scenario where users don't want to switch between desired streams by pressing extension.
Is there any other way to do so.? Or how can i improve this?
Really thankful for your help.
Regards.
On 8 January 2015 at 06:22, Nathan Neulinger <nneul@mst.edu> wrote:
Look at the Shout stream as MOH section of:
https://wiki.freeswitch.org/wiki/Mod_shout
You have to define the stream as a local_stream and then reference it via local_stream://moh/whatever
I use this to stream a local campus radio station via mp3/icecast as MOH stream.
-- Nathan
On 01/07/2015 03:21 PM, Aqs Younas wrote:
Currently i am playing a stream with mod_shout and this is my default xml.
<context name="default"> <extension name="global-intercept"> <condition field="destination_number" expression="^14049002000$"> <action application="answer"/> <action application="playback" data="shout:// online.radiodifusion.net:8024/ <http://online.radiodifusion.net:8024/>"/> </condition> </extension> </context>
Every time a user makes a call for stream it opens a separate connection with the stream provider. If 100 users dials this number, there would be 100 connections with stream provider listening to same stream, means more rtp packets containing same data for different users.
What i want is, if a user is listening to stream then other users must share the same listening connection that the first user is opened, instead of creating a separate connection with stream provider for same stream.
Someone told me this is possible in asterisk, so there must be a way in freeswitch.
How can i do this.? Any help would be much appreciated.
Thanks
_________________________________________________________________________
Professional FreeSWITCH Consulting Services: 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 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- ------------------------------------------------------------ Nathan Neulinger nneul@mst.edu Missouri S&T Information Technology (573) 612-1412 System Administrator - Architect
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: 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 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 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 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: 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 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
You set up.. all 400.. FreeSWITCH mod_shout streams as an MOH stream. Unfortunately, all are always running even if nobody is listening to it. Then, it sounded like you already have a switching mechanism. Instead of switching them to a playback of an http:....mp3, you switch them to a playback of a localstream -Avi On Thu, Jan 8, 2015 at 4:47 PM, Aqs Younas <aqsyounas@gmail.com> wrote:
Thanks for your suggestions. It really helped.
But i have few questions.
What if i have multiple streams actually about 400 streams and a lot of users who can switch between different streams, if i put all stream in a file then users will not be able to switch between desired streams.
And if i create separate folder each containing a file with single stream then there will be a lots of directories and for every directory and also i have to manually enter its name in local_stream.conf.xml
Because i see this setup suitable for only single stream or in a scenario where users don't want to switch between desired streams by pressing extension.
Is there any other way to do so.? Or how can i improve this?
Really thankful for your help.
Regards.
On 8 January 2015 at 06:22, Nathan Neulinger <nneul@mst.edu> wrote:
Look at the Shout stream as MOH section of:
https://wiki.freeswitch.org/wiki/Mod_shout
You have to define the stream as a local_stream and then reference it via local_stream://moh/whatever
I use this to stream a local campus radio station via mp3/icecast as MOH stream.
-- Nathan
On 01/07/2015 03:21 PM, Aqs Younas wrote:
Currently i am playing a stream with mod_shout and this is my default xml.
<context name="default"> <extension name="global-intercept"> <condition field="destination_number" expression="^14049002000$"> <action application="answer"/> <action application="playback" data="shout:// online.radiodifusion.net:8024/ <http://online.radiodifusion.net:8024/>"/> </condition> </extension> </context>
Every time a user makes a call for stream it opens a separate connection with the stream provider. If 100 users dials this number, there would be 100 connections with stream provider listening to same stream, means more rtp packets containing same data for different users.
What i want is, if a user is listening to stream then other users must share the same listening connection that the first user is opened, instead of creating a separate connection with stream provider for same stream.
Someone told me this is possible in asterisk, so there must be a way in freeswitch.
How can i do this.? Any help would be much appreciated.
Thanks
_________________________________________________________________________
Professional FreeSWITCH Consulting Services: 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 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- ------------------------------------------------------------ Nathan Neulinger nneul@mst.edu Missouri S&T Information Technology (573) 612-1412 System Administrator - Architect
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: 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 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 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 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Only other approach I can think of would be to try and do some sort of reverse reflector. i.e. the issue is that you're having 100 connections to the external stream for 100 listeners If you could get the 100 connections to a LOCAL server, to where you'd still have the duplication locally on your internal network, but not 100 separate connections to the remote stream provider - that might address it. At that point, you could have each caller do the individual playback - getting the local duplication. I don't know that anything exists to do that function though. -- Nathan On 01/08/2015 09:07 AM, Avi Marcus wrote:
You set up.. all 400.. FreeSWITCH mod_shout streams as an MOH stream. Unfortunately, all are always running even if nobody is listening to it. Then, it sounded like you already have a switching mechanism. Instead of switching them to a playback of an http:....mp3, you switch them to a playback of a localstream
-Avi
On Thu, Jan 8, 2015 at 4:47 PM, Aqs Younas <aqsyounas@gmail.com <mailto:aqsyounas@gmail.com>> wrote:
Thanks for your suggestions. It really helped.
But i have few questions.
What if i have multiple streams actually about 400 streams and a lot of users who can switch between different streams, if i put all stream in a file then users will not be able to switch between desired streams.
And if i create separate folder each containing a file with single stream then there will be a lots of directories and for every directory and also i have to manually enter its name in local_stream.conf.xml
Because i see this setup suitable for only single stream or in a scenario where users don't want to switch between desired streams by pressing extension.
Is there any other way to do so.? Or how can i improve this?
Really thankful for your help.
Regards.
On 8 January 2015 at 06:22, Nathan Neulinger <nneul@mst.edu <mailto:nneul@mst.edu>> wrote:
Look at the Shout stream as MOH section of:
https://wiki.freeswitch.org/wiki/Mod_shout
You have to define the stream as a local_stream and then reference it via local_stream://moh/whatever
I use this to stream a local campus radio station via mp3/icecast as MOH stream.
-- Nathan
On 01/07/2015 03:21 PM, Aqs Younas wrote: > Currently i am playing a stream with mod_shout and this is my default xml. > > <context name="default"> > <extension name="global-intercept"> > <condition field="destination_number" expression="^14049002000$"> > <action application="answer"/> > <action application="playback" data="shout://online.radiodifusion.net:8024/ <http://online.radiodifusion.net:8024/> > <http://online.radiodifusion.net:8024/>"/> > </condition> > </extension> > </context> > > Every time a user makes a call for stream it opens a separate connection with the stream provider. If 100 users dials > this number, there would be 100 connections with stream provider listening to same stream, means more rtp packets > containing same data for different users. > > What i want is, if a user is listening to stream then other users must share the same listening connection that the > first user is opened, instead of creating a separate connection with stream provider for same stream. > > Someone told me this is possible in asterisk, so there must be a way in freeswitch. > > How can i do this.? > Any help would be much appreciated. > > Thanks > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting@freeswitch.org <mailto: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 <mailto: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 >
-- ------------------------------------------------------------ Nathan Neulinger nneul@mst.edu <mailto:nneul@mst.edu> Missouri S&T Information Technology (573) 612-1412 <tel:%28573%29%20612-1412> System Administrator - Architect
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto: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 <mailto: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 <mailto: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 <mailto: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 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 http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- ------------------------------------------------------------ Nathan Neulinger nneul@mst.edu Missouri S&T Information Technology (573) 612-1412 System Administrator - Architect
participants (4)
-
Aqs Younas
-
Avi Marcus
-
Brian West
-
Nathan Neulinger