VoIP call routing method and system, computer storage medium and program product

By storing routing information tables in the OpenSIPS database and dynamically loading routing modules and rules, the flexibility and cost issues of VoIP call routing are resolved, enabling flexible routing policy configuration and reducing development and maintenance costs.

CN118646704BActive Publication Date: 2024-11-15E-CAPITAL TRANSFER CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411110294.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2024-11-15
Estimated Expiration
2044-08-14

AI Technical Summary

Technical Problem

In OpenSIPS, VoIP call routing has poor flexibility, is applicable to fixed scenarios, has high development and maintenance costs, and cannot implement general routing strategies.

Method used

By pre-storing routing information tables in the database and dynamically loading routing modules and rules, a flexible routing policy configuration can be achieved instead of hard-coded configuration files.

Benefits of technology

It reduces development and maintenance costs, improves the flexibility and versatility of routing strategies, and reduces functional and performance testing processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118646704B_ABST
    Figure CN118646704B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a VoIP call routing technology based on OpenSIPS, and more specifically to a VoIP call routing method, a VoIP call routing system implementing the method, and a computer-readable storage medium and a computer program product implementing the method. The method includes: in response to the start of OpenSIPS, loading a routing information table from a database; in response to receiving a SIP message from a SIP trunk, parsing the SIP message to obtain a target address; determining an OpenSIPS routing module and a routing rule matching the target address according to the routing information table; and executing a call routing operation for the SIP message based on the routing rule by the OpenSIPS routing module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to a VoIP call routing technology based on OpenSIPS, and more particularly to a VoIP call routing method, a VoIP call routing system implementing the method, and a computer-readable storage medium and a computer program product implementing the method. Background Art

[0002] VoIP (Voice over Internet Protocol) is an IP-based voice transmission technology, also known as Internet phone, IP phone or Internet phone. VoIP technology transmits voice, video and other multimedia information through the Internet, providing users with low-cost, high-quality real-time communication services. However, the complexity and diversity of VoIP communications make call routing a key technical challenge.

[0003] As a SIP (Session Initiation Protocol) server, OpenSIPS provides a new solution for VoIP call routing technology. OpenSIPS provides a variety of routing modules to implement routing capabilities, but does not provide flexible configuration capabilities for routing policies. Usually, you can only formulate a set of fixed rules for VoIP call routing by hard-coding the OpenSIPS configuration file opensips.cfg. Routing implemented in this way has poor flexibility and is applicable to fixed scenarios. Therefore, it cannot be universal and has high development and maintenance costs.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to a person of ordinary skill in the art. Summary of the invention

[0005] In order to solve or at least alleviate one or more of the above problems, the following technical solutions are provided. Embodiments of the present disclosure provide a VoIP call routing method, a VoIP call routing system implementing the method, and a computer-readable storage medium and a computer program product implementing the method, which can provide flexible routing module configuration capabilities and routing rule configuration capabilities, and reduce the difficulty of related product development and operation and maintenance.

[0006] According to a first aspect of the present disclosure, a VoIP call routing method is provided, the method comprising the following steps: in response to the start of OpenSIPS, loading a routing information table from a database; in response to receiving a SIP message from a SIP trunk, parsing the SIP message to obtain a target address; determining an OpenSIPS routing module and a routing rule matching the target address according to the routing information table; and performing a call routing operation for the SIP message based on the routing rule by the OpenSIPS routing module.

[0007] As an alternative or supplement to the above scheme, in a VoIP call routing method according to an embodiment of the present disclosure, the routing information table includes: a relay routing table, which specifies the matching relationship between the target address and the routing policy, and a number routing table, which specifies the matching relationship between the target address, the calling or called number and the routing policy, wherein the routing policy includes an OpenSIPS routing module and routing rules.

[0008] As an alternative or supplement to the above solution, in a VoIP call routing method according to an embodiment of the present disclosure, the method further includes: adding the routing information table to the database of the OpenSIPS; when the OpenSIPS is connected to a new SIP trunk or adjusts the existing routing policy, the matching relationship in the routing information table in the database is updated accordingly without hard coding the OpenSIPS configuration file.

[0009] As an alternative or supplement to the above scheme, in a VoIP call routing method according to an embodiment of the present disclosure, parsing the SIP message to obtain the target address includes: extracting the IP address, port number and protocol information from the SIP message; and performing an access control list check based on the IP address, port number and protocol information to obtain the target address.

