Asterisk and Icecast (via Ices)

From JoatWiki
Jump to: navigation, search

Asterisk and Icecast (via Ices)

(30 Oct 2007) - Following are my notes for getting Asterisk to stream to Icecast.

This is a work in progress. Please bear with me.

Discussion

The ability to stream a call to an Icecast server is "built in" in version 1.4.x of Asterisk. Other than Asterisk, you'll only need to install Ices2 on your Asterisk server and edit a couple config files. Click here for a copy of my asterisk-ices.xml file and here for a copy of my icecast.xml config file.

Troubleshooting

If Asterisk complains about broken pipes when you try to stream, it's likely caused by the Ices binary either being not installed or not located where Asterisk is looking for it. The solution for the former is obvious (install it). There are two solutions for the latter:

  • edit app_ices.c and change the line which starts with "#define ICES" so that it points to the proper location of the ices binary. (Don't forget to recompile and re-install!)
  • copy or link the ices binary into the /usr/bin directory (that's where Asterisk looks for it by default).

Syntax

The following are my attempts at explaining the syntax used in the two files I made available in the "Discussion" section.

Syntax - asterisk-ices.xml

Syntax - icecast.xml

Sources

- http://www.icecast.org/docs/icecast-2.3.1/icecast2_config_file.html




Comments:

Leave a Comment

Personal tools