Soft exchange experiment platform and method based on Docker and Asterisk

文档序号:70488 发布日期:2021-10-01 浏览:23次 中文

阅读说明:本技术 基于Docker和Asterisk的软交换实验平台和实验方法 (Soft exchange experiment platform and method based on Docker and Asterisk ) 是由 涂继辉 李苏 付博文 魏江东 邱威 周翔 李奇然 吕云霏 于 2021-06-01 设计创作,主要内容包括:本发明提供了基于Docker和Asterisk的软交换实验平台和实验方法,包括Asterisk系统、Docker环境容器和web管理系统,Asterisk系统作为软交换实验平台的核心,用Docker环境容器承载Asterisk系统,通过web管理系统对软交换实验平台进行配置和管理,具有部署简单、操作灵活、价格低廉和扩展性好的特点。Asterisk系统保证了软交换实验平台完整的体系架构和二次开发功能,为学习软交换系统的架构和原理起到了重要的作用。用Docker环境容器确保了各系统的独立性和好的扩展性。web管理系统配置和管理实验平台具有部署简单合理、操作灵活方便的优点。软交换实验平台不仅满足基础学员基础的实验学习任务,还能满足动手能力和编程能力强的学生进行二次开发,提高综合能力的的需求,适合推广使用。(The invention provides a soft switch experiment platform and an experiment method based on Docker and Asterisk, which comprise an Asterisk system, a Docker environment container and a web management system, wherein the Asterisk system is used as the core of the soft switch experiment platform, the Docker environment container is used for bearing the Asterisk system, and the soft switch experiment platform is configured and managed through the web management system. The Asterisk system ensures the complete system architecture and secondary development function of the soft switch experimental platform, and plays an important role in learning the architecture and the principle of the soft switch system. The Docker environment container ensures the independence and good expansibility of each system. The web management system configuration and management experiment platform has the advantages of simple and reasonable deployment and flexible and convenient operation. The soft switch experiment platform not only meets the basic experiment and study tasks of basic students, but also can meet the requirement that students with strong practical ability and programming ability carry out secondary development, improves the requirement of comprehensive ability, and is suitable for popularization and use.)

1. A soft switch experiment platform based on Docker and Asterisk is characterized in that: the system comprises an Asterisk system (1), a Docker environment container (2) and a web management system (3), wherein the Asterisk system (1) is used as the core of a soft switch experiment platform, the Docker environment container (2) is used for bearing the Asterisk system (1), and the soft switch experiment platform is configured and managed through the web management system (3).

2. The Docker and Asterisk-based soft switch experimental platform as claimed in claim 1, wherein: the web management system (3) is used for carrying out information management on the soft switch experiment platform, and the web management system (3) comprises a control module (301), a dialing rule module (302), a number management module (303), a ticket recording module (304) and a value-added module (305);

the control module (301) is responsible for starting, closing and restarting a soft switch, the dialing rule module (302) is responsible for managing the number rule of a soft switch experimental platform, the number management module (303) is responsible for managing the number of a soft switch system, the ticket recording module (304) is responsible for recording and managing the ticket, and the value-added module (305) realizes the value-added service functions of call forwarding, user bill inquiry, voice check and voice song ordering.

3. The Docker and Asterisk-based soft switch experimental platform as claimed in claim 1, wherein: the Asterisk system (1) also comprises a secondary development proceeding module (102), an application declaration and definition module (103), an initialization loading module (104), an application execution module (105) and an unloading module (106);

the secondary development proceeding module (102) summarizes and summarizes the Asterisk system (1);

an application declaration and definition module (103) defines an application name and description of the application program;

initializing the initialization loading module (104) when the system is started;

the application execution module (105) is a process executed when the system calls an application program;

the offload module (106) returns occupied system resources when the system is exited.

4. The Docker and Asterisk-based soft switch experimental platform as claimed in claim 3, wherein: the secondary development progress module (102) induces the functions in the Asterisk system (1), generates an explanatory document of a function library for secondary development, and realizes independent compilation of a Makefile script file in the secondary development progress module (102);

