<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Can't you play all the files in a single command using a playback delimiter?&nbsp;<br><br>Sent from my iPhone</div><div><br>On Aug 26, 2016, at 12:34 AM, Luiz Fernando Softov &lt;<a href="mailto:fernando@softov.com.br">fernando@softov.com.br</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><font face="monospace, monospace">Hi all,<br><br>I'm using FS with Event Socket Outbound.<br><br>Eg: The user calls to XXX and the calls goes to socket.<br><br>&nbsp; &nbsp; &lt;extension name="VoiprExt"&gt;<br>&nbsp; &nbsp; &nbsp; &lt;condition&gt;<br>&nbsp; &nbsp; &nbsp; &lt;action <div class="gmail_default" style="font-family:monospace,monospace;display:inline">​​</div>application="socket" data="<a href="http://127.0.0.1:3012">127.0.0.1:3012</a> async full"/&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="hangup"/&gt;<br>&nbsp; &nbsp; &nbsp; &lt;/condition&gt;<br>&nbsp; &nbsp; &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'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​,&nbsp;</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">&nbsp;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>&nbsp;can'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&nbsp;</div></font><div class="gmail_default" style="font-family:monospace,monospace;display:inline">​</div><span style="font-family:monospace,monospace">application="socket"</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'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'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&nbsp;asynchronous&nbsp;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'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">&nbsp;</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>
</div></blockquote><blockquote type="cite"><div><span>_________________________________________________________________________</span><br><span>Professional FreeSWITCH Consulting Services: </span><br><span><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a></span><br><span><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a></span><br><span></span><br><span>Official FreeSWITCH Sites</span><br><span><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></span><br><span><a href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a></span><br><span><a href="http://www.cluecon.com">http://www.cluecon.com</a></span><br><span></span><br><span>FreeSWITCH-users mailing list</span><br><span><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></span><br><span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span><br><span>UNSUBSCRIBE:http://<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">lists.freeswitch.org/mailman/options/freeswitch-users</a></span><br><span><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></span></div></blockquote></body></html>