Poor Admin's Sonos

Today my place of work is having each department decorate for Halloween, As part of the festivities I’ve set up a bunch of old phones to provide music.

I spun up a quick VM with Asterisk 13 on the same network as my phones and I’m now Multicasting G722 music on hold to select phones.

It was pretty trivial to do but fun nonetheless.

My musiconhold configuration:

Class: party16
Mode: custom
Directory: nodir
Application: /usr/bin/mpg123 -q -r 16000 -b 2048 --mono -s -Z --list /var/lib/asterisk/moh/party/playlist.m3u
Format: slin16

And to broadcast it to my phones:

channel originate MulticastRTP/basic/ application MusicOnHold party16

No dialplan was used in the making of this project :wink:


I forgot to say when I started this quick little project I planned to just multicast to my phones using ffmpeg or VLC like I’d seen examples of in the Snom Wiki http://wiki.snom.com/Category:HowTo:Multicast_Audio

Unfortunately it looks like there have been internal changes to ffmpeg that prevent both it and VLC from streaming successfully and having the phones decode it.

I also fount Mast https://www.aelius.com/njh/mast/ but was unable to get it to compile under Debian 8 so I’m uncertain if it works.

Nice :slight_smile:
“Everything should be made as simple as possible, but no simpler