the student can complete the self-designed program code again according to the existing program framework and function library, compile the program by using the Makefile script file, upload the voice file required by the self-function module, set the special service number corresponding to the reference module by using the configuration page of the dialing rule module (302), and finally restart the soft switch system to test and operate the self program.

5. The Docker and Asterisk-based soft switch experimental platform as claimed in claim 1, wherein: the Asterisk system (1) also comprises a dynamic module loader (101), the dynamic module loader (101) can dynamically reduce or increase the operation modules in the Asterisk system (1), a database interface module (5) is arranged at the periphery of the Asterisk system (1), the database interface module (5) changes the configuration and management of a database into a database mode, a MySQL database (4) is used for helping to store the configuration and data related to the system, and a web management system (3) configures the database in the soft switch system;

when the Asterisk system (1) runs other modules, a user can dynamically reduce or increase the modules according to actual needs, and the web management system (3) is set for the user and configures data in a database in the soft switch system, so that the function of controlling and configuring the Asterisk system (1) by the user is achieved.

6. The Docker and Asterisk-based soft switch experimental platform as claimed in claim 1, wherein: the web management system (3) can start the soft switch experiment platform and acquire the configuration information of the soft switch experiment platform;

experiment setting personnel can issue experiment information, import the information of the experiment personnel, distribute experiment groups, evaluate experiment results and export the experiment results through the web management system (3); the experimenter can make the selection of the experimenter through the web management system (3).

7. The Docker and Asterisk-based soft switch experimental platform as claimed in claim 1, wherein: a plurality of independent soft switch experiment systems borne by the Docker environment container (2) are arranged in the soft switch experiment platform by copying the Docker environment container (2).

8. The Docker and Asterisk-based soft switch experimental platform as claimed in claim 7, wherein: the soft switch experiment platform is also provided with a Docker system (6), the Docker system (6) allocates IP addresses to each soft switch experiment system copied from the Docker environment container (2), and the Docker system (6) checks the experiment condition of each independent soft switch experiment system through connection of the allocated IP addresses.

9. The Docker and Asterisk-based soft switch experimental platform as claimed in claim 1, wherein: the soft switch experiment platform based on Docker and Asterisk comprises a basic experiment and an expansibility experiment;

basic experiments: configuring page configuration terminal information through a web management system (3), mainly comprising a number management module (303) of a terminal for carrying out a telephone number experiment and a dialing rule experiment by a dialing rule module (302), and then configuring a page through the web management system (3) to start a soft switch service;

and (3) expansibility experiment: the API interface provided by the Asterisk system (1) and the MySQL database (4) are utilized to realize the value added service of the soft switch: the method comprises call forwarding, user bill query, voice score checking and voice song requesting, and utilizes a secondary development processing module (102) to realize self programming design requirements through an API (application programming interface) and a batch compiling file.

10. An experimental method of the soft switch experimental platform based on Docker and Asterisk as claimed in any one of claims 1 to 9, which comprises the following steps: s1, importing information, setting an experiment task: opening a web management system (3), importing all necessary information through the web management system (3), distributing experimental groups, and setting experimental tasks;

s2, logging in the web management system (3) by each experimenter, checking the experimental group members, checking and distributing the experimental tasks;

s3, the docker system (6) allocates IP addresses to each independent soft switch experiment system:

a1: the platform automatically opens a Docker environment container (2) bearing a soft switching system, and allocates an IP address and a corresponding port to the Docker environment container (2);

a2: the method comprises the following steps that a base mirror image is created by a Docker system (6), a soft switch system is deployed in a Docker environment container (2), and then a plurality of soft switch systems are duplicated, so that each group has an independent soft switch system borne by the Docker environment container (2);

a3: the Docker system (6) allocates IP addresses to each soft switch experiment system copied from the Docker environment container (2), and experiment setting personnel can check the experiment conditions of each independent soft switch experiment system according to the IP addresses;

s4, experimenters perform experiments through the web management system (3):

b1: experimenters see the control module (301), the dialing rule module (302), the number management module (303), the ticket recording module (304) and the value-added module (305) through the web management system (3), know the functions of the modules, select the corresponding module to start the soft switch system for secondary development according to the needs of the experimenters, and start experiments;

