<div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace"><font face="monospace, monospace" style="font-size:12.8px"><div class="gmail_default" style="display:inline">Now I'm having another problem.<br></div><br>Let's say <div class="gmail_default" style="display:inline">I</div> have <div class="gmail_default" style="display:inline">some </div>audio files to playback<br><br>file_1.mp3 -> <div class="gmail_default" style="display:inline"></div>hello, you have pendencies<br>file_2.mp3 -> to inform payment<br>file_3.mp3 -> please press<br>file_4.mp3 -> one<br><br><div class="gmail_default" style="display:inline">Then, i do execute playback, without LOCK (because I need to garb DTMF and send BREAK to stop playback)<br></div><br>playback="file_1.mp3!file_2.<wbr>mp3!file_3.mp3!file_4.mp3"<br><br>FS must say<br>-> hello, you have pendencies, to inform payment, please press, one<br><br>But FS is saying<br>-> hello, you have<div class="gmail_default" style="display:inline"> </div>.....<div class="gmail_default" style="display:inline"> </div>payment, please ... one<br><br>The scenario is<br><br>2001 --> [FS A] -- gateway --> [FS B] --> playfiles<br><br>If the scenario is<br><br>2001 --> [FS A] --> playfiles<br><br>The files are played correct<br><br><div class="gmail_default" style="display:inline"></div></font><div class="gmail_default" style="font-size:12.8px;display:inline"></div><span style="font-size:12.8px">This<div class="gmail_default" style="display:inline"> is</div> happen<div class="gmail_default" style="display:inline">ing</div> with the same codec in all legs</span><div style="font-family:arial,sans-serif;font-size:12.8px"><span style="font-family:monospace,monospace"></span><font face="monospace, monospace"><div class="gmail_default" style="display:inline"></div><br>I already enable and disable transcoding, <div class="gmail_default" style="display:inline">without success</div><br><br>There is the log of FS A<br><br><a href="https://pastebin.freeswitch.org/view/b783fc14" target="_blank">https://pastebin.freeswitch.<wbr>org/view/b783fc14</a><br><br></font><span style="font-family:monospace,monospace">A<div class="gmail_default" style="display:inline">nd log of </div>FS B</span><div><span style="font-family:monospace,monospace"></span><font face="monospace, monospace"><div class="gmail_default" style="display:inline"></div><br><a href="https://pastebin.freeswitch.org/view/95aa3580" target="_blank">https://pastebin.freeswitch.<wbr>org/view/95aa3580</a><br></font><div class="gmail-yj6qo gmail-ajU"><div id="gmail-:2ut" class="gmail-ajR" tabindex="0"><img class="gmail-ajT" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif" style="opacity: 0.3;"></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-09-01 19:43 GMT-04:00 Luiz Fernando Softov <span dir="ltr"><<a href="mailto:fernando@softov.com.br" target="_blank">fernando@softov.com.br</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><font face="monospace, monospace"><div class="gmail_default" style="font-family:monospace,monospace;display:inline">Now I'm having another problem.<br></div><br>Let's say <div class="gmail_default" style="font-family:monospace,monospace;display:inline">I</div> have <div class="gmail_default" style="font-family:monospace,monospace;display:inline">some </div>audio files to playback<br><br>file_1.mp3 -> <div class="gmail_default" style="font-family:monospace,monospace;display:inline"></div>hello, you have pendencies<br>file_2.mp3 -> to inform payment<br>file_3.mp3 -> please press<br>file_4.mp3 -> one<br><br><div class="gmail_default" style="font-family:monospace,monospace;display:inline">Then, i do execute playback, without LOCK (because I need to garb DTMF and send BREAK to stop playback)<br></div><br>playback="file_1.mp3!file_2.<wbr>mp3!file_3.mp3!file_4.mp3"<br><br>FS must say<br>-> hello, you have pendencies, to inform payment, please press, one<br><br>But FS is saying<br>-> hello, you have<div class="gmail_default" style="font-family:monospace,monospace;display:inline"> </div>.....<div class="gmail_default" style="font-family:monospace,monospace;display:inline"> </div>payment, please ... one<br><br>The scenario is<br><br>2001 --> [FS A] -- gateway --> [FS B] --> playfiles<br><br>If the scenario is<br><br>2001 --> [FS A] --> playfiles<br><br>The files are played correct<br><br><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">This<div class="gmail_default" style="font-family:monospace,monospace;display:inline"> is</div> happen<div class="gmail_default" style="font-family:monospace,monospace;display:inline">ing</div> with the same codec in all legs</span><div><span style="font-family:monospace,monospace"></span><font face="monospace, monospace"><div class="gmail_default" style="font-family:monospace,monospace;display:inline"></div><br>I already enable and disable transcoding, <div class="gmail_default" style="font-family:monospace,monospace;display:inline">without success</div><br><br>There is the log of FS A<br><br><a href="https://pastebin.freeswitch.org/view/b783fc14" target="_blank">https://pastebin.freeswitch.<wbr>org/view/b783fc14</a><br><br></font><span style="font-family:monospace,monospace">A<div class="gmail_default" style="font-family:monospace,monospace;display:inline">nd log of </div>FS B</span><div><span style="font-family:monospace,monospace"></span><font face="monospace, monospace"><div class="gmail_default" style="font-family:monospace,monospace;display:inline"></div><br><a href="https://pastebin.freeswitch.org/view/95aa3580" target="_blank">https://pastebin.freeswitch.<wbr>org/view/95aa3580</a><br></font><div class="gmail_default"><br><br><br><br></div></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2016-08-27 17:41 GMT-04:00 Luiz Fernando Softov <span dir="ltr"><<a href="mailto:fernando@softov.com.br" target="_blank">fernando@softov.com.br</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace">Thanks, this do the job...</div></div><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><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.1<wbr>42.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.1<wbr>42.12</a> Command Execute playback(/sounds/ivr/ivr_intro<wbr>.mp3)<br>EXECUTE sofia/profile_1/<a href="mailto:6001@192.168.142.12" target="_blank">6001@192.168.1<wbr>42.12</a> playback(/sounds/ivr/ivr_intro<wbr>.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.1<wbr>42.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.1<wbr>42.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.1<wbr>42.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.1<wbr>42.12</a> Command Execute playback(/sounds/system/transf<wbr>er_request.mp3)<br>EXECUTE sofia/profile_1/<a href="mailto:6001@192.168.142.12" target="_blank">6001@192.168.1<wbr>42.12</a> playback(/sounds/system/transf<wbr>er_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.1<wbr>42.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.1<wbr>42.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.1<wbr>42.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.1<wbr>42.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.1<wbr>42.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.1<wbr>42.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.freeswitchsolutions<wbr>.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.o<wbr>rg</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.freeswi<wbr>tch.org</a></span><br><span><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a></span><br><span>UNSUBSCRIBE:http://<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">lists.frees<wbr>witch.org/mailman/options/free<wbr>switch-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" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.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.o<wbr>rg</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.freeswi<wbr>tch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/free<wbr>switch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>