A method, system and SIP server for updating voice service functions

By deploying the HTTP service on the SIP server, the smart terminal generates an HTTP request to update the freeswitch configuration file, which solves the problem in the existing technology that professionals must write command update functions, and realizes the ease of operation of the user's self-update function.

CN118337623BActive Publication Date: 2024-09-03CHENGDU YOUKA DIGITAL INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410752454.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-09-03
Estimated Expiration
2044-06-12

AI Technical Summary

Technical Problem

The SIP server of the existing freeswitch service requires professionals to write commands when business functions are changed. The operability is not strong, and it is difficult for users to update related functions by themselves.

Method used

Deploy the HTTP service on the SIP server, generate HTTP requests through the smart terminal to update the configuration file of the freeswitch service, generate a new configuration file and reload it to implement function updates.

Benefits of technology

Configuration files can be updated without professionals writing code, and users can complete function updates through web page settings, which significantly reduces the professional requirements of operators and improves operability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118337623B
    Figure CN118337623B
Patent Text Reader

Abstract

The present invention discloses a method, system and SIP server for updating voice service functions, comprising the following steps: receiving an HTTP request, wherein the HTTP request contains a function to be updated; reading a configuration file of a freeswitch service and modifying the configuration file according to the function to be updated to generate a new configuration file; overwriting the original configuration file with the new configuration file; generating a loading instruction to enable the freeswitch to reload the new configuration file. It does not require professionals to write codes and is easy to operate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of SIP servers, and in particular relates to a voice service function updating method, system and a SIP server. Background Art

[0002] SIP server is based on standard SIP signaling to provide real-time audio and video calls between terminal devices. As a powerful open source communication platform, freeswitch is an ideal choice for building a cloud call center due to its excellent performance and flexibility.

[0003] In the existing solution, when deploying freeswitch, directly compile the freeswitch source code, install the corresponding dependent applications on the host, and modify the configuration files in the configuration conf directory of the compilation result and the script plug-ins in the scripts directory to directly start the freeswitch service.

[0004] With the increase of outbound call services and users, the functions of related users will be changed according to user needs. In the existing audio and video call service scenario based on freeswitch service, the change of the corresponding functions of related users requires professionals to write relevant commands and then modify the configuration, which is highly professional and not easy to operate. Summary of the invention

[0005] In order to solve the problem that the existing SIP server of freeswitch service needs professionals to write relevant commands to make changes when the service function is changed, resulting in poor operability, the present invention provides a voice service function update method, system and SIP server, which do not require professionals to write codes and are easy to operate.

[0006] The purpose of the present invention is achieved through the following technical solutions:

[0007] A first aspect of the present invention provides a method for updating a voice service function, comprising the following steps:

[0008] Receiving an HTTP request, wherein the HTTP request includes a function to be updated;

[0009] Read the configuration file of the freeswitch service and modify the configuration file according to the function to be updated to generate a new configuration file;

[0010] Overwrite the original configuration file with the new one;

[0011] Generate a loading instruction to enable the freeswitch to reload the new configuration file.

[0012] A second aspect of the present invention provides a SIP server, wherein the SIP server is deployed with a freeswitch service and an HTTP service;

[0013] The SIP server stores a configuration file of the freeswitch service and a storage address corresponding to the configuration file;

[0014] The HTTP service is used to obtain the configuration file corresponding to the freeswitch service according to the HTTP request containing the function to be updated, and to generate a new configuration file and then overwrite the original configuration file to generate a loading instruction;

[0015] The freeswitch service is used to load a new configuration file according to the loading instruction and perform voice service management according to the configuration file.

[0016] The third aspect of the present invention provides a voice service function update system, comprising a smart terminal and a SIP server connected by a signal,

[0017] The intelligent terminal is used to generate an HTTP request, wherein the HTTP request includes a function to be updated;

[0018] The SIP server is a SIP server described in the first aspect.

[0019] Compared with the prior art, the present invention has at least the following advantages and beneficial effects:

[0020] The present invention adds an HTTP service to the SIP server. When updating related functions, the user only needs to set the related functions of the related users through a web page. The intelligent terminal generates an HTTP request according to the function to be updated and sends it to the HTTP service to complete the update of the configuration file in the freeswitch service. The operation is easy and the requirements on the professionalism of the operator are reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0022] Figure 1 This is an update flow chart of the voice service function update system of the present invention. DETAILED DESCRIPTION

[0023] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0024] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0025] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.

[0026] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0027] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside", etc. indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, or the positions or positional relationships in which the product of the invention is usually placed when in use, or the positions or positional relationships commonly understood by those skilled in the art, which are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.

[0028] The present invention discloses a voice service function updating method, system and SIP server, wherein the SIP server is an important unit in the voice service function updating system, the voice service function updating method is implemented based on the voice service function updating system, and in this scheme, the method executed by the SIP server is mainly described.

[0029] Specifically, Figure 1 As shown, the voice service function update system includes a SIP server and an intelligent terminal device. The intelligent terminal device is an intelligent device that can log in to a web page, such as a smart phone, a tablet, a computer, etc. The SIP server is deployed with a freeswitch service and an HTTP service.

