<div dir="ltr"><font face="monospace, monospace">Hi all,<br><br>I&#39;m using FS with Event Socket Outbound.<br><br>Eg: The user calls to XXX and the calls goes to socket.<br><br>    &lt;extension name=&quot;VoiprExt&quot;&gt;<br>      &lt;condition&gt;<br>      &lt;action <div class="gmail_default" style="font-family:monospace,monospace;display:inline">​​</div>application=&quot;socket&quot; data=&quot;<a href="http://127.0.0.1:3012">127.0.0.1:3012</a> async full&quot;/&gt;<br>        &lt;action application=&quot;hangup&quot;/&gt;<br>      &lt;/condition&gt;<br>    &lt;/extension&gt;<br><br>I receive a call, and play some files (sometimes http:// or shout://).<br>Using command action playback.<br><br>sendmsg &lt;uuid&gt;<br>call-command: execute<br>execute-app-name: playback<br>execute-app-arg: <div class="gmail_default" style="font-family:monospace,monospace;display:inline">​</div></font><div class="gmail_default" style="font-family:monospace,monospace;display:inline">​</div><span style="font-family:monospace,monospace">/sounds/system/chr_<div class="gmail_default" style="font-family:monospace,monospace;display:inline">​1​</div>.mp3</span><font face="monospace, monospace"><br><br><br>The problem is, I&#39;m sending commands to playback files 1, 2, 3<br>And the system are playing 3, 2, 1<br><br>I already tried to use event-lock.<br><div class="gmail_default" style="font-family:monospace,monospace;display:inline">​S</div><div class="gmail_default" style="font-family:monospace,monospace;display:inline">ometimes​, </div></font><div class="gmail_default" style="font-family:monospace,monospace;display:inline">​</div><span style="font-family:monospace,monospace">if user press any DTMF<div class="gmail_default" style="font-family:monospace,monospace;display:inline">​,​</div></span><font face="monospace, monospace"> I need to stop playback</font><div><font face="monospace, monospace">I<div class="gmail_default" style="font-family:monospace,monospace;display:inline">​f I use​</div> event-lock<div class="gmail_default" style="font-family:monospace,monospace;display:inline">​: true. I</div> can&#39;t do anything until the files are done.</font></div><div><font face="monospace, monospace">The same, using command break (break only show up when files are done).<br><br>Is there another way, or a correct way to playback multiple sequential files, in order<div class="gmail_default" style="font-family:monospace,monospace;display:inline">​, using </div></font><div class="gmail_default" style="font-family:monospace,monospace;display:inline">​</div><span style="font-family:monospace,monospace">application=&quot;socket&quot;</span><font face="monospace, monospace">?<br>This is a BUG?<br><br><div class="gmail_default" style="font-family:monospace,monospace;display:inline">​</div></font><span style="font-family:monospace,monospace">​I don&#39;t if I made myself clear here.<br></span><span style="font-family:monospace,monospace">​</span></div><div><font face="monospace, monospace"><div class="gmail_default" style="display:inline">In resume, I can&#39;t wait until the current file is done, to send another command to play the next file, since I have one list (options), with several list of files to play (files)​. And, using asynchronous events (kqueue), the list(s) can change in the middle of process.<br></div><br><div class="gmail_default" style="font-family:monospace,monospace;display:inline">​It&#39;s like<br>* Option 1:<br>** file: ​wellcome.mp3</div></font></div><div><span style="font-family:monospace,monospace">** file: ​file_<div class="gmail_default" style="font-family:monospace,monospace;display:inline">​abc​</div><div class="gmail_default" style="font-family:monospace,monospace;display:inline">1</div>.mp3</span></div><span style="font-family:monospace,monospace"><div class="gmail_default" style="font-family:monospace,monospace;display:inline">​​</div>* Option <div class="gmail_default" style="font-family:monospace,monospace;display:inline">​2​</div>:</span><div><div class="gmail_default" style="font-family:monospace,monospace">​** file: protocol.mp3​</div><div><span style="font-family:monospace,monospace"><div class="gmail_default" style="font-family:monospace,monospace;display:inline">​​</div>** file: ​<div class="gmail_default" style="font-family:monospace,monospace;display:inline">​digit</div>_<div class="gmail_default" style="font-family:monospace,monospace;display:inline">​8​</div>.mp3</span><font face="monospace, monospace"><div class="gmail_default" style="font-family:monospace,monospace;display:inline">​</div></font></div><div><span style="font-family:monospace,monospace"><div class="gmail_default" style="display:inline">​</div>** file: ​<div class="gmail_default" style="font-family:monospace,monospace;display:inline">​digit_</div><div class="gmail_default" style="display:inline">​7​</div>.mp3</span><font face="monospace, monospace"><div class="gmail_default" style="display:inline">​</div></font></div><div><span style="font-family:monospace,monospace"><div class="gmail_default" style="display:inline">​</div>** file: ​<div class="gmail_default" style="display:inline">​digit_</div><div class="gmail_default" style="display:inline">​1​</div>.mp3</span><font face="monospace, monospace"><div class="gmail_default" style="display:inline">​</div></font><font face="monospace, monospace"><div class="gmail_default" style="display:inline"><br></div></font></div><div><span style="font-family:monospace,monospace"><div class="gmail_default" style="display:inline">​</div>** file: ​<div class="gmail_default" style="display:inline">​digit_</div><div class="gmail_default" style="display:inline">​2​</div>.mp3</span><font face="monospace, monospace"><div class="gmail_default" style="display:inline">​</div></font><font face="monospace, monospace"><div class="gmail_default" style="display:inline"><br></div></font></div><div><span style="font-family:monospace,monospace"><div class="gmail_default" style="display:inline">​</div>** file: ​<div class="gmail_default" style="display:inline">​digit_</div><div class="gmail_default" style="display:inline">​3​</div>.mp3</span><font face="monospace, monospace"><div class="gmail_default" style="display:inline">​</div></font><font face="monospace, monospace"><div class="gmail_default" style="display:inline"><br></div></font></div><div><font face="monospace, monospace"><div class="gmail_default" style="font-family:monospace,monospace;display:inline">​</div></font><div class="gmail_default" style="font-family:monospace,monospace;display:inline">​</div><span style="font-family:monospace,monospace">* Option</span><span style="font-family:monospace,monospace"> </span><div class="gmail_default" style="font-family:monospace,monospace;display:inline">​3</div><span style="font-family:monospace,monospace">:</span></div><div><span style="font-family:monospace,monospace">​** file: ​<div class="gmail_default" style="font-family:monospace,monospace;display:inline">​sales</div>.mp3​</span><font face="monospace, monospace">​</font><font face="monospace, monospace"><div class="gmail_default" style="display:inline">​</div></font></div><div><font face="monospace, monospace"><br><div class="gmail_default" style="font-family:monospace,monospace;display:inline">​And, after this, the files to be played are</div></font></div><div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">wellcome.mp3</font></div><div><span style="font-family:monospace,monospace">file_<div class="gmail_default" style="display:inline">​abc​</div><div class="gmail_default" style="display:inline">1</div>.mp3</span></div><div><div class="gmail_default" style="font-family:monospace,monospace">protocol.mp3​</div><div><span style="font-family:monospace,monospace"><div class="gmail_default" style="display:inline">digit</div>_<div class="gmail_default" style="display:inline">​8​</div>.mp3</span><font face="monospace, monospace">​</font></div><div><span style="font-family:monospace,monospace"><div class="gmail_default" style="display:inline">digit_</div><div class="gmail_default" style="display:inline">​7​</div>.mp3</span><font face="monospace, monospace">​</font></div><div><span style="font-family:monospace,monospace"><div class="gmail_default" style="display:inline">digit_</div><div class="gmail_default" style="display:inline">​1​</div>.mp3</span><font face="monospace, monospace">​</font><font face="monospace, monospace"><div class="gmail_default" style="display:inline"><br></div></font></div><div><span style="font-family:monospace,monospace"><div class="gmail_default" style="display:inline">digit_</div><div class="gmail_default" style="display:inline">​2​</div>.mp3</span><font face="monospace, monospace">​</font><font face="monospace, monospace"><div class="gmail_default" style="display:inline"><br></div></font></div><div><span style="font-family:monospace,monospace"><div class="gmail_default" style="display:inline">digit_</div><div class="gmail_default" style="display:inline">​3​</div>.mp3</span><font face="monospace, monospace">​</font><font face="monospace, monospace"><div class="gmail_default" style="display:inline"><br></div></font></div><div><span style="font-family:monospace,monospace"><div class="gmail_default" style="display:inline">sales</div>.mp3​</span><font face="monospace, monospace">​</font><font face="monospace, monospace">​<br></font><br><div class="gmail_default" style="font-family:monospace,monospace">But, the files are not played in sequence.​</div><br></div></div></div><div><font face="monospace, monospace"><div class="gmail_default" style="font-family:monospace,monospace;display:inline">​</div><div class="gmail_default" style="font-family:monospace,monospace;display:inline">​</div><br><br>[DEBUG] switch_channel.c:3770 (sofia/profile_1/<a href="mailto:6001@192.168.142.12">6001@192.168.142.12</a>) Callstate Change RINGING -&gt; ACTIVE<br>[DEBUG] sofia.c:6858 Channel sofia/profile_1/<a href="mailto:6001@192.168.142.12">6001@192.168.142.12</a> entering state [completed][200]<br>[DEBUG] switch_ivr.c:623 sofia/profile_1/<a href="mailto:6001@192.168.142.12">6001@192.168.142.12</a> Command Execute playback(/sounds/ivr/ivr_intro.mp3)<br>EXECUTE sofia/profile_1/<a href="mailto:6001@192.168.142.12">6001@192.168.142.12</a> playback(/sounds/ivr/ivr_intro.mp3)<br>[DEBUG] switch_ivr_play_say.c:1467 Codec Activated L16@8000hz 1 channels 20ms<br>[DEBUG] sofia.c:6858 Channel sofia/profile_1/<a href="mailto:6001@192.168.142.12">6001@192.168.142.12</a> entering state [ready][200]<br>[DEBUG] switch_rtp.c:6706 Correct audio ip/port confirmed.<br>[DEBUG] switch_rtp.c:1845 rtcp_stats_init: audio ssrc[1125545576] base_seq[28137]<br>[DEBUG] switch_ivr_play_say.c:1910 done playing file /sounds/ivr/ivr_intro.mp3<br>[DEBUG] switch_ivr.c:623 sofia/profile_1/<a href="mailto:6001@192.168.142.12">6001@192.168.142.12</a> Command Execute playback(/sounds/ivr/ivr_menu.mp3)<br>EXECUTE sofia/profile_1/<a href="mailto:6001@192.168.142.12">6001@192.168.142.12</a> playback(/sounds/ivr/ivr_menu.mp3)<br>[DEBUG] switch_ivr_play_say.c:1467 Codec Activated L16@8000hz 1 channels 20ms<br>[DEBUG] switch_ivr.c:623 sofia/profile_1/<a href="mailto:6001@192.168.142.12">6001@192.168.142.12</a> Command Execute playback(/sounds/system/transfer_request.mp3)<br>EXECUTE sofia/profile_1/<a href="mailto:6001@192.168.142.12">6001@192.168.142.12</a> playback(/sounds/system/transfer_request.mp3)<br>[DEBUG] switch_ivr_play_say.c:1467 Codec Activated L16@8000hz 1 channels 20ms<br>[DEBUG] switch_ivr.c:623 sofia/profile_1/<a href="mailto:6001@192.168.142.12">6001@192.168.142.12</a> Command Execute playback(/sounds/system/chr_1.mp3)<br>EXECUTE sofia/profile_1/<a href="mailto:6001@192.168.142.12">6001@192.168.142.12</a> playback(/sounds/system/chr_1.mp3)<br>[DEBUG] switch_ivr_play_say.c:1467 Codec Activated L16@8000hz 1 channels 20ms<br>[DEBUG] switch_ivr.c:623 sofia/profile_1/<a href="mailto:6001@192.168.142.12">6001@192.168.142.12</a> Command Execute playback(/sounds/system/chr_2.mp3)<br>EXECUTE sofia/profile_1/<a href="mailto:6001@192.168.142.12">6001@192.168.142.12</a> playback(/sounds/system/chr_2.mp3)<br>[DEBUG] switch_ivr_play_say.c:1467 Codec Activated L16@8000hz 1 channels 20ms<br>[DEBUG] switch_ivr.c:623 sofia/profile_1/<a href="mailto:6001@192.168.142.12">6001@192.168.142.12</a> Command Execute playback(/sounds/system/chr_3.mp3)<br>EXECUTE sofia/profile_1/<a href="mailto:6001@192.168.142.12">6001@192.168.142.12</a> playback(/sounds/system/chr_3.mp3)<br>[DEBUG] switch_ivr_play_say.c:1467 Codec Activated L16@8000hz 1 channels 20ms<br>[DEBUG] switch_ivr_play_say.c:1910 done playing file <div class="gmail_default" style="font-family:monospace,monospace;display:inline">​​</div>/sounds/system/chr_3.mp3<br>[DEBUG] switch_ivr_play_say.c:1910 done playing file /sounds/system/chr_2.mp3<br>[DEBUG] switch_ivr_play_say.c:1910 done playing file /sounds/system/chr_1.mp3</font></div></div></div>