View previous topic :: View next topic |
Author |
Message |
fredcrs
Joined: 13 Aug 2009 Posts: 13
|
Posted: Thu Aug 13, 2009 9:13 pm Post subject: Configuring the fallback mount point automatic |
|
|
"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 |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Thu Aug 13, 2009 9:47 pm Post subject: |
|
|
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 |
|
|
fredcrs
Joined: 13 Aug 2009 Posts: 13
|
Posted: Fri Aug 14, 2009 2:08 am Post subject: |
|
|
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 |
|
|
fredcrs
Joined: 13 Aug 2009 Posts: 13
|
Posted: Fri Aug 14, 2009 3:46 pm Post subject: |
|
|
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 |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Aug 14, 2009 7:42 pm Post subject: |
|
|
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 |
|
|
fredcrs
Joined: 13 Aug 2009 Posts: 13
|
Posted: Tue Aug 18, 2009 1:07 am Post subject: |
|
|
Thank you very much Karl
I didnt see the fallback-mount option in the XML file.
I will try that |
|
Back to top |
|
|
|