[asterisk-app-dev] ARI play to channel without muting channel

Joshua C. Colp jcolp at digium.com
Fri Oct 21 04:56:28 CDT 2022


On Fri, Oct 21, 2022 at 6:46 AM Fridrich Maximilian <M.Fridrich at commend.com>
wrote:

> Hi,
>
> we are developing a standard IVR application with ARI to record audio from
> a
> channel and play audio to it. We are recording the audio from the channel
> by
> creating an externalMedia channel and bridging it with the incoming channel
> (this streaming of audio is an external requirement). To play an audio file
> back to the user, we call the /channel/{channelId}/play endpoint.
>
> The problem is: When we call the /play endpoint, we no longer receive audio
> from that channel while the audio is playing.
>
> Does anyone have any idea how we could play an audio file to the channel
> while
> simultaneously receiving audio from it? Can we call /snoop on the channel
> and
> use the whisper feauture by playing to it? Or something along those lines?
>
> Ideally, we can use Asterisk built-in features without having to create
> media
> streams.
>

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.

-- 
Joshua C. Colp
Asterisk Project Lead
Sangoma Technologies
Check us out at www.sangoma.com and www.asterisk.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-app-dev/attachments/20221021/5fc635ec/attachment.html>


More information about the asterisk-app-dev mailing list