Voxilla VoIP Forum

Go Back   Voxilla VoIP Forum > Hardware/Software Support Forums > Asterisk Support Forum

Asterisk Support Forum Technical support, how-to guides, troubleshooting, and general assistance, from beginner to seasoned pro, this is where to discuss Asterisk, the most powerful open source PBX.


Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old October 14th, 2008, 03:06 AM
Junior Member
 
Join Date: May 2008
Posts: 13
rolfbeethoven is on a distinguished road
Default Streaming web radio through asterisk

I would like to set up some extensions to use for streaming web radio. For example, the cordless phone has a speaker option. I would like to be able to dial an extension and hear the radio station. I don't care about hifi sound, it would mainly be for NPR, foreign language talk radio and sports radio.

I set up an extension and use MP3Player to call the URL but most URLs don't work. Most of the time, I will hear nothing over the line and then the call times out. Here's my situation.

Using:
asterisk 1.4
mpg123 1.4.2 (documentation points to 0.59r, but the posts are years old. I'm hoping that 1.4.2. will work with Asterisk)

This setup in extensions_custom.conf works:
exten => 601,1,Answer
exten => 601,2,MP3Player(http://wbez-sclo.streamguys.us/)
exten => 601,3,Hangup

However using any shoutcast .pls or other see below doesn't.
http://www.publicbroadcasting.net/wfcr/ppr/wfcr.pls/
http://webchannels.sr-online.de:8000/sr1klassiker/

These URL, however, do work when I run mpg123 from the command line with the -@ option.

Can someone point me in the right direction? I started to go down the MOH route but MP3Player seems like such an easier solution. If I could pass arguments from MP3Player to mpg123 or figure out how to get MP3Player to work. I even tried System(mpg123 http://URL/) but that didn't work either.

Here's the log message from asterisk when I call the URL that doesn't work:
[Oct 13 21:31:13] VERBOSE[9813] logger.c: -- Executing [600@from-internal:1] Answer("SIP/210-09dc3cf8", "") in new stack
[Oct 13 21:31:13] VERBOSE[9813] logger.c: -- Executing [600@from-internal:2] MP3Player("SIP/210-09dc3cf8", "@ http://www.publicbroadcasting.net/wfcr/ppr/wfcr.pls/") in new stack
[Oct 13 21:31:16] NOTICE[9813] app_mp3.c: Poll timed out/errored out with 0
[Oct 13 21:31:16] DEBUG[9813] app_mp3.c: No more mp3
[Oct 13 21:31:16] VERBOSE[9813] logger.c: -- Executing [600@from-internal:3] Hangup("SIP/210-09dc3cf8", "") in new stack


Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old October 15th, 2008, 05:29 PM
Junior Member
 
Join Date: May 2008
Posts: 13
rolfbeethoven is on a distinguished road
Default Re: Streaming web radio through asterisk

Problem partially solved.

I googled for a pre-compiled rpm of the 0.50r mpg123 version and installed onto my Centos system. MP3Player now works, although sometimes the URL has to have a trailing slash and sometime it won't work with a trailing slash.

It doesn't work with all URLs, but with enough that I can have some good radio stations available on demand.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
SAS Server Audio Streaming How to use albersag Linksys (Sipura) VoIP Support Forum 5 April 25th, 2006 08:46 PM
audio streaming in asterisk Anjo General VoIP Discussion 0 March 15th, 2006 06:53 AM
How to set up the music on hold direct form online radio???? rowell Asterisk Support Forum 21 January 30th, 2006 07:18 PM
HT-488 Radio Interference Tiny Grandstream Support Forum 2 September 3rd, 2005 03:25 PM
Free MOH Streaming Servers shayne.bates Linksys (Sipura) VoIP Support Forum 0 December 6th, 2004 09:12 PM



All times are GMT. The time now is 08:01 AM.


vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Logos and trademarks are the property of Voxilla or their respective owner. All other content © 2003-2009 by Voxilla, Inc.