Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
How to run Authentication plugin
Author Message
shantanu
Brekeke Newbie


Joined: 18 Oct 2017
Posts: 3

PostPosted: Wed Oct 18, 2017 7:25 am    Post subject: How to run Authentication plugin Reply with quote

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
View user's profile
Mike
Support Team


Joined: 07 Mar 2005
Posts: 731
Location: Sunny San Mateo

PostPosted: Wed Oct 18, 2017 4:30 pm    Post subject: Reply with quote

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
View user's profile Visit poster's website
shantanu
Brekeke Newbie


Joined: 18 Oct 2017
Posts: 3

PostPosted: Mon Oct 23, 2017 12:25 am    Post subject: Reply with quote

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
View user's profile
Mike
Support Team


Joined: 07 Mar 2005
Posts: 731
Location: Sunny San Mateo

PostPosted: Mon Oct 23, 2017 12:32 pm    Post subject: Reply with quote

Do you have net.usrdir.plugins setting at [Configuration]->[Advanced]?

Refer to the section 6. Plug-in Installation in the document.
Back to top
View user's profile Visit poster's website
shantanu
Brekeke Newbie


Joined: 18 Oct 2017
Posts: 3

PostPosted: Mon Oct 30, 2017 2:37 am    Post subject: Reply with quote

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
View user's profile
Mike
Support Team


Joined: 07 Mar 2005
Posts: 731
Location: Sunny San Mateo

PostPosted: Mon Oct 30, 2017 10:13 am    Post subject: Reply with quote

shantanu,
It should be net.usrdir.plugins not net.userdir.plugins.
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1