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 

Fallback url auth

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



Joined: 24 Sep 2007
Posts: 9

PostPosted: Tue Aug 05, 2008 2:17 am    Post subject: Fallback url auth Reply with quote

I am wondering if the fallback is meant to trigger url auth, listener_remove, when a listener disconnects while they are in the fallback?
My script relies on IceCast telling it that they have disconnected or it will think they are still connected and will fail any future authentication request (listener_add) for that user.
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Aug 05, 2008 2:56 am    Post subject: Reply with quote

The listener_remove is not performed in such cases (until they finally disconnected the server). You can use the mount_remove to notify of a fallback. Whether the listener_add will fails any new attempts depends on what you have in your scripts.

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



Joined: 24 Sep 2007
Posts: 9

PostPosted: Tue Aug 05, 2008 12:40 pm    Post subject: Reply with quote

What i mean is, listener_remove doesnt seem to be triggered when they disconnect from the fallback... meaning my scripts think they are still connected when they try to connect again.
(my script does reject based on mountpoint passed... but i have added the main mount name and fallback to allowed mountpoints - it works fine when they disconnect from the mount itself when its active just not if they drop from the fallback)

I have even sent a replica of the post string from the machine running icecast and the auth scripts work as expected so i can only assume that icecast isnt doing it.
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Aug 05, 2008 3:38 pm    Post subject: Reply with quote

The auth section is refcounted by the client details so that should apply. Maybe you could send the xml and a copy of the error log so that it can be verified.

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



Joined: 24 Sep 2007
Posts: 9

PostPosted: Wed Aug 06, 2008 1:09 am    Post subject: Reply with quote

karlH wrote:
The auth section is refcounted by the client details so that should apply. Maybe you could send the xml and a copy of the error log so that it can be verified.

karl.
You have mail Razz

P.S. Having fallback setting removed, and trying to connect runs listener_add, succeeds, comes back with 404 as theres no source, but doesnt send listener_remove either... - I have worked around this by making the auth script fail auth if there is no source present for now until I know how to get fallback to send listener_remove and reinstate the fallback settings
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