Page 1 of 1

external player, asterisk music on hold

PostPosted: Mon Oct 28, 2013 11:37 pm
by espressodaily
I have asterisk for my house. It's an open source PBX. Asterisk supports streaming music for music on hold. Basically I need a URL to a playlist that will always be available and it must auto play.
I want to use a subsonic stream for asterisk. What is the process for this?

Thanks in advance

fred

Re: external player, asterisk music on hold

PostPosted: Fri Jul 10, 2015 9:19 pm
by espressodaily
any help on this?

Re: external player, asterisk music on hold

PostPosted: Sat Jul 11, 2015 4:34 am
by alphawave7
What have you tried, and what was the result? Have you tried a Share link of the playlist? Does Asterisk have a place to insert the link?

Re: external player, asterisk music on hold

PostPosted: Mon Aug 10, 2015 3:53 am
by clipbrd
Fred ...

Although there are many audio formats that Asterisk can play, Asterisk will only play "AUDIO files" (music or announcement audio files) at a bit rate of 128 and 8khz, it's unlikely you have any files in your music collection at that low a rate.. you can however use files from your collection and resample them to the rate for asterisk, then copy those resampled files to your PBX drive /var/lib/asterisk/moh, at least on Asterisk4, Asterisk10 / FreePBX and Trixbox this is the location, I doubt it's different on any system. I have left my files in .wav, it's just easier to edit anything if need be..
Also, at that rate, they are already small, a 3 minute .wav song is only 3 megs.
I know it seems dumb to have music folders all over the place, but consider that anyone listening to your MOH, would never possibly listen to your entire collection.. so just pick 50 songs you'd love to share with others...

I have setup the radio streamers into FreePBX and TrixBox before (I have no idea as to what bit rates they use), but something always goes wrong. I find files in the MOH folder and subfolders (subfolders for other music IE: Christmas etc. (not default)) works best and never fails..

There is no way to link your PBX to the Subsonic system, only possible way might be if you are able to mount the Subsonic drive from the PBX computer via your network, but unless the 2 are Linux,, it will be a pain to try and mount an NTFS drive from Linux, I found it simpler and faster to resample the files..

Addition,, if you are using analog phones on your PBX via ATAs,, the hold button does not tell the PBX you've put the caller on hold.. this feature will only work if you are using IP phones..

clipbrd