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 

[Solved] Execute a program on client connect/disconnect

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



Joined: 22 Mar 2009
Posts: 20

PostPosted: Thu Sep 01, 2011 9:32 pm    Post subject: [Solved] Execute a program on client connect/disconnect Reply with quote

Hi folks,
Is there a means to hook into logging, or client connect/disconnect, and execute a program based on these events?

Thanks


Last edited by ardya on Sun Sep 04, 2011 3:44 pm; edited 1 time in total
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 Sep 02, 2011 11:55 am    Post subject: Reply with quote

via a web link yes, use auth url listener_add, listener_remove, mount_add or mount_remove, depending on which client you are referring to. The on-connect link is only invoked for sources [dis]connecting

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



Joined: 22 Mar 2009
Posts: 20

PostPosted: Fri Sep 02, 2011 2:38 pm    Post subject: Reply with quote

So this would require polling web, which is what I was trying to avoid to begin with, ok thanks karl, appreciate the info.

re-edit: ok, I misread the documentation...can auth be setup so no actual authentication is required, but the listener_add and _remove hooks are still used?
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 Sep 02, 2011 5:54 pm    Post subject: Reply with quote

of course, authentication via url does not require a username password to be accepted. as long and the php or whatever sends back the correct header then auth is passed.

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



Joined: 22 Mar 2009
Posts: 20

PostPosted: Sat Sep 03, 2011 4:37 am    Post subject: Reply with quote

Ah ok, I'll try and set this up then, thanks karl.
Back to top
View user's profile Send private message
ardya



Joined: 22 Mar 2009
Posts: 20

PostPosted: Sun Sep 04, 2011 3:48 pm    Post subject: Reply with quote

Ok, I have a working perl cgi that inserts/updates an sqlite db based on the listener_add and listener_remove auth events.

If anyone's interested in the cgi, feel free to email me at kritekatgmaildotcom with subject: ICECAST AUTH PERL
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