[0010] As an alternative or supplement to the above scheme, in a VoIP call routing method according to an embodiment of the present disclosure, determining the OpenSIPS routing module and routing rules matching the target address according to the routing information table includes: querying the routing policy matching the target address in the relay routing table; determining the routing level according to the routing policy queried in the relay routing table; if the routing level is the relay level, determining the OpenSIPS routing module according to the routing policy queried in the relay routing table; if the routing level is the number level, querying the routing policy matching the target address, calling or called number in the number routing table, and determining the OpenSIPS routing module according to the routing policy queried in the number routing table.

[0011] As an alternative or supplement to the above scheme, in a VoIP call routing method according to an embodiment of the present disclosure, if the routing level is a number level and a routing policy matching the target address, calling number or called number is not found in the number routing table, the OpenSIPS routing module is determined according to the routing policy found in the relay routing table.

[0012] As an alternative or supplement to the above solution, in a VoIP call routing method according to an embodiment of the present disclosure, the OpenSIPS routing module includes a dynamic routing module Drouting, a scheduling module Dispatcher and a load balancing module Load_Balancer, and the routing rules include calling routing and called routing.

[0013] As an alternative or supplement to the above solution, in a VoIP call routing method according to an embodiment of the present disclosure, the method further includes: obtaining a routing group identifier based on the IP address, port number and protocol information, or obtaining a routing group identifier associated with the target address.

[0014] As an alternative or supplement to the above scheme, in a VoIP call routing method according to an embodiment of the present disclosure, if the matched OpenSIPS routing module is a dynamic routing module Drouting, the OpenSIPS routing module performs a call routing operation for the SIP message based on the routing rule, including: the dynamic routing module Drouting performs a call routing operation for the SIP message based on the routing rule and the routing group identifier.

[0015] According to a second aspect of the present disclosure, a VoIP call routing system is provided, comprising: a memory; a processor; and a computer program stored on the memory and executable on the processor, wherein the execution of the computer program enables any one of the VoIP call routing methods described in the first aspect of the present disclosure to be executed.

[0016] According to a third aspect of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes instructions, and the instructions, when run, execute any one of the VoIP call routing methods according to the first aspect of the present disclosure.

[0017] According to a fourth aspect of the present disclosure, a computer program product is provided, comprising a computer program. When the computer program is executed by a processor, any one of the VoIP call routing methods described in the first aspect of the present disclosure is implemented.

[0018] According to one or more embodiments of the present disclosure, a VoIP call routing solution is proposed to determine the OpenSIPS routing module and routing rules that match the target address of the SIP message according to the routing information table pre-stored in the database, to replace the fixed module selection and routing rules implemented by hard coding the OpenSIPS configuration file. First, this solution can provide flexible routing module configuration capabilities and routing rule configuration capabilities based on general scripts. Secondly, since when the routing policy needs to be adjusted, it is only necessary to modify the routing information table in the database, thereby saving the function test and performance test process after the script adjustment, and reducing the cost of related product development and operation and maintenance. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The above and / or other aspects and advantages of the present disclosure will become clearer and easier to understand through the following description of various aspects in conjunction with the accompanying drawings, in which the same or similar units are represented by the same reference numerals. In the accompanying drawings:

[0020] Figure 1 is a schematic flow chart of a VoIP call routing method 10 according to one or more embodiments of the present disclosure;

[0021] Figure 2 is a schematic flow chart of a VoIP call routing method 20 according to one or more embodiments of the present disclosure; and

[0022] Figure 3 FIG. 4 is a schematic block diagram of a VoIP call routing system 30 according to one or more embodiments of the present disclosure. DETAILED DESCRIPTION

[0023] The description of the following specific embodiments is merely exemplary in nature and is not intended to limit the disclosed technology or the application and use of the disclosed technology. In addition, it is not intended to be bound by any express or implied theory presented in the aforementioned technical field, background technology or the following specific embodiments.

[0024] In the following detailed description of the embodiments, many specific details are set forth in order to provide a more thorough understanding of the disclosed technology. However, it is apparent to one of ordinary skill in the art that the disclosed technology can be practiced without these specific details. In other instances, well-known features are not described in detail to avoid unnecessarily complicating the description.

