<div>I was thinking about this a few days ago. Slightly different scenario: I want to stream audio into a conference every ten minutes or so.</div>
<div> </div>
<div>My ideas was to do it by connecting another extension to the conference. This extra extension would (theoretically) run a Lua script to stream the audio, and then sleep, and every few seconds it would look to see if it was the only extension still connected to the conference.</div>
<div> </div>
<div>In your case, if you're doing the "mad boss" and inviting all the participants to the conference, it should be easy to add one more extension to the list of invites. Just have the extension's script wait 10 seconds or so before streaming the audio, and then it can just hang up.</div>
<div> </div>
<div>Something like this:</div>
<div> </div>
<div>streamwelcomefile.lua</div>
<div><code></div>
<div> </div>
<div>if ( session:ready() ) then</div>
<div> session:answer();</div>
<div> session:sleep(10000) -- wait for 10 seconds for other people to join conference.<br> session:streamFile("ivr/8000/ivr-welcome.wav");<br> session:streamFile("ivr/8000/ivr-thank_you_for_calling.wav");<br>
session:hangup("NORMAL_CLEARING");<br>end</div>
<div> </div>
<div></code></div>
<div> </div>
<div>And the dialplan might look like this:</div>
<div><code></div>
<div> </div>
<div><extension name="StreamWelcome"><br> <condition field="destination_number" expression="^000111$"><br> <action application="lua" data="streamwelcomefile.lua" /><br>
</condition><br> </extension></div>
<div> </div>
<div></code></div>
<div> </div>
<div> </div>
<div>Disclaimer: I haven't actually tested this in a conference. Good luck! :-)</div>