Solved

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

Posted on 2011-03-24
3
484 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Article by: user_n
How Sip Phone (User Agent) works and communicates with sip servers 1.  There is a sip server and a sip registrar.  The sip server and sip registrar can be one server or two different servers. The sip registrar is the server on which it is record…
There are no good configuration guides for HP-H3C router to LYNC on the web. :( Big statement, but we havent been able to find one yet. We did find the following document useful, but the information was not enough to use H3C router for use as a L…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
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.

706 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

19 Experts available now in Live!

Get 1:1 Help Now