Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Configuring the fallback mount point automatic

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
fredcrs



Joined: 13 Aug 2009
Posts: 13

PostPosted: Thu Aug 13, 2009 9:13 pm    Post subject: Configuring the fallback mount point automatic Reply with quote

"This function provides the ability for either a source client or any external program to update the "fallback mountpoint" for a particular mountpoint. Fallback mounts are those that are used in the even of a source client disconnection. If a source client disconnects for some reason that all currently connected clients are sent immediately to the fallback mountpoint."

It worked acessing the URL on my browser....but how can an external program do that??Has to be in pure text, bc I will do that on my server
Could be a script...but how?
As source I am using ezstream and didnt see that option here...

Thanks!
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Aug 13, 2009 9:47 pm    Post subject: Reply with quote

The request is a straight forward http request, any http client that handles http basic auth will be able to issue those. For a script then look at curl or wget.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
fredcrs



Joined: 13 Aug 2009
Posts: 13

PostPosted: Fri Aug 14, 2009 2:08 am    Post subject: Reply with quote

thanks very much karl
If anyone wants to know here is what I used, and it worked...


wget http://YOURIP:8000/admin/ --http-user=admin --http-password=hackme -O -


the "-O -" option makes the wget output to stdout, I dont want any file =)

Then u go the admin/...bla bla bla
Back to top
View user's profile Send private message
fredcrs



Joined: 13 Aug 2009
Posts: 13

PostPosted: Fri Aug 14, 2009 3:46 pm    Post subject: Reply with quote

ok now I got anoter problem...
I have the address for the listener to hear the radio
ex:
http://MYIP:8000/stream.ogg

and I configured fallback to
http://MYIP:8000/live.ogg

When going live all listeners are moved to live.ogg fallback...that worked fine.
but when going live...if the listener tryed to connect to stream.ogg he recives a message that server is unavailable....
How can I fix that?? I need one address for two mountpoints
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Fri Aug 14, 2009 7:42 pm    Post subject: Reply with quote

This is a bug in the current code, the admin command you issue only updates 1 of the places that lists the fallback mount, the other (which new listeners search through) is not and therefore fails in the situation specified. I don't think many people use that admin update and just rely on <mount> in the xml which works in both (source exit and new listener) cases.

I don't know if you need it to be dynamic but the xml approach is the best way currently.

karl
Back to top
View user's profile Send private message Send e-mail Visit poster's website
fredcrs



Joined: 13 Aug 2009
Posts: 13

PostPosted: Tue Aug 18, 2009 1:07 am    Post subject: Reply with quote

Thank you very much Karl
I didnt see the fallback-mount option in the XML file.
I will try that
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber