Setup Sybase (SQL Anywhere) for authenticating extensions

In this chapter you can learn how to authenticate SIP extensions using a Sybase (SQL Anywhere) database server with your Ozeki Phone System. You can see the installation steps, the database connection string, the database connection type and the recommended database table layout for Sybase (SQL Anywhere) database.

After you have followed this guide, you will be able to authenticate SIP extensions with Sybase (SQL Anywhere) database server.

During the configuration you should choose the following database connection type:

OleDb

You should use the next database connection string:

Provider=ASAProv.90;UID=MyUsername;PWD=MyPassword;DatabaseFile=DatabaseFileLocationOnYourComputer.db;
EngineName=Yourdbenginename;Start=YourDatabaseBinaryLocation.exe -c 32M;AutoStop=Yes

The database connection string have to be modified to match your database.

The connection string and the connection type should be entered on the Database Authenticator SQL API configuration form.

specifying connection string for sybase database
Figure 1 - Specifying the connection string for the Sybase (SQL Anywhere) database

The following figure shows the SQL queries that allow you to verify if a SIP account is available or not in your database.

sql queries for authenticating
Figure 2 - SQL queries for authenticating

After the Database Authenticator SQL API has been configured in the Ozeki Phone System, you need to create the database tables for Database Authenticator SQL API. Use the following table layout:

-- -----------------------------------------------------
-- Table `OzekiPBX`.`ozpbxusers`
-- -----------------------------------------------------
CREATE TABLE "ozpbxusers" (
  "authname" varchar(45) NOT NULL,
  "username" varchar(45) NOT NULL,
  "password" varchar(45) NOT NULL,
  PRIMARY KEY ("authname")
}

go
commit work
go

CREATE INDEX "ozpbxusersindex" ON "ozpbxusers" 
( 
	"username" ASC 
)

go 
commit work 
go

If you have any questions or need assistance, please contact us at info@ozekiphone.com.

Dig deeper!
People who read this also read...