[asterisk-dev] Regarding realtime audio streaming from mixmonitor

Jean Aunis jean.aunis at prescom.fr
Fri Jul 6 04:00:50 CDT 2018


Le 06/07/2018 à 09:58, Mani Kanta Gadde a écrit :
> Hi,
> We are trying to stream audio coming from calls to an NLP engine to 
> get the text transcription, for this we created a socket 
> in_app_mixmonitor.c_ and we are writing audio frames to socket 
> descriptor. We have tried with TCP(SOCK_STREAM) and UDP(SOCK_DGRAM) 
> protocols to send the audio frames to the socket server.
>
> We are using latest asterisk complied from GitHub source code 
> (asterisk repo).
>
> Here are some of the suggestions I found on asterisk forums
> http://forums.asterisk.org/viewtopic.php?f=13&t=89365#p196720
> on this thread, it was suggested to use CHANSPY, but we have edited 
> mixmonitor code to both record and stream in realtime, which has 
> sufficed our needs.
>
> Here is the socket code we used inside the_mixmonitor_thread_function 
> in app_mixmonitor.c file.
> <snip>
>
>

As suggested in the forum, it is probably easier to do this with the 
ChanSpy application, combined with a UnicastRTP channel.

Regards

Jean Aunis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20180706/6c22573a/attachment.html>


More information about the asterisk-dev mailing list