[Asterisk-Users] Streaming calls to the Internet - A Mini How-To

Barton Hodges barton at gcmcomputers.com
Thu Mar 11 09:19:52 MST 2004


I was searching for a way to stream Asterisk channels onto the
Internet, but never found a source that described the steps.  This is
a very rough mini how-to.  You cannot simply cut and paste all of the
code below without modifications to suit your needs.  Feel free to
modify, improve, etc. :)

Install, configure, and start Icecast (http://www.icecast.org/)
Install Ices2 (http://www.icecast.org/ices.php)
Modify asterisk/contrib/asterisk-ices.xml as needed.

Modify musiconhold.conf, meetme.conf and extensions.conf
--------------------------------------------------------
musiconhold.conf:
random => quietmp3:/var/lib/asterisk/mohmp3,-z

meetme.conf:
[rooms]
conf => 104

extensions.conf:
[stream]
; Conference Room
exten => 100,1,Answer
exten => 100,2,Wait(1)
exten => 100,3,MeetMe(104)
; Music On Hold
exten => 101,1,Answer
exten => 101,2,Wait(1)
exten => 101,3,MusicOnHold(random)
; Stream
exten => 102,1,Answer
exten => 102,2,Wait(1)
exten => 102,3,Ices(/some/where/asterisk-ices.xml)

Create 2 files, moh.call and stream.call:
--------------------------------------------------------
moh.call:
Channel: Local/101 at stream
MaxRetries: 2
RetryTime: 60
WaitTime: 30
Context: stream
Extension: 100
Priority: 1

stream.call:
Channel: Local/102 at stream
MaxRetries: 2
RetryTime: 60
WaitTime: 30
Context: stream
Extension: 100
Priority: 1

Now, copy the 2 .call files to /var/spool/asterisk/outgoing:
--------------------------------------------------------
cp moh.call /var/spool/asterisk/outgoing 
cp stream.call /var/spool/asterisk/outgoing 

Connect to your Icecast stream and you should hear your MusicOnHold
music.

Other people can join the conference by dialing x100, and their voices
will stream too.

	Barton




More information about the asterisk-users mailing list