<div dir="ltr"><div>Thank you guys for your valuable suggestions.<br><br></div>It really helped me.<br><div><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 8 January 2015 at 20:22, Aqs Younas <span dir="ltr">&lt;<a href="mailto:aqsyounas@gmail.com" target="_blank">aqsyounas@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Actually we are running a radio setup in which users listen to different radio&#39;s streams by pressing the desired extension for that radio.<br><br></div>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.<br><br></div>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.<br><br></div>Thanks for you time. <br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On 8 January 2015 at 19:56, Brian West <span dir="ltr">&lt;<a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">You&#39;re going to need 400 local streams, or to re-think you approach.</div><div class="gmail_extra"><div><div><br><div class="gmail_quote">On Thu, Jan 8, 2015 at 8:47 AM, Aqs Younas <span dir="ltr">&lt;<a href="mailto:aqsyounas@gmail.com" target="_blank">aqsyounas@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Thanks for your suggestions. It really helped.<br><br></div>But i have few questions.<br><br> 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. <br><br></div>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<br><br></div><div>Because i see this setup suitable for only single stream or in a scenario where users don&#39;t want to switch between desired streams by pressing extension.<br></div><div><br>Is there any other way to do so.? Or how can i improve this?<br></div><br></div>Really thankful for your help.<br><br></div>Regards.<br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On 8 January 2015 at 06:22, Nathan Neulinger <span dir="ltr">&lt;<a href="mailto:nneul@mst.edu" target="_blank">nneul@mst.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Look at the Shout stream as MOH section of:<br>
<br>
<a href="https://wiki.freeswitch.org/wiki/Mod_shout" target="_blank">https://wiki.freeswitch.org/wiki/Mod_shout</a><br>
<br>
You have to define the stream as a local_stream and then reference it via local_stream://moh/whatever<br>
<br>
I use this to stream a local campus radio station via mp3/icecast as MOH stream.<br>
<br>
-- Nathan<br>
<span><br>
On 01/07/2015 03:21 PM, Aqs Younas wrote:<br>
&gt; Currently i am playing a stream with mod_shout and this is my default xml.<br>
&gt;<br>
&gt; &lt;context name=&quot;default&quot;&gt;<br>
&gt;      &lt;extension name=&quot;global-intercept&quot;&gt;<br>
&gt;        &lt;condition field=&quot;destination_number&quot; expression=&quot;^14049002000$&quot;&gt;<br>
&gt;          &lt;action application=&quot;answer&quot;/&gt;<br>
&gt;          &lt;action application=&quot;playback&quot; data=&quot;shout://<a href="http://online.radiodifusion.net:8024/" target="_blank">online.radiodifusion.net:8024/</a><br>
</span>&gt; &lt;<a href="http://online.radiodifusion.net:8024/" target="_blank">http://online.radiodifusion.net:8024/</a>&gt;&quot;/&gt;<br>
<span>&gt;        &lt;/condition&gt;<br>
&gt;      &lt;/extension&gt;<br>
&gt; &lt;/context&gt;<br>
&gt;<br>
&gt; Every time a user makes a call for stream it opens a separate connection with the stream provider. If 100 users dials<br>
&gt; this number, there would be 100 connections with stream provider listening to same stream, means more rtp packets<br>
&gt; containing same data for different users.<br>
&gt;<br>
&gt; What i want is, if a user is listening to stream then other users must share the same listening connection that the<br>
&gt; first user is opened, instead of creating a separate connection with stream provider for same stream.<br>
&gt;<br>
&gt; Someone told me this is possible in asterisk, so there must be a way in freeswitch.<br>
&gt;<br>
&gt; How can i do this.?<br>
&gt; Any help would be much appreciated.<br>
&gt;<br>
&gt; Thanks<br>
&gt;<br>
&gt;<br>
&gt;<br>
</span>&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
<br>
--<br>
------------------------------------------------------------<br>
Nathan Neulinger                       <a href="mailto:nneul@mst.edu" target="_blank">nneul@mst.edu</a><br>
Missouri S&amp;T Information Technology    <a href="tel:%28573%29%20612-1412" value="+15736121412" target="_blank">(573) 612-1412</a><br>
System Administrator - Architect<br>
<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" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" 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" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div>
</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" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" 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" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br></div></div><div><div dir="ltr">







<p><font face="courier new, monospace"><b><i><font size="4">Brian West</font></i></b><br><span style="font-size:x-small"><a href="mailto:brian@freeswitch.org" target="_blank">brian@freeswitch.org</a></span></font></p>
<p><font face="courier new, monospace" size="1"><img src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png"><br></font></p><p><font face="courier new, monospace"><b><i>Twitter: @FreeSWITCH , @briankwest</i></b><br><a href="http://www.freeswitchbook.com" target="_blank">http://www.freeswitchbook.com</a><br><a href="http://www.freeswitchcookbook.com" target="_blank">http://www.freeswitchcookbook.com</a></font></p>
<p><font face="courier new, monospace"><b>T:</b><a href="tel:%2B19184209001" value="+19184209001" target="_blank">+19184209001</a> | <b>F:</b><a href="tel:%2B19184209002" value="+19184209002" target="_blank">+19184209002</a> | <b>M:</b>+1918424WEST (9378)<br><b>iNUM:</b>+883 5100 1420 9001 | <b>ISN:</b>410*543 | <b>Skype:</b>briankwest</font></p></div></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" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" 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" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>