<div dir="ltr"><div dir="ltr">On Fri, Oct 21, 2022 at 6:46 AM Fridrich Maximilian <<a href="mailto:M.Fridrich@commend.com">M.Fridrich@commend.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
we are developing a standard IVR application with ARI to record audio from a<br>
channel and play audio to it. We are recording the audio from the channel by<br>
creating an externalMedia channel and bridging it with the incoming channel<br>
(this streaming of audio is an external requirement). To play an audio file<br>
back to the user, we call the /channel/{channelId}/play endpoint.<br>
<br>
The problem is: When we call the /play endpoint, we no longer receive audio<br>
from that channel while the audio is playing.<br>
<br>
Does anyone have any idea how we could play an audio file to the channel while<br>
simultaneously receiving audio from it? Can we call /snoop on the channel and<br>
use the whisper feauture by playing to it? Or something along those lines?<br>
<br>
Ideally, we can use Asterisk built-in features without having to create media<br>
streams.<br></blockquote><div><br></div><div>You would use a snoop channel either for sending the audio to external media or for playback. What you're running into is that you can't do two things at once on a channel directly, which snoop helps with by allowing you access to the audio.</div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:tahoma,sans-serif"><div><font color="#073763">Joshua C. Colp</font></div><div><font color="#073763">Asterisk Project Lead</font></div><div><font color="#073763">Sangoma Technologies</font></div><div><font color="#073763">Check us out at <a href="http://www.sangoma.com/" target="_blank">www.sangoma.com</a> and <a href="http://www.asterisk.org/" target="_blank">www.asterisk.org</a></font></div></div></div></div></div></div></div></div></div></div></div></div>