Author |
Message |
shantanu Brekeke Newbie
Joined: 18 Oct 2017 Posts: 3
|
Posted: Wed Oct 18, 2017 7:25 am Post subject: How to run Authentication plugin |
|
|
1. Brekeke Product Name and Version: Brekeke SIP Server, Version 3.7.7.3, Evaluation
2. Java version: 1.8.0_111
3. OS type and the version: 14.04.1-Ubuntu
4. UA (phone), gateway or other hardware/software involved:
Ciscosx20
5. Your problem:
I am using Brekeke SIP server and configured third party database(mysql 5.5.57) to keep the user/alias/registered records. I also wrote a sample authentication plugin (SampleUserDir) as directed in the document http://www.brekeke.com/doc/sip/sip_authentication_plugin.pdf and followed the steps to run the plugin.
But I could not find any log which describes that the plugin is running.
Please let me know how to start / initiate the plugin. Or, how to call its functions.
Thanks in advance. |
|
Back to top |
|
Mike Support Team
Joined: 07 Mar 2005 Posts: 733
Location: Sunny San Mateo
|
Posted: Wed Oct 18, 2017 4:30 pm Post subject: |
|
|
For outputting log about Authentication, enable [Authentication/Radius] at [Diagnostics]->[Debug Logs] page.
If the plugin is loaded successfully, the following log line will be shown.
auth: plugin=ClassName : loaded
If there are any issues with loading, the log line will be like this.
auth: plugin=ClassName : loading failed: Error message |
|
Back to top |
|
shantanu Brekeke Newbie
Joined: 18 Oct 2017 Posts: 3
|
Posted: Mon Oct 23, 2017 12:25 am Post subject: |
|
|
Thanks for the reply,
I could see the following module loaded as auth plugin
registrar: start
registrar: cache: alloc-size=2000
registrar: plugin=com.brekeke.sipadmin.plugins.RegisteredSqlDB : loaded
registrar: keepaliver=com.brekeke.net.sip.sv.registrar.keepalive.KeepAliverDatabase : loaded
registrar: multiple domains: off
registrar: recovered: 0 record(s).
auth: start:
sqlud: start
auth: plugin=com.brekeke.sipadmin.plugins.SqlUserDir : loaded
auth: multiple domains: off
auth: forced register: off
blockmgr: env : use default setting
sv: start-code=0
Dispatcher.1: Start |
|
Back to top |
|
Mike Support Team
Joined: 07 Mar 2005 Posts: 733
Location: Sunny San Mateo
|
Posted: Mon Oct 23, 2017 12:32 pm Post subject: |
|
|
Do you have net.usrdir.plugins setting at [Configuration]->[Advanced]?
Refer to the section 6. Plug-in Installation in the document. |
|
Back to top |
|
shantanu Brekeke Newbie
Joined: 18 Oct 2017 Posts: 3
|
Posted: Mon Oct 30, 2017 2:37 am Post subject: |
|
|
Yes Mike, net.userdir.plugins setting is already there.
Please find the configuration given below.
net.userdir.plugins=com.domain.proxy.plugins.SampleUserDir |
|
Back to top |
|
Mike Support Team
Joined: 07 Mar 2005 Posts: 733
Location: Sunny San Mateo
|
Posted: Mon Oct 30, 2017 10:13 am Post subject: |
|
|
shantanu,
It should be net.usrdir.plugins not net.userdir.plugins. |
|
Back to top |
|
|