Record audio and stream to an API

Hi all,

Is it possible to record audio and while I’m recording it I stream it to a web service (RESTfull) API ?

I’m trying to accomplish that but any pointer you might know about recording audio and streaming will help

Thanks!

Why you don’t spy the channel and stream the audio output of the ChanSpy command. Then After finish the call upload the recording to you web service.

wiki.asterisk.org/wiki/display/ … on_ChanSpy

He asking how to stream the audio in Real time.
Not record the conversation and then upload it.

gnu the use of the chanspy command is for the capturing of realtime audio and then the streaming of real time audio. record the conversation and then upload it, it is an optional. But it looks like you have a better idea for make this task, could you please share it?