Arjan Kroon | Mobillion
2010-Dec-24 13:36 UTC
[asterisk-users] live audio stream in asterisk
Hi,
Is it possible to use a live audio stream in asterisk
I want to call a number and then hear an external audio stream.
For example http://www.radioveronica.nl/radioveronicaplayer/radioveronica.asx
I thought it was possible to use musiconhold, but I did not get it working.
This is my musiconhold.conf
;
; Music on Hold -- Sample Configuration
;
[general]
[default]
mode=custum
directory=/var/lib/asterisk/mohmp3/stream,http://www.radioveronica.nl/radioveronicaplayer/radioveronica.asx
This is my extension.conf
exten => _X.,1,Answer
exten => _X.,n,MusicOnHold()
If I look in the CLI I get the following error:
Executing [s at test_moh:2] MusicOnHold("SIP/arjankroon-00000000",
"") in new stack
-- Music class default requested but no musiconhold loaded.
[Dec 24 14:34:03] NOTICE[9030]: channel.c:4006 __ast_read: Dropping incompatible
voice frame on SIP/arjankroon-00000000 of format gsm since our native format has
changed to 0x4 (ulaw)
I'm using asterisk 1.8
Can anybody help me?
Kind regards,
Arjan Kroon
Mobillion BV
On Fri, Dec 24, 2010 at 02:36:40PM +0100, Arjan Kroon | Mobillion wrote:> Is it possible to use a live audio stream in asteriskYes, there are examples on: http://www.voip-info.org/wiki/view/Asterisk+config+musiconhold.conf#Exampleusingasxmmswmvstreamsoranythingth BTW You have a typo in your config (custum should be custom). -- Daniel Tryba