<div><div dir="auto">Yep, that’s fine. You could also opt to make the conf name a var too.</div><div dir="auto"><br></div><br><div class="gmail_quote"><div>On Sat, May 5, 2018 at 7:08 AM Babak Yakhchali <<a href="mailto:babak.freeswitch@gmail.com">babak.freeswitch@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>I changed caller-controlls to this:<div>...</div><div><control action="execute_application" digits="0" data="set api_result=${conference paging play applications/2/test.mp3}"/><br></div><div>...</div><div>and it is working now but I donno if this is a good solution :)</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, May 5, 2018 at 1:43 PM, Babak Yakhchali <span><<a href="mailto:babak.freeswitch@gmail.com" target="_blank">babak.freeswitch@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi<div>I'm using the following lua script to add some users taken as argument to a conference:</div><div><br></div><div><div>session:execute('answer');</div><div>session:setVariable('api_hangup_hook','conference paging kick all');<span style="white-space:pre-wrap"> </span>--kick out all page devices on hangup</div><div>session:setVariable('conference_auto_outcall_timeout','5');<span style="white-space:pre-wrap"> </span>--??</div><div>session:setVariable('conference_auto_outcall_flags','none')<span style="white-space:pre-wrap"> </span>--you can mute page devices</div><div>session:setVariable('conference_auto_outcall_announce','tone_stream://%(500,200,800);loops=3')</div><div><br></div><div>for i,v in ipairs(argv) do</div><div><span style="white-space:pre-wrap"> </span>session:execute('conference_set_auto_outcall','user/'..v)</div><div>end</div><div>session:execute('conference','paging@default');</div></div><div><br></div><div>this is working fine and all members are connected to conference. now I need to start playing a file into conference. currently I'm using caller-controls part of conference.conf.xml to play the file when a caller presses the 0 key:</div><div><br></div><div>...</div><div><div><caller-controls></div><div> <group name="default"> </div><div> <control action="execute_application" digits="0" data="playback applications/2/test.mp3"/> </div><div> ...</div><div> </group></div><div> </caller-controls></div></div><div>....</div><div>now when each member presses 0 the file is played but just to the member which pressed the 0 key. how can I make it to play the file for all conference members?</div></div>
</blockquote></div><br></div>
_________________________________________________________________________<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" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a></blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Anthony Minessale II</div><div dir="ltr">Founder, FreeSWITCH.</div><div dir="ltr"><div><a href="http://freeswitch.com" target="_blank">http://freeswitch.com</a></div><div><br></div><div><br></div><div><span style="font-size:12.8px"><a href="https://youtu.be/l_hOxzCt6X4" target="_blank">https://youtu.be/l_hOxzCt6X4</a></span><br></div><div><a href="https://www.youtube.com/watch?v=oAxXgyx5jUw" target="_blank">https://www.youtube.com/watch?v=oAxXgyx5jUw</a><br></div><div><a href="https://www.youtube.com/watch?v=9XXgW34t40s" style="color:rgb(17,85,204);font-size:12.8000001907349px" target="_blank">https://www.youtube.com/watch?v=9XXgW34t40s</a></div><div><a href="https://www.youtube.com/watch?v=NLaDpGQuZDA" target="_blank">https://www.youtube.com/watch?v=NLaDpGQuZDA</a><br></div></div></div></div></div></div></div></div></div>