[0025] Terms such as "having" and "including" indicate that in addition to the units (modules) and steps directly and clearly stated in the specification and claims, the technical solution of the present disclosure does not exclude the situation where there are other units (modules) and steps that are not directly or clearly stated. Terms such as "first" and "second" do not indicate the order of units in terms of time, space, size, etc., but are only used to distinguish each unit. In addition, the steps in this article are not limited to being implemented in the order of writing, but the steps written later can also be implemented at the same time as the steps written earlier, or before the steps written earlier.

[0026] Before explaining the VoIP call routing solution disclosed in the present invention, a brief description of OpenSIPS is first given. OpenSIPS (Open SIP Server) is an open source SIP server used to build large-scale real-time communication solutions. OpenSIPS is widely used in Class 4 / 5 platforms, trunks, enterprise / virtual PBX (Private Branch Exchange) solutions, SBC (Session Border Controller), application servers, front-end loads, and other scenarios of operators, telecoms or ITSP (Internet Telephony Service Provider), as well as intelligent media service platforms, call centers, etc.

[0027] As mentioned above, OpenSIPS provides a variety of routing modules to achieve routing capabilities, but does not provide flexible configuration capabilities for routing policies. Generally, a fixed policy for VoIP call routing can only be formulated by hard-coding the OpenSIPS configuration file opensips.cfg, for example, call routing based on the message source or the calling and called numbers. If the routing policy needs to be adjusted, for example, the original policy of "forwarding all messages received from message source A to destination B through the dispatch module Dispatcher" is adjusted to "forwarding all messages received from message source A to destination B through the dynamic routing module Drouting", the routing script needs to be modified at the code level. It should be understood that from the perspective of software development, code-level modifications to products that have been launched must go through a complex process, including but not limited to code writing and modification, functional testing, performance testing, and new version releases. The process is long and the time cost is high. Secondly, the adjustment of hard-coded scripts requires operation and maintenance personnel to have strong development capabilities and relevant communication knowledge background, so the operation and maintenance cost is high.

[0028] In view of the poor flexibility of routing implemented by hard coding, fixed applicable scenarios, inability to be universal, and high development and maintenance costs, the present disclosure provides a VoIP call routing solution.

[0029] Referring to the accompanying drawings, Figure 1 FIG. 1 is a schematic flow chart of a VoIP call routing method 10 according to one or more embodiments of the present disclosure.

[0030] like Figure 1 As shown, in step S110, in response to the start of OpenSIPS, the routing information table is loaded from the database.

[0031] In response to the startup of OpenSIPS, a series of initialization steps will be performed to ensure that the server can run normally and process SIP messages. Exemplarily, when OpenSIPS is started, its configuration file opensips.cfg is first read, which contains various configuration parameters of the server, including but not limited to database connection information. Next, a connection can be established with the specified OpenSIPS database according to the database connection information in the configuration file opensips.cfg. Common database types include MySQL, PostgreSQL, and SQLite. Once the connection is successful, an SQL query can be executed against the database to retrieve information in the routing information table from the database.

[0032] The routing information table in the present disclosure refers to a table data containing routing policies on how to decide how to route SIP messages according to different attributes of SIP messages (e.g., target address, calling number, called number, etc.). Exemplarily, the routing information table includes one or more of the following items: a matching relationship between the target address of the SIP message and the routing policy, a matching relationship between the target address and calling number of the SIP message and the routing policy, and a matching relationship between the target address and called number of the SIP message and the routing policy. Exemplarily, the routing policy includes an OpenSIPS routing module and routing rules that specifically perform call routing operations.

[0033] In step S120, in response to receiving a SIP message from the SIP trunk, the SIP message is parsed to obtain a target address.

[0034] SIP trunk, also known as SIP Trunk, is an IP connection based on the SIP protocol. It establishes a SIP communication link between an enterprise and an Internet phone service provider outside its firewall. When an internal user of an enterprise initiates an external call, the call request is first sent to the enterprise's IP-PBX. The IP-PBX recognizes that this is an external call and forwards it to the SIP trunk. The SIP trunk then sends the call request to the ITSP through OpenSIPS, and the ITSP is responsible for routing the call to the target phone number. When an external user calls the enterprise phone, the call flow is reversed. The SIP trunk can be a physical device or a software component.

