[asterisk-users] live audio stream in asterisk

Arjan Kroon | Mobillion Arjan.Kroon at mobillion.nl
Fri Dec 24 13:36:40 UTC 2010


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




More information about the asterisk-users mailing list