<br><br><div class="gmail_quote">On Mon, May 9, 2011 at 12:29 PM, Josh M. Patten <span dir="ltr">&lt;<a href="mailto:jpatten@co.brazos.tx.us">jpatten@co.brazos.tx.us</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">






<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal">OK so I’ve successfully managed to get a lua script working to enhance the functionality of the “mad boss” intercom via conference example however I’m having trouble getting an audio file to stream into the conference at the beginning.</p>
</div></div></blockquote><div><br></div><div>An audio file to stream at the beginning of what, exactly? When the first person enters the conference? Or when every participant enters? I&#39;m just trying to understand what problem you&#39;re solving. Please describe it in plain language: when user enters he hears xyz, when next user enters he and the conference hear abc, etc.</div>
<div><br></div><div>-MC</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div lang="EN-US" link="blue" vlink="purple"><div><p class="MsoNormal">
 Here is what I’m trying:</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Dialplan:</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">&lt;extension name=&quot;outbound-socket&quot;&gt;</p>
<p class="MsoNormal">      &lt;condition field=&quot;destination_number&quot; expression=&quot;^3402$&quot;&gt;</p>
<p class="MsoNormal">      &lt;action application=&quot;lua&quot; data=&quot;/usr/local/freeswitch/scripts/test.lua 3402&quot;/&gt;</p>
<p class="MsoNormal">    &lt;/condition&gt;</p>
<p class="MsoNormal">   &lt;/extension&gt;</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Snip of test.lua:</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">session:execute(&quot;conference&quot;, argv[1] .. &quot;@default&quot;)</p>
<p class="MsoNormal">session:execute(&quot;set&quot;, &quot;tmp=${conference &quot; .. argv[1] .. &quot; play /usr/local/freeswitch/sounds/tones/norstar.wav}&quot;)</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I’ve also tried:</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">session:execute(&quot;conference&quot;, argv[1] .. &quot;@default&quot;)</p>
<p class="MsoNormal">api = freeswitch.API()</p>
<p class="MsoNormal">confplay = api:execute(&quot;conference&quot;, argv[1] .. &quot; play /usr/local/freeswitch/sounds/tones/norstar.wav &quot;)</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">In watching fs_cli it appears freeswitch never executes the entry that would set this file.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">What am I doing wrong here? I’ve got the FreeSWITCH 1.0.6 book and I can’t seem to find my answer there either.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Oh, playing a sound on participant entry won’t work because it will play that sound for EVERY user that enters the conference. When 80 extensions are auto-joined to the conference at the same time it is useless for a while playing entry
 sounds for all those extensions.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Thanks!</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Josh Patten</p>
<p class="MsoNormal">Brazos County Network Engineer</p>
<p class="MsoNormal">979.361.4676</p>
<p class="MsoNormal"> </p>
</div>
</div>

<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">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>
<br></blockquote></div><br>