[0035] In response to successfully receiving a SIP message from a SIP relay, the system immediately initiates a parsing process, which is intended to extract key information from a complex and structured SIP message body for further processing. Exemplarily, the SIP message may be an invite, register, message, or other type of SIP message. Optionally, an IP address (e.g., source IP address, IP address of a relay server), a port number (e.g., source port number, port number of a relay server), and protocol information may be extracted from the SIP message, and an access control list (ACL) check may be performed based on the IP address, port number, and protocol information. If the matched ACL rule allows access, the SIP message continues to be processed and the target address is obtained.

[0036] In step S130, the OpenSIPS routing module and routing rule matching the target address are determined according to the routing information table.

[0037] As described above, in the prior art, a set of fixed policies for VoIP call routing is usually formulated by hard-coding the OpenSIPS configuration file opensips.cfg. However, the present disclosure pre-stores the matching rules of the routing policy in the routing information table in the database, and determines the OpenSIPS routing module and routing rules that match the target address according to the matching relationship in the routing information table. Exemplarily, the OpenSIPS routing module includes a dynamic routing module Drouting, a scheduling module Dispatcher, and a load balancing module Load_Balancer, and the routing rules include calling routing and called routing.

[0038] In step S140, the OpenSIPS routing module performs a call routing operation for the SIP message based on the routing rules.

[0039] Exemplarily, the call routing operation may include: forwarding a message, that is, forwarding a SIP message to the next target address, which may be another SIP server, a SIP terminal device, or other network element; redirecting a message, that is, redirecting a SIP message to a new target address according to routing rules; rejecting a message, that is, if the routing rules do not allow the message to pass, the system may reject the message and send a corresponding error response.

[0040] Continue to refer to Figure 2 , Figure 2 FIG. 2 is a schematic flow chart of a VoIP call routing method 20 according to one or more embodiments of the present disclosure.

[0041] In step S210, a new routing information table is added to the OpenSIPS database.

[0042] In actual business scenarios, more complex routing requirements may arise. For example, some calls need to be routed and forwarded according to the message source, while others need to be forwarded according to the number. Forwarding according to the number may be divided into forwarding according to the calling number or the called number. In this regard, some embodiments of the present disclosure subdivide the routing information table into a relay routing table for message source routing and a number routing table for number routing. Among them, the relay routing table specifies the matching relationship between the target address and the routing policy, and the number routing table specifies the matching relationship between the target address, the calling or called number and the routing policy.

[0043] Optionally, the routing policy specifies the OpenSIPS routing module and routing rules used to perform specific call routing operations. Exemplarily, the dynamic routing module Drouting is used to dynamically route SIP messages, which can select the best routing path based on the target address and / or the calling or called number; the dispatching module Dispatcher is used for call dispatch management, which distributes SIP messages to multiple downstream servers to achieve load balancing and high availability; the load balancing module Load_Balancer is used to distribute SIP messages among multiple SIP servers, which can dynamically adjust the distribution of messages according to the load conditions of the servers to ensure efficient operation of the system.

[0044] Optionally, when OpenSIPS connects to a new SIP trunk or adjusts an existing routing policy, the matching relationship in the routing information table in the database is updated accordingly without hard coding the OpenSIPS configuration file. It should be noted that compared to updating the existing routing policy by hard coding the OpenSIPS configuration file, the difficulty and cost of updating the existing routing policy by updating the routing information table in the database are lower. For example, if 1,000 numbers need to be added and the 1,000 numbers are forwarded to 1,000 different addresses respectively, if there is no routing information table, these 1,000 routing logics need to be reflected in the script, which means that specific judgment processing needs to be performed one by one for the 1,000 numbers, which is very redundant and error-prone from the perspective of code implementation. If the existing routing policy is updated by updating the number routing table in the database, it is only necessary to store the matching relationship between the 1,000 numbers and the corresponding routing policy in the number routing table, and the routing script can be completed using the same set of code logic.

[0045] In step S220, in response to the start of OpenSIPS, a routing information table is loaded from the database. As described above, the routing information table may include a trunk routing table and a number routing table.

[0046] In step S230, in response to receiving a SIP message from the SIP trunk, the SIP message is parsed to obtain a target address. The implementation of step S230 can refer to the description of step S120 above, which will not be repeated here.

