<div dir="ltr">Think event "event_socket_library" able to catch "file_played" event.<br>Just execute "/events all" in fs_cli and looks event generated after file played.<br><br>Then try catch this usingĀ "event_socket_library".</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 21, 2020 at 5:11 AM <a href="mailto:MomoSxp@hotmail.com">MomoSxp@hotmail.com</a> <<a href="mailto:MomoSxp@hotmail.com">MomoSxp@hotmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">




<div dir="ltr">
<div>
<p>im trying to start a conference between a list of users, play a list of audio files and then close the conference. im using the event_socket_library in c++ and am doing the following:</p>
<pre><code><span>conference </span><span><uuid></span><span> dial user</span><span>/</span><span>user1
conference </span><span><uuid></span><span> dial user</span><span>/</span><span>user2
conference </span><span><uuid></span><span> dial user</span><span>/</span><span>user3
in a loop</span><span>:</span><span>
conference play </span><span><path_to_audio_file><br>conference hup all //will skip the stream and end the call, but i need to wait for the last playback to end.<br></span></code></pre>
<p>how do i know when the last file was played so i can close the conference? is there a way to do it programmatically? a dialplan script taking the users and the files and the conference name as parameters, starting and closing the conference automatically
 would be fine, too. doing this im not sure on how to play a file to a conference and closing it.</p>
<p>i tried something like this: but its not playing the file and not closing the conference</p>
<pre><code><span><</span><span>extension name</span><span>=</span><span>"extension-playconf"</span><span>></span><span>
  </span><span><</span><span>condition field</span><span>=</span><span>"destination_number"</span><span> expression</span><span>=</span><span>"^playconf$"</span><span>></span><span>
    </span><span><</span><span>action application</span><span>=</span><span>"answer"</span><span>/></span><span>
    </span><span><</span><span>action application</span><span>=</span><span>"conference_set_auto_outcall"</span><span> data</span><span>=</span><span>"user/1001"</span><span>/></span><span>
    </span><span><</span><span>action application</span><span>=</span><span>"conference_set_auto_outcall"</span><span> data</span><span>=</span><span>"user/1002"</span><span>/></span><span>
    </span><span><</span><span>action application</span><span>=</span><span>"playback"</span><span> data</span><span>=</span><span>"/home/freeswitch/regioaudio/audio.wav"</span><span>/></span><span>
    </span><span><</span><span>action application</span><span>=</span><span>"conference"</span><span> data</span><span>=</span><span>"hup all"</span><span>></span><span>
  </span><span></</span><span>condition</span><span>></span><span>
</span><span></</span><span>extension</span><span>></span></code></pre>
</div>
</div>

_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://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="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div>