| View previous topic :: View next topic |
| Author |
Message |
level20peon
Joined: 24 Feb 2008 Posts: 19
|
Posted: Sun Jul 20, 2008 12:42 pm Post subject: Possible to log ON USER CONNECT ? |
|
|
Hey there,
I was just searching the forums for a way to enter something into the access.log file ON user connect (not after disconnecting). I tried to set log level to debug before but it just changes the way of logging to error.log. In the forums I found the possibility to do a "on-connect" call but if I understand this correctly it only is possible to do for mount-connect-events, not user-connect-events.
Is it by chance possible to either drop a line into the access.log or call an external script on user-connect-events ? If this is not the case, is the mount-connect-event being called on the main-streaming-server side or on the relay-server side ?
Thanks for any input,
-level20peon |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sun Jul 20, 2008 1:35 pm Post subject: |
|
|
you can use auth url to invoke scripts like php on listener connection (see option listener_add). What that script does to actually authenticate the user is completely up to you eg everyone is authenticated, but the php will allow you to run other things like logging to a file
karl. |
|
| Back to top |
|
 |
level20peon
Joined: 24 Feb 2008 Posts: 19
|
Posted: Sun Jul 20, 2008 3:06 pm Post subject: |
|
|
Ah, this is great, sorted with your help. Thank you
-level20peon |
|
| Back to top |
|
 |
|