[asterisk-bugs] [Asterisk 0016086]: No streaming musiconhold when using dial command

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Oct 16 13:11:45 CDT 2009


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16086 
====================================================================== 
Reported By:                jongerenchaos
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16086
Category:                   Resources/res_musiconhold
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-10-16 13:11 CDT
Last Modified:              2009-10-16 13:11 CDT
====================================================================== 
Summary:                    No streaming musiconhold when using dial command
Description: 
I use a shoutcast server incombination with asterisk. Asterisk can play the
shoutcast stream with the musiconhold application.

I use the application as following:

file /etc/asterisk/stream.sh
#!/bin/bash
mpg123 -q -r 8000 -f 8192 -s --mono http://91.121.208.150:8080

file /etc/asterisk/musiconhold.conf
[default]
mode=custom
dir=/var/lib/asterisk/mohmp3-empty
application=/etc/asterisk/stream.sh

In the dialplan i use:
exten => 1,1,Musiconhold(default)

This works great and i hear the shoutcast streaming solution.

With the command:
exten => 1,1,Dial(SIP/NUMBER at outbound,260,tm(default)) or
exten => 1,1,Dial(SIP/NUMBER at outbound,260,tm)
I get the error (no audio):
[Oct 16 20:02:15] WARNING[17784]: chan_sip.c:6308 sip_write: Asked to
transmit frame type 64, while native formats is 0x4 (ulaw)(4) read/write =
0x4 (ulaw)(4)/0x4 (ulaw)(4)

Is there a solution for it?
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-10-16 13:11 jongerenchaos  New Issue                                    
2009-10-16 13:11 jongerenchaos  Asterisk Version          => SVN             
2009-10-16 13:11 jongerenchaos  Regression                => No              
2009-10-16 13:11 jongerenchaos  SVN Branch (only for SVN checkouts, not tarball
releases) => N/A             
======================================================================




More information about the asterisk-bugs mailing list