b2: generating a function library and a Makefile script file: the secondary development progress module (102) induces the functions in the Asterisk system (1), generates an explanatory document of a function library for secondary development, and realizes independent compilation of a Makefile script file in the secondary development progress module (102);

b3: configuring and storing a database in a soft switch system: the dynamic module loader (101) can dynamically reduce or increase the operation modules in the Asterisk system (1), the database interface module (5) changes the database configuration and management into a database mode, and the MySQL database (4) is used for helping to store the configuration and data related to the system;

b4: the experimenter performs a secondary development test: experimenters complete own design program codes according to an existing program framework and a function library according to design thoughts, compile programs by using scripts, upload voice files required by own function modules, set special service numbers corresponding to a reference module by using a configuration page of a dialing rule module (302), and finally restart a soft switch system to test and run own programs;

the S5 experiment was completed and the results were derived: the experimenter submits the experimental result, the system can automatically pack the data and send the data to the setting personnel, and the setting personnel can check the experimental condition of each group by comparing the IP addresses automatically allocated to each group by the docker, and can grade the experimental condition and export the experimental result.

Technical Field

The invention relates to the field of soft switch experiments, in particular to a soft switch experiment platform and an experiment method based on Docker and Asterisk.

Background

At present, soft switch experiments are set up in many colleges and universities in China, the adopted experimental systems are mainly of three types, the first type of products are high in price, difficult to deploy and upgrade and not beneficial to teaching; the second kind of products can not know the network architecture and signaling flow of the soft switch and can not be developed for the second time; the third kind of products are most lack of matched teaching management systems and secondary development functions. If the soft switch experiment platform is carried by using a single server, the soft switch experiment platform is not convenient to deploy and use, and the cost of the experiment platform is increased; if the virtual machine bearer on the PC is utilized, the occupied resources are large, and the deployment and maintenance are difficult because the virtual machine is easy to damage. Aiming at the current situation, a teaching management system which has a complete system architecture, perfects a secondary development function and is matched with the secondary development function is provided, the price is low, and a soft switch experiment platform which is simple to deploy is a necessary trend.

Chinese patent "CN 104486303A" provides an NGN soft switch experimental system and a control method thereof, the experimental process is performed in stages, an operator first makes data configuration locally through a service maintenance unit, then sends an application data loading request to a Server NGN-Server at a Client NGN-Client, the Server NGN-Server loads data to the soft switch unit through a queuing mechanism, and finally performs experimental verification, thereby solving the problems of overlong overall experimental time, low equipment utilization rate, data disorder and the like caused by operating one soft switch unit by multiple operators, ensuring the validity and consistency of data, greatly saving experimental time, and improving teaching efficiency. However, the patent lacks a matched teaching management system and a secondary development function, cannot provide a complete experimental environment for students to learn the soft switch technology, cannot provide a secondary development function for the students, cannot meet the practical ability and the programming ability of the students, cannot provide a good experimental environment for the innovation and the creation and the graduation design of the students, and hinders the capability of the students to develop comprehensively.

Disclosure of Invention

The invention mainly aims to provide a soft switch experimental platform and an experimental method based on Docker and Asterisk, and solves the problems that the soft switch experimental platform does not have a complete system architecture, and lacks a matched teaching management system and a perfect secondary development function.

In order to solve the technical problems, the technical scheme adopted by the invention is as follows: the system comprises an Asterisk system, a Docker environment container and a web management system, wherein the Asterisk system is used as the core of a soft switch experiment platform, the Docker environment container is used for bearing the Asterisk system, and the soft switch experiment platform is configured and managed through the web management system.

In the preferred scheme, a web management system carries out information management on a soft switch experimental platform, and the web management system comprises a control module, a dialing rule module, a number management module, a ticket recording module and a value-added module;

the control module is responsible for starting, closing and restarting a soft switch, the dialing rule module is responsible for managing the number rule of a soft switch experiment platform, the number management module is responsible for managing the number of a soft switch system, the ticket recording module is responsible for recording and managing tickets, the value-added module realizes the value-added service functions of call forwarding, user bill inquiry, voice check and voice song ordering.

