[Home]

Summary:ASTERISK-14999: No streaming musiconhold when using dial command
Reporter:jongerenchaos (jongerenchaos)Labels:
Date Opened:2009-10-16 13:11:45Date Closed:2010-01-06 14:18:08.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Resources/res_musiconhold
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
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@outbound,260,tm(default)) or
exten => 1,1,Dial(SIP/NUMBER@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?
Comments:By: Elazar Broad (ebroad) 2009-10-18 15:27:53

I am unable to reproduce this. Can you please post a sip debug and a verbose trace. You can accomplish this by issuing:

sip set debug on
core set verbose 3

in the Asterisk CLI.

Thanks!

By: Leif Madsen (lmadsen) 2009-11-10 09:01:58.000-0600

I'm closing this for now as "unable to reproduce". Please reopen if you have additional information to provide. Thanks!

By: Leif Madsen (lmadsen) 2010-01-06 14:18:08.000-0600

fixed in trunk commit 235740, issue ASTERISK-13606