| View previous topic :: View next topic |
| Author |
Message |
ardya
Joined: 22 Mar 2009 Posts: 20
|
Posted: Thu Sep 01, 2011 9:32 pm Post subject: [Solved] Execute a program on client connect/disconnect |
|
|
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 |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Sep 02, 2011 11:55 am Post subject: |
|
|
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 |
|
 |
ardya
Joined: 22 Mar 2009 Posts: 20
|
Posted: Fri Sep 02, 2011 2:38 pm Post subject: |
|
|
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 |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Fri Sep 02, 2011 5:54 pm Post subject: |
|
|
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 |
|
 |
ardya
Joined: 22 Mar 2009 Posts: 20
|
Posted: Sat Sep 03, 2011 4:37 am Post subject: |
|
|
| Ah ok, I'll try and set this up then, thanks karl. |
|
| Back to top |
|
 |
ardya
Joined: 22 Mar 2009 Posts: 20
|
Posted: Sun Sep 04, 2011 3:48 pm Post subject: |
|
|
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 |
|
 |
|