In the preferred scheme, the Asterisk system also comprises a secondary development proceeding module, an application declaration and definition module, an initialization loading module, an application execution module and an unloading module;

the secondary development proceeding module summarizes and summarizes the Asterisk system;

the application declaration and definition module defines the application name and description of the application program;

initializing the loading module when the system is started;

the application execution module is a process executed when the system calls the application program;

and the unloading module returns occupied system resources when the system is quitted.

In the preferred scheme, the secondary development progress module induces the functions in the Asterisk system, generates an explanatory document of a function library for secondary development, and realizes independent compilation of a Makefile script file in the secondary development progress module;

the student can complete the self-designed program code again according to the existing program framework and function library, compile the program by using the Makefile script file, upload the voice file required by the self-function module, set the special service number corresponding to the reference module by using the dialing rule module configuration page, and finally restart the soft switch system to test and operate the self-program.

In a preferred scheme, the Asterisk system also comprises a dynamic module loader, wherein the dynamic module loader can dynamically reduce or increase the operation modules in the Asterisk system, a database interface module is arranged on the periphery of the Asterisk system, the database interface module changes the configuration and management of a database into a database mode, a MySQL database is used for helping to store the configuration and data related to the system, and a web management system configures the database in the soft switch system;

when the Asterisk system runs other modules, a user can dynamically reduce or increase the modules according to actual needs, and the web management system is set for the user and configures data in a database in the soft switch system, so that the function of controlling and configuring the Asterisk system by the user is achieved.

In the preferred scheme, the web management system can start the soft switch experiment platform and acquire the configuration information of the soft switch experiment platform;

experiment setting personnel can issue experiment information, import the information of the experiment personnel, distribute experiment groups, evaluate experiment results and export the experiment results through a web management system; the experimenter may make the selection of the experimental group members through the web management system.

In an optimal scheme, a Docker environment container is copied in a soft switch experiment platform, so that a plurality of independent soft switch experiment systems borne by the Docker environment container are arranged in the soft switch experiment platform.

In an optimal scheme, the soft switch experiment platform is further provided with a Docker system, the Docker system allocates an IP address to each soft switch experiment system copied from the Docker environment container, and the Docker system checks the experiment condition of each independent soft switch experiment system through connection of the allocated IP addresses.

In the preferred scheme, a soft switch experiment platform based on Docker and Asterisk comprises a basic experiment and an expansibility experiment;

basic experiments: configuring page configuration terminal information through a web management system, mainly comprising a number management module of a terminal for carrying out a telephone number experiment and a dialing rule experiment by a dialing rule module, and then configuring a page through the web management system to start a soft switch service;

and (3) expansibility experiment: the API interface and MySQL database provided by the Asterisk system are utilized to realize the value added service of the soft switch: the method comprises call forwarding, user bill query, voice score checking and voice song requesting, and realizes the programming design requirements of the user by utilizing a secondary development module and through an API (application programming interface) and a batch compiling file.

The method comprises the following steps: s1, importing information, setting an experiment task: opening a web management system, importing all necessary information through the web management system, distributing experimental groups, and setting experimental tasks;

s2, logging in the web management system by each experimenter, checking the experimental group members, checking and distributing the experimental tasks;

s3, the docker system allocates IP addresses to each independent soft switch experiment system:

a1: the platform automatically opens a Docker environment container bearing a soft switching system and allocates an IP address and a corresponding port to the Docker environment container;

a2: the method comprises the following steps that a Docker system creates a basic mirror image, deploys a soft switch system into a Docker environment container, and then copies the basic mirror image into a plurality of soft switch systems, so that each group has an independent soft switch system borne by the Docker environment container;

a3: the Docker system allocates IP addresses to each soft switch experiment system copied from the Docker environment container, and experiment setting personnel can check the experiment condition of each independent soft switch experiment system according to the IP addresses;

s4, experimenters perform experiments through a web management system:

b1: the experimenter sees the control module, the dialing rule module, the number management module, the call ticket recording module and the value-added module through the web management system, knows the functions of the modules, selects the corresponding module to start the soft switch system for secondary development according to the requirement of the experimenter, and starts an experiment;

