Solved

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

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

So you think no one can listen in on your VOIP conversations, eh? Well... if you haven't setup Secure Real Time Transport (SRTP), your voice communications can be hacked into by just about anyone! First, let's talk about the intended audience for…
Almost all Internet protocol telephones have built-in switches at the back that allow you to connect your personal computer to one port and use the other port to connect your phone to to a Cisco switch.   Why we need to connect the PC to the pho…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

810 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