<div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace">Thanks, this do the job...</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-08-26 8:01 GMT-04:00 Dave Horton <span dir="ltr"><<a href="mailto:daveh@beachdognet.com" target="_blank">daveh@beachdognet.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>Can't you play all the files in a single command using a playback delimiter? <br><br>Sent from my iPhone</div><div><div class="h5"><div><br>On Aug 26, 2016, at 12:34 AM, Luiz Fernando Softov <<a href="mailto:fernando@softov.com.br" target="_blank">fernando@softov.com.br</a>> 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> <extension name="VoiprExt"><br> <condition><br> <action <div class="gmail_default" style="font-family:monospace,monospace;display:inline"></div>application="socket" data="<a href="http://127.0.0.1:3012" target="_blank">127.0.0.1:3012</a> async full"/><br> <action application="hangup"/><br> </condition><br> </extension><br><br>I receive a call, and play some files (sometimes http:// or shout://).<br>Using command action playback.<br><br>sendmsg <uuid><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, </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'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="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 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'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" target="_blank">6001@192.168.<wbr>142.12</a>) Callstate Change RINGING -> ACTIVE<br>[DEBUG] sofia.c:6858 Channel sofia/profile_1/<a href="mailto:6001@192.168.142.12" target="_blank">6001@192.168.<wbr>142.12</a> entering state [completed][200]<br>[DEBUG] switch_ivr.c:623 sofia/profile_1/<a href="mailto:6001@192.168.142.12" target="_blank">6001@192.168.<wbr>142.12</a> Command Execute playback(/sounds/ivr/ivr_<wbr>intro.mp3)<br>EXECUTE sofia/profile_1/<a href="mailto:6001@192.168.142.12" target="_blank">6001@192.168.<wbr>142.12</a> playback(/sounds/ivr/ivr_<wbr>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" target="_blank">6001@192.168.<wbr>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<a href="tel:%5B1125545576" value="+551125545576" target="_blank">[1125545576</a>] 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" target="_blank">6001@192.168.<wbr>142.12</a> Command Execute playback(/sounds/ivr/ivr_menu.<wbr>mp3)<br>EXECUTE sofia/profile_1/<a href="mailto:6001@192.168.142.12" target="_blank">6001@192.168.<wbr>142.12</a> playback(/sounds/ivr/ivr_menu.<wbr>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" target="_blank">6001@192.168.<wbr>142.12</a> Command Execute playback(/sounds/system/<wbr>transfer_request.mp3)<br>EXECUTE sofia/profile_1/<a href="mailto:6001@192.168.142.12" target="_blank">6001@192.168.<wbr>142.12</a> playback(/sounds/system/<wbr>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" target="_blank">6001@192.168.<wbr>142.12</a> Command Execute playback(/sounds/system/chr_1.<wbr>mp3)<br>EXECUTE sofia/profile_1/<a href="mailto:6001@192.168.142.12" target="_blank">6001@192.168.<wbr>142.12</a> playback(/sounds/system/chr_1.<wbr>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" target="_blank">6001@192.168.<wbr>142.12</a> Command Execute playback(/sounds/system/chr_2.<wbr>mp3)<br>EXECUTE sofia/profile_1/<a href="mailto:6001@192.168.142.12" target="_blank">6001@192.168.<wbr>142.12</a> playback(/sounds/system/chr_2.<wbr>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" target="_blank">6001@192.168.<wbr>142.12</a> Command Execute playback(/sounds/system/chr_3.<wbr>mp3)<br>EXECUTE sofia/profile_1/<a href="mailto:6001@192.168.142.12" target="_blank">6001@192.168.<wbr>142.12</a> playback(/sounds/system/chr_3.<wbr>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></div></div><blockquote type="cite"><div><span>______________________________<wbr>______________________________<wbr>_____________</span><br><span>Professional FreeSWITCH Consulting Services: </span><br><span><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a></span><br><span><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.<wbr>freeswitchsolutions.com</a></span><br><span></span><br><span>Official FreeSWITCH Sites</span><br><span><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span><br><span><a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.<wbr>org</a></span><br><span><a href="http://www.cluecon.com" target="_blank">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" target="_blank">FreeSWITCH-users@lists.<wbr>freeswitch.org</a></span><br><span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a></span><br><span>UNSUBSCRIBE:http://<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a></span><br><span><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span></div></blockquote></div><br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.<wbr>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.<wbr>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">FreeSWITCH-users@lists.<wbr>freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/<wbr>mailman/listinfo/freeswitch-<wbr>users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.<wbr>freeswitch.org/mailman/<wbr>options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>