b2: generating a function library and a Makefile script file: the secondary development progress module induces the functions in the Asterisk system, generates an explanatory document of a function library for secondary development, and realizes independent compilation of a Makefile script file in the secondary development progress module;

b3: configuring and storing a database in a soft switch system: the dynamic module loader can dynamically reduce or increase the operation modules in the Asterisk system, the database interface module changes the configuration and management of the database into a database mode, and the MySQL database is used for helping to store the configuration and data related to the system;

b4: the experimenter performs a secondary development test: experimenters complete own design program codes according to an existing program framework and a function library according to design thoughts, compile programs by using scripts, upload voice files required by own function modules, set special service numbers corresponding to a reference module by using a dialing rule module configuration page, and finally restart a soft switch system to test and run own programs;

the S5 experiment was completed and the results were derived: the experimenter submits the experimental result, the system can automatically pack the data and send the data to the setting personnel, and the setting personnel can check the experimental condition of each group by comparing the IP addresses automatically allocated to each group by the docker, and can grade the experimental condition and export the experimental result.

The invention provides a soft switch experiment platform and an experiment method based on Docker and Asterisk, and solves the problems that the soft switch experiment platform does not have a complete system architecture, and a matched teaching management system and a complete secondary development function are lacked. The Asterisk system is used as the core of the soft switch experiment platform, the Docker environment container is used for bearing the Asterisk system, and the soft switch experiment platform is configured and managed through the web management system, so that the method has the characteristics of simple deployment, flexible operation, low price and good expansibility.

The Asterisk system ensures the complete system architecture and secondary development function of the soft switch experimental platform, and plays an important role in learning the architecture and the principle of the soft switch system for students. The Docker environment container is used for bearing the Asterisk system, so that the independence and good expansibility of each system are ensured. The web management system configuration and management experiment platform has the advantages of simple and reasonable deployment and flexible and convenient operation. The mode of the Docker container is adopted to bear the soft switch experiment system, not only is deployment and maintenance convenient, but also each group can have an independent soft switch experiment system by copying the Docker container, when one group needs to do experiments, only the container bearing the group information soft switch system of the group needs to be opened, and the mode saves system resources, is convenient to manage and also greatly improves the experiment utilization rate. The portability is strong, and the method has great advantages for popularizing and using the system. The visual mode of the web end makes the operation simple. The teacher manages the students, and the results of the student experiments are more convenient to check. Is favorable for popularization and application of the experimental system. By adding a database interface module at the periphery of the Asterisk, the configuration and management of the database are changed into a database mode. The MySOL database is used for helping to store the configuration and data related to the system, and the web module is used for facing the user, so that the function of controlling and configuring the Asterisk by the user can be achieved. When the student is experimented, the student directly operates through the web end, and opens the soft system to carry out the experiment.

The soft switch experiment platform not only meets the basic experiment and learning tasks of basic students, but also enables students to know the network architecture and the signaling flow of soft switch more clearly, is convenient for secondary development, is beneficial to the experiment and teaching of soft switch, improves the innovation and manual ability of students and improves the requirement of comprehensive ability. The system has the advantages that the system is matched with a web end teaching management system, a teacher can conveniently manage the system, the operation is simple and convenient, the popularization of an experiment system is facilitated, meanwhile, the system can be used as a platform for production practice and graduation design, the deployment of a soft switch system is simple, the upgrading difficulty is small, and the system is more beneficial to teaching and is suitable for popularization and use.

Drawings

The invention is further illustrated by the following examples in conjunction with the accompanying drawings:

FIG. 1 is a flow chart of the overall experiment of the present invention;

FIG. 2 is a flow chart of a programming experiment of the present invention;

FIG. 3 is an overall system flow diagram of the present invention;

in the figure: the system comprises an Asterisk system 1, a dynamic module loader 101, a secondary development proceeding module 102, an application declaration and definition module 103, an initialization loading module 104, an application execution module 105, an unloading module 106, a Docker environment container 2, a web management system 3, a control module 301, a dialing rule module 302, a number management module 303, a ticket recording module 304, a value-added module 305, a MySQL database 4, a database interface module 5 and a Docker system 6.

