by using sql ozml you can host your script through your database.
what you should do:
1. configure your database (that is: creat new database, create the ozmlin, ozmlout and ozmlscripts tables)
for creating the needed tables:
-
-- -----------------------------------------------------
-
-- Table `OzekiPBX`.`ozmlin`
-
-- -----------------------------------------------------
-
CREATE TABLE ozmlin
-
(
-
id int identity(1,1) PRIMARY KEY,
-
callerid varchar(40) NOT NULL,
-
scriptid int NOT NULL,
-
duration int 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 DEFAULT NULL,
-
scriptid int 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(8000) NOT NULL
-
);
-
2. install an sql ozml api
3. add ozml scripts to ozmlscripts table
4. sql queries and dial plan configurations