How to run Authentication plugin

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
shantanu
Posts: 3
Joined: Wed Oct 18, 2017 7:10 am

How to run Authentication plugin

Post by shantanu »

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_auth ... 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.
Mike
Posts: 733
Joined: Mon Mar 07, 2005 2:25 pm
Location: Sunny San Mateo
Contact:

Post by Mike »

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
shantanu
Posts: 3
Joined: Wed Oct 18, 2017 7:10 am

Post by shantanu »

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
Mike
Posts: 733
Joined: Mon Mar 07, 2005 2:25 pm
Location: Sunny San Mateo
Contact:

Post by Mike »

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

Refer to the section 6. Plug-in Installation in the document.
shantanu
Posts: 3
Joined: Wed Oct 18, 2017 7:10 am

Post by shantanu »

Yes Mike, net.userdir.plugins setting is already there.
Please find the configuration given below.
net.userdir.plugins=com.domain.proxy.plugins.SampleUserDir
Mike
Posts: 733
Joined: Mon Mar 07, 2005 2:25 pm
Location: Sunny San Mateo
Contact:

Post by Mike »

shantanu,
It should be net.usrdir.plugins not net.userdir.plugins.
Post Reply