Detailed Description

Example 1:

as shown in fig. 1 to 3, the softswitch experiment platform based on Docker and Asterisk includes an Asterisk system 1, a Docker environment container 2 and a web management system 3, where the Asterisk system 1 is used as a core of the softswitch experiment platform, the Docker environment container 2 is used to carry the Asterisk system 1, and the softswitch experiment platform is configured and managed by the web management system 3. With the structure, the Asterisk system 1 ensures the complete system architecture and secondary development function of the soft switch experiment platform, and plays an important role in learning the architecture and the principle of the soft switch system for students. The Docker environment container 2 is used for bearing the Asterisk system 1, so that the independence and good expansibility of each system are ensured. The web management system 3 configures and manages an experiment platform, and the soft switch experiment platform has the advantages of simple and reasonable deployment, flexible and convenient operation, simple deployment, flexible operation, low price, good expansibility and the like.

In the preferred scheme, a web management system 3 performs information management on a soft switch experimental platform, and the web management system 3 comprises a control module 301, a dialing rule module 302, a number management module 303, a ticket recording module 304 and a value-added module 305;

the control module 301 is responsible for starting, closing and restarting a soft switch, the dialing rule module 302 is responsible for managing the number rule of a soft switch experimental platform, the number management module 303 is responsible for managing the number of a soft switch system, the ticket recording module 304 is responsible for managing the ticket recording, and the value-added module 305 realizes the value-added service functions of call forwarding, user bill inquiry, voice check and voice song ordering.

In a preferred embodiment, the Asterisk system 1 further includes a secondary development proceeding module 102, an application declaration and definition module 103, an initialization loading module 104, an application execution module 105, and an unloading module 106;

the secondary development proceeding module 102 summarizes and summarizes the Asterisk system 1;

the application declaration and definition module 103 defines application names and descriptions of application programs;

initializing the initialization loading module 104 when the system is started;

the application execution module 105 is a process executed when the system calls an application;

the offload module 106 returns the occupied system resources when the system is exited.

In the preferred scheme, the secondary development progress module 102 induces the functions in the Asterisk system 1, generates an explanatory document of a function library for secondary development, and realizes independent compilation of a Makefile script file in the secondary development progress module 102;

the student can complete the program code designed by the student again according to the existing program framework and function library, compile the program by using the Makefile script file, upload the voice file required by the functional module of the student, configure the page by using the dialing rule module 302 to set the special service number corresponding to the reference module, and finally restart the soft switch system to test and operate the program of the student.

In a preferred scheme, the Asterisk system 1 further comprises a dynamic module loader 101, the dynamic module loader 101 can dynamically reduce or increase the operation modules in the Asterisk system 1 system, a database interface module 5 is arranged on the periphery of the Asterisk system 1, the database interface module 5 changes database configuration and management into a database mode, a MySQL database 4 is used for helping to store configuration and data related to the system, and a web management system 3 is used for configuring a database in the soft switch system;

when the Asterisk system 1 runs other modules, a user can dynamically reduce or increase the modules according to actual needs, and the web management system 3 is set for the user to configure data in a database in the soft switch system, so that the function of controlling and configuring the Asterisk system 1 by the user is achieved. With the structure, the system has complete structure and functions, and has complete system structure and strong functions. And a peripheral setting and management interface is provided with auxiliary software required by experiments, and the whole system utilizes a local area network to replace the real internet.

In the preferred scheme, the web management system 3 can start the soft switch experiment platform and acquire the configuration information of the soft switch experiment platform;

experiment setting personnel can issue experiment information, import the information of the experimenters, distribute experimental groups, evaluate experimental results and export the experimental results through the web management system 3; the laboratory staff may make the selection of the laboratory group staff by means of the web-management system 3.

In an optimal scheme, a plurality of independent soft switch experiment systems borne by Docker environment containers 2 are arranged in a soft switch experiment platform by copying the Docker environment containers 2. With the structure, the Docker is an open-source application container engine and a software containerization platform, so that when a developer constructs an application program, the application program and the dependent environment are packaged into a portable container and then are issued to any popular Linux machine or Windows machine, virtualization can be realized, the container completely uses a sandbox mechanism, and no interface exists between the container and the container.

