Solved

I want Elastix to listn to CNN news and any radio channel i want also for weather ???

Posted on 2011-03-24
3
485 Views
Last Modified: 2013-11-12
Dear all
I have Elastix 2.0 and what i want when dial extension listen directly to cnn news English or any languish also i need to listen to any radio channel i want to listen
2nd  i want also to listen to the the weather state and time with my time zone
plz try to help me in this as it is required from one of my customers  
0
Comment
Question by:tahasip
  • 2
3 Comments
 
LVL 5

Expert Comment

by:tsmgeek
ID: 35205326
ive got somthing similar, issue with using mpg123 is it can crash asterisk if the stream does not load of mpg123 crashes itself, there is talk to use madplay

http://www.voip-info.org/wiki/view/Asterisk+config+musiconhold.conf
http://www.elastix.org/en/component/kunena/27-miscellaneous/44707-mpg123-crashes-asterisk-1428.html

/etc/asterisk/extensions_custom.conf

[from-internal-custom]
exten => 68742,1,Answer
exten => 68742,3,Read(MusicCode,beep,1)
exten => 68742,4,GoTo(QueueMusic,s,${MusicCode})
exten => 68742,5,Hangup
exten => 1234,2,Playback(demo-congrats)         ; extensions can dial 1234


[QueueMusic]
exten => s,2,MusicOnHold(Jazz)
exten => s,6,MusicOnHold(SwissGroove)
exten => s,10,goto(from-internal-custom,68742,2)
exten => s,11,Hangup


/etc/asterisk/musiconhold_custom.conf
[SwissGroove]
mode=custom
application=/usr/local/bin/mpg123 -q -s --mono -r 8000 -f 8192 -b 0 http://82.197.167.134:80

Open in new window

0
 

Author Comment

by:tahasip
ID: 35205498
thanks for ur replay

i am using Elastix 2 that come with asterisk 1.6 not 1.4
then iam so confused about this scenario i made soo many searches and i want some thing like
step by step how to start and how to use many channels  
0
 
LVL 5

Accepted Solution

by:
tsmgeek earned 500 total points
ID: 35208532
im on elastix 1.6
dont think the syntax is vastly different, the code above does allow multiple channels, you just do it as this....
/etc/asterisk/extensions_custom.conf

[from-internal-custom]
exten => 68742,1,Answer
exten => 68742,3,Read(MusicCode,beep,1)
exten => 68742,4,GoTo(QueueMusic,s,${MusicCode})
exten => 68742,5,Hangup
exten => 1234,2,Playback(demo-congrats)         ; extensions can dial 1234


[QueueMusic]
exten => s,2,MusicOnHold(Jazz)
exten => s,6,MusicOnHold(SwissGroove)
exten => s,7,MusicOnHold(SwissGroove2)
exten => s,10,goto(from-internal-custom,68742,2)
exten => s,11,Hangup


/etc/asterisk/musiconhold_custom.conf
[SwissGroove]
mode=custom
application=/usr/local/bin/mpg123 -q -s --mono -r 8000 -f 8192 -b 0 http://82.197.167.134:80
[SwissGroove2]
mode=custom
application=/usr/local/bin/mpg123 -q -s --mono -r 8000 -f 8192 -b 0 http://82.197.167.134:80

Open in new window


0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In my office we had 10 Cisco 7940G IP phones that were useless as they were showing PROTOCOL APPLICATION INVALID when started. I searched through Google and worked for a week continuously on those phones, and finally got them working. This is a di…
If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now