Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 506
  • Last Modified:

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

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
tahasip
Asked:
tahasip
  • 2
1 Solution
 
tsmgeekCommented:
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
 
tahasipAuthor Commented:
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
 
tsmgeekCommented:
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

[Video] Oticon Case Study

Open office environments can create the dynamics for innovation, but they also bring some challenges. With over 1,000 employees in an open office, Oticon needed a solution that would preserve the environment while mitigating disruptive background noises.

Watch how they did it.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now