In the preferred scheme, the soft switch experimental platform is further provided with a Docker system 6, the Docker system 6 allocates an IP address to each soft switch experimental system copied from the Docker environment container 2, and the Docker system 6 checks the experimental condition of each independent soft switch experimental system through connection of the allocated IP addresses.

In the preferred scheme, a soft switch experiment platform based on Docker and Asterisk comprises a basic experiment and an expansibility experiment;

basic experiments: configuring terminal information through a configuration page of a web management system 3, mainly comprising a number management module 303 of a terminal for performing a telephone number experiment and a dialing rule module 302 for performing a dialing rule experiment, and then configuring the page through the web management system 3 to start a soft switch service;

and (3) expansibility experiment: the API interface provided by the Asterisk system 1 and the MySQL database 4 are utilized to realize the value added service of the soft switch: including call forwarding, user billing inquiry, voice score and voice song request, the secondary development is utilized to carry out the module 102, and the programming design requirements of the user are realized through the provided API interface and the batch compiling file. With the structure, the soft switch experiment platform based on Docker and Asterisk has multifunctional application, basic experiments can meet basic requirements of teaching, and the soft switch experiment platform can be used as an improvement platform for experimenters with stronger programming capability or personnel with strong interest or improvement requirements on manual capability and programming capability. The soft switch experiment platform can be used for other purposes, such as a production practice platform, a graduation design platform and the like.

Example 2:

as further described with reference to example 1, as shown in fig. 1 to 3, the method comprises: information import, setting experiment tasks: the web management system 3 is opened, and necessary information is imported through the web management system 3, and experimental tasks are set through the distribution of experimental groups. Each experimenter logs in the web management system 3, checks experiment group members, checks and distributes experiment tasks.

The docker system 6 allocates an IP address to each independent soft switch experimental system: the platform automatically opens a Docker environment container 2 bearing a soft switch system, an IP address and a corresponding port are allocated to the Docker environment container 2, a base mirror image is created by a Docker system 6, the soft switch system is deployed in the Docker environment container 2 and then copied into a plurality of soft switch systems, each group is provided with an independent soft switch system borne by the Docker environment container 2, the Docker system 6 is an IP address allocated to each soft switch experimental system copied from the Docker environment container 2, and experiment setting personnel can check the experimental condition of each independent soft switch experimental system according to the IP address.

The experimenter performs the experiment through the web management system 3: the experimenter sees the control module 301, the dialing rule module 302, the number management module 303, the ticket recording module 304 and the value-added module 305 through the web management system 3, knows the functions of the modules, selects the corresponding module to start the soft switch system for secondary development according to the needs of the experimenter, and starts the experiment. Generating a function library and a Makefile script file: the secondary development progress module 102 summarizes the functions in the Asterisk system 1, generates an explanatory document of a function library for secondary development, and realizes independent compilation of Makefile script files in the secondary development progress module 102. Configuring and storing a database in a soft switch system: the dynamic module loader 101 can dynamically reduce or increase the running modules in the Asterisk system 1, the database interface module 5 changes the database configuration and management into a database mode, and the MySQL database 4 is used for helping to store the configuration and data related to the system.

The experimenter performs a secondary development test: experimenters complete own design program codes according to existing program frames and function libraries according to design thoughts, compile programs by using scripts, upload voice files required by own function modules, configure page setting special service numbers corresponding to the reference modules by using the dialing rule module 302, and finally restart the soft switch system to test and run the programs.

After the experiment is finished, the result is derived: the experimenter submits the experimental result, the system can automatically pack the data and send the data to the setting personnel, and the setting personnel can check the experimental condition of each group by comparing the IP addresses automatically allocated to each group by the docker, and can grade the experimental condition and export the experimental result.

The above-described embodiments are merely preferred embodiments of the present invention, and should not be construed as limiting the present invention, and the scope of the present invention is defined by the claims, and equivalents including technical features described in the claims. I.e., equivalent alterations and modifications within the scope hereof, are also intended to be within the scope of the invention.

12页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种云教育系统和教育数据输出方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!