Re: ARI play to channel without muting channel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 21, 2022 at 6:46 AM Fridrich Maximilian <M.Fridrich@xxxxxxxxxxx> 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
_______________________________________________
asterisk-app-dev mailing list
asterisk-app-dev@xxxxxxxxxxxxxxxx
http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev

[Index of Archives]     [Asterisk SS7]     [Asterisk Announcements]     [Asterisk Users]     [PJ SIP]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Linux API]

  Powered by Linux