[0047] Optionally, in step S230, the routing group identifier group_id can also be obtained based on the IP address, port number and protocol information, or after obtaining the target address, the group_id associated with the target address can be obtained based on the matching relationship stored in the dr_group table of the dynamic routing module Drouting in advance. It should be noted here that since the routing rules are organized into different groups in the dynamic routing module Drouting in order to manage the routing strategy more flexibly, different routing groups are distinguished by a unique identifier group_id of the routing group.

[0048] In step S240, the routing strategy matching the target address is queried in the relay routing table. Exemplarily, the target address and the routing strategy in the relay routing table are in a one-to-one correspondence. In one possible embodiment, in step S240, the routing strategy corresponding to the target address address is queried in the relay routing table as trunk_strategy, where trunk_strategy is a string (for example, a 10-digit sequence). Further, the units digit of trunk_strategy indicates the routing level, for example, the units digit "1" is the trunk level and "0" is the number level; the tens digit of trunk_strategy indicates the routing module, for example, the tens digit "0" is the dynamic routing module Drouting, "1" is the dispatching module Dispatcher, and "2" is the load balancing module Load_Balancer; and the hundreds digit of trunk_strategy indicates the routing rule, for example, the hundreds digit "0" is the calling route and "1" is the called route.

[0049] In step S250, the routing level is determined according to the routing policy queried in the relay routing table.

[0050] If the routing level is the relay level, then continue to execute step S260, that is, determine the OpenSIPS routing module according to the routing policy queried in the relay routing table.

[0051] If the routing level is the number level, then continue to execute step S270, that is, query the routing strategy that matches the target address, calling or called number in the number routing table. In step S280, determine the OpenSIPS routing module according to the routing strategy queried in the number routing table. In a possible embodiment, if the routing level is the number level and the routing rule is determined to be calling routing based on trunk_strategy, the routing strategy number_strategy corresponding to the target address address and the calling number is queried in the number routing table; if the routing level is the number level and the routing rule is determined to be called routing based on trunk_strategy, the routing strategy number_strategy corresponding to the target address address and the called number is queried in the number routing table. Exemplarily, number_strategy is a string (for example, a 10-digit sequence), and the ten digits of number_strategy indicate the routing module, for example, the unit digit "0" is the dynamic routing module Drouting, "1" is the scheduling module Dispatcher, and "2" is the load balancing module Load_Balancer.

[0052] Optionally, if no routing policy matching the target address, calling number or called number is found in step S270, the OpenSIPS routing module is determined according to the routing policy found in the relay routing table. That is, if the number routing policy for the target address does not exist in the database, the relay routing policy is used as a fallback.

[0053] After the OpenSIPS routing module is determined, the determined OpenSIPS routing module performs a call routing operation for the SIP message according to the routing rule (not shown). As described above, the dynamic routing module Drouting additionally distinguishes different routing groups according to group_id, so the dynamic routing module Drouting can perform a call routing operation for the SIP message based on the routing rule and the routing group identifier group_id.

[0054] According to the VoIP call routing methods 10 and 20 disclosed in the present invention, it is proposed to determine the OpenSIPS routing module and routing rules that match the target address of the SIP message according to the routing information table pre-stored in the database, so as to replace the fixed module selection and routing rules implemented by hard coding the OpenSIPS configuration file. First, the methods 10 and 20 can provide flexible routing module configuration capabilities and routing rule configuration capabilities based on the general script. Secondly, since when the routing policy needs to be adjusted, it is only necessary to modify the routing information table in the database, thereby saving the function test and performance test process after the script adjustment, and reducing the cost of related product development and operation and maintenance.

[0055] Figure 3 FIG. 1 is a schematic block diagram of a VoIP call routing system 30 according to one or more embodiments of the present disclosure. Figure 3 As shown, the VoIP call routing system 30 includes a memory 310, a processor 320, and a computer program 330 stored in the memory 310 and executable on the processor 320. The execution of the computer program 330 enables the following Figure 1 or Figure 2 The method 10 or 20 shown is performed.

[0056] In addition, as described above, the present disclosure can also be implemented as a computer-readable storage medium, in which a program for causing a computer to execute the following steps is stored. Figure 1 or Figure 2 Here, as the computer storage medium, various computer storage media such as disks (e.g., magnetic disks, optical disks, etc.), cards (e.g., memory cards, optical cards, etc.), semiconductor memories (e.g., ROMs, nonvolatile memories, etc.), and tapes (e.g., magnetic tapes, cassettes, etc.) can be used.

