Setup Microsoft SQL Server
making and accepting calls using a Database
In this chapter you can learn about how to make and accept calls using a Microsoft SQL Server database server with your Ozeki Phone System. In this guide you can get information about the installation steps, the database connection string, the database connection type and the database table layout for Microsoft SQL Server database server.
During the configuration you should choose the following database connection type:
You should use the next database connection string:
The database connection string has to be modified to match your database.
The connection string and the connection type should be entered on the SQL OzML API configuration form.
Figure 2 shows the SQL queries that will be used if there is an incoming call.
Under the Incoming calls tab, you need to provide the SQL queries that will be used when there is an incoming call. Figure 3 shows the SQL query that you need to use.
After the OzML SQL API has been configured in the Ozeki Phone System, you need to create the database tables for OzML SQL API. Use the following table layout:
-- ----------------------------------------------------- -- Table `OzekiPBX`.`ozmlin` -- ----------------------------------------------------- CREATE TABLE ozmlin ( id int identity(1,1) PRIMARY KEY, callerid varchar(40) NOT NULL, scriptid int(10) NOT NULL, duration int(10) DEFAULT NULL, status varchar(40) DEFAULT NULL, recordurl varchar(150) DEFAULT NULL, starttime datetime DEFAULT NULL ); -- ----------------------------------------------------- -- Table `OzekiPBX`.`ozmlout` -- ----------------------------------------------------- CREATE TABLE ozmlout ( id int identity(1,1) PRIMARY KEY, dialednumber varchar(40) NOT NULL, status varchar(40) DEFAULT NULL, duration int(10) DEFAULT NULL, scriptid int(10) DEFAULT NULL, recordurl varchar(150) DEFAULT NULL, starttime datetime DEFAULT NULL ); -- ----------------------------------------------------- -- Table `OzekiPBX`.`ozmlscripts` -- ----------------------------------------------------- CREATE TABLE ozmlscripts ( scriptid int identity(1,1) PRIMARY KEY, ozml varchar(10000) NOT NULL );
If you have any questions or need assistance, please contact us at info@ozekiphone.com.
Dig deeper!
People who read this also read...
- How to setup SMPP IP SMS connection in Ozeki Phone System
- How to connect your PBX to the mobile network
- How to send SMS from Ozeki Phone System by using Android SMPP SMS Gateway
More information
- Log call records
- Send and receive SMS
- Make phone calls
- Authenticate PBX users
- Log PBX events