Setup FoxPro
making and accepting
calls using a Database
In this chapter you can learn about how to make and accept calls using a FoxPro database server with your Ozeki Phone System XE. 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 FoxPro 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 have 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 5 - Specifying the connection string for the FoxPro database
Figure 6 shows the SQL queries that will be used if there is an incoming call.
Figure 6 - SQL queries for making outgoing calls
Under the Incoming calls tab, you need to provide the SQL queries that will be used when there is an incoming call. Figure 7 shows the SQL query that you need to use.
Figure 7 - SQL queries for accepting incoming calls
After the OzML SQL API has been configured in the Ozeki Phone System XE, you need to create the database tables for OzML SQL API. Use the following table layout:
-- ----------------------------------------------------- -- Table `OzekiPBX`.`ozmlin` -- ----------------------------------------------------- CREATE TABLE ozmlin ( id I AUTOINC NEXTVALUE 1 STEP 1 PRIMARY KEY, callerId C(40) NOT NULL, scriptId I NOT NULL, duration I DEFAULT NULL, status C(40) DEFAULT NULL, recordURL C(150) DEFAULT NULL, startTime T DEFAULT NULL ) -- ----------------------------------------------------- -- Table `OzekiPBX`.`ozmlout` -- ----------------------------------------------------- CREATE TABLE ozmlout ( id I AUTOINC NEXTVALUE 1 STEP 1 PRIMARY KEY, dialedNumber C(40) NOT NULL, status C(40) DEFAULT NULL, duration I DEFAULT NULL, scriptId I DEFAULT NULL, recordUrl C(150) DEFAULT NULL, startTime T DEFAULT NULL ) -- ----------------------------------------------------- -- Table `OzekiPBX`.`ozmlscripts` -- ----------------------------------------------------- CREATE TABLE ozmlscripts ( scriptid I AUTOINC NEXTVALUE 1 STEP 1 PRIMARY KEY, ozml C(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...