1. Brekeke Product Name and Version: 3.2.4.1/366 (eval license)
2. Java version: 1.7.0
3. OS type and the version: Windows 2003 Server
4. UA (phone), gateway or other hardware/software involved: x-lite
5. Your problem:
I'm trying to create my own authentication plugins for brekeke sip server with no luck. I've follow the sip-authentication-plugins.pdf documentation. And I also took the sample code from doc for testing.
I found similar discussion in forum (http://www.brekeke-sip.com/bbs/viewtopi ... ght=plugin) but the information is limited.
It's seems that sip server never use my authentication plugins.
I name my plugins with TbUserDir and the source code is mostly the same as sample code from sip-authentication-plugins.pdf.
I modified the loglevel become:
loglevel = new LogLevel( 255,env.getInt( "net.userdir.loglevel.file", LogLevel.LOG_LEVEL_ALL ) ) ;
(It might somewhat exaggerated but I just want to see the log lines writen by my plugins)
I put the TbUserDir.class into directory c:\plugins and set the parameter in configuration/advance:
net.usrdir.plugins=com.hitelnet.plugins.TbUserDir
net.userdir.loglevel.file=255
( com.hitelnet.plugins is the package name that I use in source code)
And also add c:\plugins in CLASSPATH env variable.
But I suspect that sip server never use (or call) TbUserDir plugins because:
1. In init function, same like sample code, I try to write a log line:
===> this.log.print( "TbUserDir: start\n", loglevel, LogLevel.LOG_LEVEL_ALL ) ;
After sip server restarted, I never found this line in log at directory C:\Program Files\Brekeke\sip\webapps\sip\WEB-INF\work\sv\log\2013\09
2. In lookup function, I intentionally always return null to fail authentication. But X-Lite sipphone always can register to sip server successfully.
I also try jar version by compiling TbUserDir.class into jar:
==> jar cvf TbUserDir.jar TbUserDir.class
And put TbUserDir.jar into directory C:\Program Files\Brekeke\sip\webapps\sip\WEB-INF\lib but no luck.
Did I missed something here.
Thank you.
2. Java version: 1.7.0
3. OS type and the version: Windows 2003 Server
4. UA (phone), gateway or other hardware/software involved: x-lite
5. Your problem:
I'm trying to create my own authentication plugins for brekeke sip server with no luck. I've follow the sip-authentication-plugins.pdf documentation. And I also took the sample code from doc for testing.
I found similar discussion in forum (http://www.brekeke-sip.com/bbs/viewtopi ... ght=plugin) but the information is limited.
It's seems that sip server never use my authentication plugins.
I name my plugins with TbUserDir and the source code is mostly the same as sample code from sip-authentication-plugins.pdf.
I modified the loglevel become:
loglevel = new LogLevel( 255,env.getInt( "net.userdir.loglevel.file", LogLevel.LOG_LEVEL_ALL ) ) ;
(It might somewhat exaggerated but I just want to see the log lines writen by my plugins)
I put the TbUserDir.class into directory c:\plugins and set the parameter in configuration/advance:
net.usrdir.plugins=com.hitelnet.plugins.TbUserDir
net.userdir.loglevel.file=255
( com.hitelnet.plugins is the package name that I use in source code)
And also add c:\plugins in CLASSPATH env variable.
But I suspect that sip server never use (or call) TbUserDir plugins because:
1. In init function, same like sample code, I try to write a log line:
===> this.log.print( "TbUserDir: start\n", loglevel, LogLevel.LOG_LEVEL_ALL ) ;
After sip server restarted, I never found this line in log at directory C:\Program Files\Brekeke\sip\webapps\sip\WEB-INF\work\sv\log\2013\09
2. In lookup function, I intentionally always return null to fail authentication. But X-Lite sipphone always can register to sip server successfully.
I also try jar version by compiling TbUserDir.class into jar:
==> jar cvf TbUserDir.jar TbUserDir.class
And put TbUserDir.jar into directory C:\Program Files\Brekeke\sip\webapps\sip\WEB-INF\lib but no luck.
Did I missed something here.
Thank you.