[0030] After the freeswitch service is deployed on the SIP server, the configuration files of the freeswitch service and the storage addresses corresponding to the configuration files are stored on the SIP server. Conventionally, when the freeswitch service is installed and deployed, its configuration files are usually located in the conf subdirectory under the installation directory. For example, the configuration files can be stored at the following addresses:

[0031] c: / freeswitch / config / diaplan / internal.xml.

[0032] The configuration files include freeswitch.xml, directory, sip_profiles, dialplan, etc. Among them, freeswitch.xml is the main configuration file, which contains most of the core settings. directory stores directory files. sip_profiles contains SIP configuration. dialplan stores dial plan files.

[0033] This solution implements information interaction with smart terminals by deploying an HTTP service on a SIP server.

[0034] By encapsulating the relevant functions into relevant draggable and modifiable function buttons, when updating the relevant function services, the user only needs to set the relevant functions of the relevant user through the web page, and the smart terminal generates an HTTP request according to the function to be updated and sends it to the HTTP service. Among them, the HTTP request format is the same as the existing technology, including the request method, version protocol, user information and request content, among which the request content includes the function to be updated. For example, the function to be updated can add a call line for a certain user or automatically hang up after the call is connected and rings 10 times without answering.

[0035] After the HTTP service is deployed on the SIP server, since the configuration file address has been determined when the freeswitch service is deployed, the address of the freeswitch service configuration file is written to the HTTP service.

[0036] After the HTTP service receives the HTTP request, the HTTP service directly reads the configuration file of the freeswitch service according to the configuration file address and modifies the configuration file according to the function to be updated to generate a new configuration file; then the new configuration file is used to overwrite the original configuration file. After the configuration file is overwritten, a loading instruction is generated to enable the freeswitch to reload the new configuration file.

[0037] In modifying the configuration file to generate a new configuration file according to the function to be updated, the following steps can be specifically adopted: parsing the configuration file into an XML tree; determining the service node position of the function to be updated in the XML tree; and updating the function of the service node according to the function to be updated.

[0038] The XML (Extensible Markup Language) in this step is an extensible markup language designed to transmit and store data. XML documents form a tree structure, called an XML tree, which starts from the root and expands to branches and leaves. Each XML document has a root element, and other elements are encapsulated in this root element. Elements can have child elements, and the relationship between elements can be described by terms such as parent, child, and sibling. For this, a node is added to the XML tree for each type of service, and the functional attributes of the service are the child elements of the service node.

[0039] Exemplarily, each user can be set as a root element, which is a first-level service node; each function corresponding to the first-level service node is a child element of the root element, forming a second-level service node, which can be a call line; a third-level service node is set under the second-level service node, for example, the number of calls per day can be limited, and the call can be automatically hung up if there is no answer after 10 rings after the call is connected.

[0040] After the HTTP service obtains the current configuration file of the freeswitch service, it first parses it into an XML tree, and then locates the corresponding service node in the XML tree according to the function to be updated. For example, if the function to be updated is to add a line to a user, taking the XML tree in the above example as an example, the second-level service node of the XML tree to which the user belongs is directly located, and a new configuration file can be generated by adding a line to the service node.

[0041] The above solution can greatly reduce the requirements on the professionalism of operators. There is no need for professionals to write codes to update configuration files. It only requires clicking relevant buttons on the web page, which is easy to operate.

[0042] Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments, or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for updating voice service functions, characterized in that: The following steps are involved: Receiving an HTTP request, wherein the HTTP request includes a function to be updated; Read the configuration file of the freeswitch service and modify the configuration file according to the function to be updated to generate a new configuration file; Overwrite the original configuration file with the new one; Generate a loading instruction to enable the freeswitch to reload the new configuration file; The modifying the configuration file according to the function to be updated includes: Parse the configuration file into an XML tree; Determine the service node position of the function to be updated in the XML tree; The function of the service node is updated according to the function to be updated.

2. A SIP server, characterized in that: The SIP server is deployed with freeswitch service and HTTP service; The SIP server stores a configuration file of the freeswitch service and a storage address corresponding to the configuration file; The HTTP service is used to obtain the configuration file corresponding to the freeswitch service according to the HTTP request containing the function to be updated, and to generate a new configuration file and then overwrite the original configuration file to generate a loading instruction; The freeswitch service is used to load a new configuration file according to the loading instruction and perform voice service management according to the configuration file; The HTTP service generates a new configuration file using the following method: Parse the configuration file into an XML tree; Determine the service node position of the function to be updated in the XML tree; The function of the service node is updated according to the function to be updated.

3. A voice service function update system, characterized in that: Including smart terminals and SIP servers connected by signals, The intelligent terminal is used to generate an HTTP request, wherein the HTTP request includes a function to be updated; The SIP server is a SIP server as claimed in claim 2.

4. A voice service function updating system according to claim 3, characterized in that: The intelligent terminal is a smart phone, a tablet or a computer.