Book Image

Elastix Unified Communications Server Cookbook

Book Image

Elastix Unified Communications Server Cookbook

Overview of this book

Table of Contents (24 chapters)
Elastix Unified Communications Server Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Description and Use of the Most Well-known FreePBX Modules
Addon Market Module
Asterisk Essential Commands
Asterisk Gateway Interface Programming
Helpful Linux Commands
Index

Using Internet audio streams


For using Internet music streams as music on hold, we must first install some packages needed to reproduce online streaming. The packages we need to download and install are mpg123, mpg123-devel, madplay, libid3tag, and libid3tag-devel.

We will use the yum and rpm commands. To know more about these commands, please visit http://yum.baseurl.org/ and http://www.rpm.org.

How to do it…

Install the required packages by typing the following commands into the Elastix console.

  • For a 32-bit operating system

    rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

    yum -y install mpg123 mpg123-devel madplay libid3tag libid3tag-devel

  • For a 64-bit operating system

    rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm

    yum -y install mpg123 mpg123-devel madplay madplay libid3tag libid3tag-devel

Add a new streaming category in the WebGUI as follows:

  • Category Name: Online

  • Application: /usr/bin/mpg123...