[Home]

Summary:ASTERISK-16826: Wideband Streaming Music-On-Hold (slin16)
Reporter:Michel Belleau (malaiwah)Labels:
Date Opened:2010-10-18 12:45:59Date Closed:2011-07-26 15:00:59
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Resources/res_musiconhold
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:I'm using this to stream MOH from a local icecast service.

musiconhold.conf:
[default8]
mode=custom
application=/usr/bin/icestream.sh
format=slin

icestream.sh:
#!/bin/sh
/usr/bin/mpg123 -q -s http://localhost:8000/station.mp3 | sox -t raw -s -r 44100 -4 - -s -r 8000 -2 -c 1 -t raw -

It works great, but now that I have wideband capable phones I would like to stream the MOH in wideband. I tried setting that up:

musiconhold.conf:
[default16]
mode=custom
application=/usr/bin/icestream16.sh
format=slin16

icestream16.sh:
#!/bin/sh
/usr/bin/mpg123 -q -s http://localhost:8000/station.mp3 | sox -t raw -s -r 44100 -4 - -s -r 16000 -2 -c 1 -t raw -

"sox": -s is signed, -2 is 16 bits, -c 1 is mono, -r 16000 is 16khz
This is what I assume is the "slin16" format specification.

Using the "default16" music-on-hold, I get stuttered audio (sound on/off 10 or so times per second).
Comments:By: Leif Madsen (lmadsen) 2010-10-29 08:25:41

Hmmm, it sounds like you're really close to getting this working. I'm not 100% sure what the settings should be for slin16 and sox should be using, so perhaps there is something we can tweak there to make sure everything is in sync.

By: Russell Bryant (russell) 2011-07-26 15:00:51.804-0500

Per the Asterisk maintenance timeline page at http://www.asterisk.org/asterisk-versions maintenance (bug) support for the 1.4 and 1.6.x branches has ended. For continued maintenance support please move to the 1.8 branch which is a long term support (LTS) branch. For more information about branch support, please see https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions

If this is still an issue, please open a new issue so it can be re-triaged appropriately. Thanks!

By: Tim Osman (obeliks) 2011-11-26 17:34:50.251-0600

Solution posted http://forums.asterisk.org/viewtopic.php?t=74366
It should be applied to 1.8 as well as it also assumes all codecs use 8kHz sampling.