<div><div dir="auto">You don’t have to use that method, </div></div><div dir="auto"><br></div><div dir="auto">sendmsg: <uuid></div><div dir="auto">call-command: execute</div><div dir="auto">exec-app-name: playback</div><div dir="auto">exec-app-args: file.wav</div><div dir="auto">event-lock:true</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><pre class="brush: xml; gutter: false; theme: Emacs" style="margin-top:0px;margin-bottom:0px;padding:0px;border:0px;outline:0px;font-size:12px;line-height:1.3;overflow-x:auto;word-break:normal;color:rgb(51,51,51);background-color:rgb(255,255,255)"></pre><pre class="brush: xml; gutter: false; theme: Emacs" style="margin-top:0px;margin-bottom:0px;padding:0px;border:0px;outline:0px;font-size:12px;line-height:1.3;overflow-x:auto;word-break:normal;color:rgb(51,51,51);background-color:rgb(255,255,255)"></pre><pre class="brush: xml; gutter: false; theme: Emacs" style="margin-top:0px;margin-bottom:0px;padding:0px;border:0px;outline:0px;font-size:12px;line-height:1.3;overflow-x:auto;word-break:normal;color:rgb(51,51,51);background-color:rgb(255,255,255)"></pre><br></div><div><br><div class="gmail_quote"><div dir="ltr">On Wed, Oct 17, 2018 at 7:02 AM Eugene Prokopiev <<a href="mailto:enp@itx.ru">enp@itx.ru</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Is it possible to play some file into parked call via inbound ESL<br>
connection? I have dialplan like this:<br>
<br>
<extension name="in"><br>
<condition><br>
<action application="park"/><br>
</condition><br>
</extension><br>
<br>
I tried:<br>
<br>
$ telnet localhost 8021<br>
<br>
auth ClueCon<br>
<br>
Content-Type: command/reply<br>
Reply-Text: +OK accepted<br>
<br>
event plain CHANNEL_PARK<br>
<br>
Content-Type: command/reply<br>
Reply-Text: +OK event listener enabled plain<br>
<br>
Content-Length: 5397<br>
Content-Type: text/event-plain<br>
<br>
Event-Name: CHANNEL_PARK<br>
...<br>
Unique-ID: 783e9456-d1f2-11e8-a77f-95321f80797f<br>
...<br>
<br>
api uuid_answer 783e9456-d1f2-11e8-a77f-95321f80797f<br>
<br>
Content-Type: api/response<br>
Content-Length: 4<br>
<br>
+OK<br>
<br>
api uuid_displace 783e9456-d1f2-11e8-a77f-95321f80797f start<br>
/usr/share/freeswitch/sounds/ru/RU/elena/ivr/8000/ivr-welcome.wav<br>
<br>
Content-Type: api/response<br>
Content-Length: 12<br>
<br>
+OK Success<br>
<br>
api uuid_broadcast 783e9456-d1f2-11e8-a77f-95321f80797f<br>
playback::/usr/share/freeswitch/sounds/ru/RU/elena/ivr/8000/ivr-welcome.wav<br>
<br>
Content-Type: api/response<br>
Content-Length: 17<br>
<br>
+OK Message sent<br>
<br>
api uuid_kill 783e9456-d1f2-11e8-a77f-95321f80797f<br>
<br>
Content-Type: api/response<br>
Content-Length: 4<br>
<br>
So, both api uuid_displace and api uuid_broadcast returns immediately<br>
with +OK. Is it possible to play and wait until the end of file? Or<br>
this is possible via sendmsg instead of api and suscribing on<br>
PLAYBACK_STOP event?<br>
<br>
-- <br>
WBR,<br>
Eugene Prokopiev<br>
<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></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-size:12.8px"><font color="#000000"><img src="https://hipchat.freeswitch.org/files/1/9111/w0eGOzyOVyZQdMg/email_logo.png" width="200" height="66"><br></font></div><div style="font-size:12.8px"><p dir="ltr" style="font-size:12.8px;line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><font color="#000000">Brian West | Co-founder and Developer</font></span></p><p style="font-size:12.8px;line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><font color="#000000">Need Commercial support? email <a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a> </font></span></p><p dir="ltr" style="font-size:12.8px;line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><font color="#000000">FreeSWITCH Solutions | <a href="https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g" style="color:rgb(17,85,204)" target="_blank">17345 Civic Drive #2531 Brookfield, WI 53045</a></font></span></p><p dir="ltr" style="font-size:12.8px;line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><font color="#000000"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Email: </span><span style="color:rgb(17,85,204);font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><a href="mailto:brian@freeswitch.com" target="_blank">brian@freeswitch.com</a></span></font></p><p dir="ltr" style="font-size:12.8px;line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><font color="#000000">Mobile: 918-424-9378</font></span></p><p dir="ltr" style="font-size:12.8px;line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left:4.5pt"><font color="#000000"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Website: </span><a href="https://www.freeswitch.com/" style="color:rgb(17,85,204)" target="_blank"><span style="font-size:8pt;font-family:Arial;background-color:transparent;vertical-align:baseline;white-space:pre-wrap">https://www.FreeSWITCH.com</span></a></font></p><p dir="ltr" style="font-size:12.8px;line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="background-color:transparent;font-size:9pt;font-family:Arial;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap"><a href="https://www.facebook.com/freeswitch" target="_blank"><img alt="https://www.facebook.com/signalwireinc?src=email " src="https://lh6.googleusercontent.com/AYfRoSNaDNtMPRMevPn_GqcVEMd5NDRFi0GlluGUWzV6I5TAY_3T2-Tt0IuIXeUtEdYsgNsM8DOYKRKhjmrG_-n2Ga-LCnoNk46sO8VyEma1sBFYdiGJcLRUvkrD1CYHN79qimeg" width="31" height="31" style="border:none"></a> </span><span style="background-color:transparent;font-size:9pt;font-family:Tahoma;color:rgb(0,0,0);vertical-align:baseline;white-space:pre-wrap"><a href="https://twitter.com/freeswitch" target="_blank"><img alt="https://twitter.com/freeswitch" src="https://lh3.googleusercontent.com/W4SqXyybH2qdAozvtoKjcz736qOjk9LHDwldvs1ahc-WVU0putVMSsUH474KDrJ32jsqi6JDjyUWxqeEkN5I1xSlC5ShYrd1b8NIMUkDzDrtbWQfa6A_90UcygqesBtRLgeFirKa" width="31" height="31" style="border:none"></a></span><br></p></div></div></div></div></div></div></div></div></div></div></div>