[asterisk-bugs] [Asterisk 0018157]: Wideband Streaming Music-On-Hold (slin16)

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Oct 18 12:45:59 CDT 2010


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18157 
====================================================================== 
Reported By:                malaiwah
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18157
Category:                   Resources/res_musiconhold
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.6.2.11 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-10-18 12:45 CDT
Last Modified:              2010-10-18 12:45 CDT
====================================================================== 
Summary:                    Wideband Streaming Music-On-Hold (slin16)
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). 
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-10-18 12:45 malaiwah       New Issue                                    
2010-10-18 12:45 malaiwah       Asterisk Version          => 1.6.2.11        
2010-10-18 12:45 malaiwah       Regression                => No              
2010-10-18 12:45 malaiwah       SVN Branch (only for SVN checkouts, not tarball
releases) => N/A             
======================================================================




More information about the asterisk-bugs mailing list