[0057] The present disclosure may also be implemented as a computer program product, which includes a computer program, and when the computer program is executed by a processor, the program implements any one of the above methods 10 or 20.

[0058] Where applicable, hardware, software or a combination of hardware and software may be used to implement the various embodiments provided by the present disclosure. Moreover, where applicable, without departing from the scope of the present disclosure, the various hardware components and / or software components set forth herein may be combined into composite components comprising software, hardware and / or both. Where applicable, without departing from the scope of the present disclosure, the various hardware components and / or software components set forth herein may be divided into subcomponents comprising software, hardware or both. In addition, where applicable, it is contemplated that software components may be implemented as hardware components, and vice versa.

[0059] Software (such as program code and / or data) according to the present disclosure may be stored on one or more computer storage media. It is also contemplated that the software identified herein may be implemented using one or more general or special purpose computers and / or computer systems, networked and / or otherwise. Where applicable, the order of the various steps described herein may be changed, combined into composite steps, and / or divided into sub-steps to provide the features described herein.

[0060] The embodiments and examples presented herein are provided to best illustrate embodiments according to the present disclosure and its specific applications, and thereby enable those skilled in the art to implement and use the present disclosure. However, those skilled in the art will appreciate that the above description and examples are provided only for ease of illustration and example. The presented description is not intended to cover all aspects of the present disclosure or to limit the present disclosure to the precise form disclosed.

Claims

1. A VoIP call routing method, It is characterized in that The method comprises the following steps: In response to the start of OpenSIPS, a routing information table is loaded from a database; In response to receiving a SIP message from the SIP trunk, parsing the SIP message to obtain a target address; Determining an OpenSIPS routing module and a routing rule that matches the target address according to the routing information table, wherein the routing information table includes a relay routing table and a number routing table, and determining an OpenSIPS routing module and a routing rule that matches the target address according to the routing information table includes: Querying the relay routing table for a routing policy that matches the target address; Determine a routing level according to the routing policy queried in the relay routing table; If the routing level is a relay level, determining an OpenSIPS routing module according to the routing policy queried in the relay routing table; If the routing level is the number level, querying the routing policy matching the target address, calling number or called number in the number routing table, and determining the OpenSIPS routing module according to the routing policy queried in the number routing table; and The OpenSIPS routing module performs a call routing operation for the SIP message based on the routing rule.

2. The VoIP call routing method according to claim 1, It is characterized in that in, The relay routing table specifies the matching relationship between the target address and the routing policy, and The number routing table specifies the matching relationship between the target address, the calling or called number and the routing strategy, The routing strategy includes an OpenSIPS routing module and routing rules.

3. The VoIP call routing method according to claim 1 or 2, It is characterized in that The method further comprises: Adding the routing information table to the OpenSIPS database; When the OpenSIPS is connected to a new SIP trunk or an existing routing policy is adjusted, the matching relationship in the routing information table in the database is updated accordingly without hard coding the OpenSIPS configuration file.

4. The VoIP call routing method according to claim 1, It is characterized in that Parsing the SIP message to obtain the target address includes: Extracting IP address, port number and protocol information from the SIP message; and An access control list check is performed based on the IP address, port number and protocol information to obtain the target address.

5. The VoIP call routing method according to claim 1, It is characterized in that If the routing level is the number level and no routing policy matching the target address, calling number or called number is found in the number routing table, an OpenSIPS routing module is determined according to the routing policy found in the relay routing table.

6. The VoIP call routing method according to claim 1, It is characterized in that The OpenSIPS routing module includes a dynamic routing module Drouting, a scheduling module Dispatcher and a load balancing module Load_Balancer, and the routing rules include calling routing and called routing.

7. The VoIP call routing method according to claim 4, It is characterized in that The method further comprises: Obtaining a routing group identifier based on the IP address, port number, and protocol information, or A routing group identifier associated with the target address is obtained.

8. A VoIP call routing system, It is characterized in that Include: Memory; processor; as well as A computer program stored on the memory and executable on the processor, wherein the execution of the computer program causes the method according to any one of claims 1 to 7 to be performed.

9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium comprises instructions which, when executed, perform the method according to any one of claims 1-7.

10. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 7.