PDA

View Full Version : Asterisk 1.2 Raw TCP Stream for MOH



rchadwel
2006-09-18, 07:44
Is there a way to output a raw TCP stream (not using http) from the SlimServer Linux version?

Reason: Asterisk v1.2 can use a utility called "StreamPlayer" to stream raw TCP output that will allow SlimServer to, well - serve, as the MOH provider for that PBX system without having to use MPG123 (another mp3 player).

If this were possible, it would be HUGE for the Asterisk community!

Thanks,

Rob

ps - Streamplayer uses the following format to access a stream:

application = /usr/bin/streamplayer 127.0.0.1 9000

Note that there is no place for the /stream.mp3 - just a URL and port

andyg
2006-09-18, 08:10
Have you tried this?

http://www.voip-info.org/wiki/view/Using+Slimserver+for+Music+on+Hold

rchadwel
2006-09-18, 12:05
I tried that first - several days ago, with no success. I have tried just about every implementation of MPG123 with very limited results and none of them acceptable.

Back to the original question with an addition: Is there a way to limit to 8k on the stream from SlimServer? (can't get much better on a phone) - I did not see where the drop-down option allowed for it.

Thanks,

Rob

Andreas
2006-09-18, 13:50
rchadwel wrote:
> Back to the original question with an addition: Is there away to limit
> to 8k on the stream from SlimServer (can't get much better on a phone)
> - I did not see where the drop-down option allowed for it.

When you connect to the stream a new player will be created.
>From the web interface you can select that player and then
reach it's settings. Under the Audio section in the dropdown
you can select the Lame Quality Level and the Bitrate Limiting.
Just set Lame to "9 Poor Quality, but fast" and the Bitrate to
lowest, ie. 64kbps and you're set!

rgds
/andreas

rchadwel
2006-09-18, 14:23
Thanks for the reply. It seems that the server is now setup to stream correctly.

I am guessing that Slimserver can't send raw TCP, so has anyone used Format_mp3 (Asterisk 1.2 native player) to get mp3 streams from Slimserver?

What did your musiconhold.conf look like?

Thanks,

Rob