Better Way Of Streaming Radio Than “musiconhold” For Asterisk 17.4 ?
Way back in 2016 the only way to allow callers to listen in to a stream “at will” was to do the following:
moh.conf
[radio]
mode=custom application=/usr/bin/mplayer https://example.com/stream.mp3 -quiet -ao pcm:file=/dev/stdout -af volume=5,resample
3 thoughts on - Better Way Of Streaming Radio Than “musiconhold” For Asterisk 17.4 ?
Hi Jonathan,
I’d probably go down the external media route in the ARI now – you make your own RTP server and provide your own RTP back to asterisk
Thanks Dan – might have to scratch my head over that one for a while!
The phrase “you make your own RTP server” has made me all twitchy 😉
Jonathan
its fairly painless now….
https://github.com/nimbleape/asterisk-dialogflow-rtp-audioserver https://github.com/nimbleape/asterisk-dialogflow-ari-bridge
Theres 2 repos – one for the ari bridge – 1:1 call -> external media and another for talking to dialogflow…. but theres no reason that couldnt go out to a radio station stream for example……