Converged communication method and device based on multi-relay dynamic routing
By configuring multiple relays in the converged communication platform and setting call permissions and rules, dynamically selecting target relays for message routing, the flexibility and scalability problems of traditional communication systems when communicating with multiple third-party systems are solved, and efficient and flexible communication management is achieved.
Patent Information
- Application Number
- CN202510479590.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-16
- Publication Date
- 2025-07-18
AI Technical Summary
Traditional communication systems lack flexibility and scalability in communicating with multiple third-party systems, resulting in complex configurations and error-prone.
By integrating multiple relays in the converged communication platform for relay configuration, setting call permissions and call rules, dynamically selecting target relays for message routing, realizing support for multi-relay routing.
It improves the flexibility and efficiency of communication, and can dynamically adjust routing policies according to actual needs to ensure the continuity and reliability of communication.
Smart Images

Figure CN120342933A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technologies, and more particularly, to a converged communication method and apparatus based on multi-relay dynamic routing. Background Art
[0002] With the rapid development of communication technologies, the communication systems of enterprises and organizations usually need to communicate with multiple third-party systems, such as civil air defense systems, PSTN gateways, etc. Traditional communication systems usually can only communicate with third-party systems through a single relay, lacking flexibility and scalability. When communicating with multiple third-party systems, traditional communication systems often require complex configurations and manual operations, resulting in low efficiency and easy errors.
[0003] Currently, there are some multi-relay routing solutions. Among them, traditional communication systems communicate with third-party systems through multiple relays, specifically realizing message forwarding through routing rules and permission management.
[0004] However, the current multi-relay routing solutions lack flexibility in terms of routing rules and permission management, and it is difficult to dynamically adjust routing policies according to actual needs. Summary of the Invention
[0005] In view of this, the purpose of the present application is to provide a converged communication method and apparatus based on multi-relay dynamic routing. By performing relay configuration for each relay in the converged communication platform, and setting and managing call permissions and call rules for extensions, external systems, and relays, when an extension calls an external system, a corresponding target relay is dynamically selected for message routing according to the call permission and call rule of the extension, realizing support for multi-relay routing, being able to flexibly configure permissions and rules, and dynamically adjust routing policies according to actual needs, improving the flexibility of communication.
[0006] In a first aspect, an embodiment of the present application provides a converged communication method based on multi-relay dynamic routing, which is applied to a converged communication platform; the converged communication platform includes multiple relays; the method includes:
[0007] Performing relay configuration for each relay in the converged communication platform based on multi-dimensional relay configuration types, setting corresponding call permissions for each extension, external system, and relay, and setting corresponding call rules for each call; wherein, the call rule represents the number rule of each call and the relays allowed for routing; each call corresponds to a called number rule;
[0008] When the extension calls an external system, querying the call permission of the extension and determining the call rule of this call, and performing permission verification based on the call permission;
[0009] When the call permission allows the extension to call an external system, dynamically select a corresponding target relay based on the call rules;
[0010] Route the call message to the target relay, and forward the call message to the external system through the target relay.
[0011] In a possible implementation, the dynamically selecting a corresponding target relay based on the call rules includes:
[0012] Sequentially match the called number rules of this call based on the call rules, determine the corresponding preferred relay and alternative relays, and dynamically select the preferred relay as the target relay to initiate an external call;
[0013] In response to the unavailability or failure of the preferred relay, use the alternative relay as the target relay and automatically switch to the alternative relay.
[0014] In a possible implementation, the method further includes:
[0015] In response to the call message being forwarded to the external system or the extension through the relay, the external system or extension to which the call message is forwarded triggers a ring;
[0016] The triggering of the ring includes:
[0017] The external system or extension to which the call message is forwarded sends a signal instruction indicating successful call to the target relay.
[0018] In a possible implementation, the method further includes:
[0019] When the external system calls the extension, determine the target relay corresponding to the external system, query the call permission of the target relay, and determine the call rules for this call;
[0020] When the call permission allows the external system to call the extension, dynamically select a corresponding target relay based on the call rules;
[0021] Route the call message to the target relay to forward the call message to the extension through the target relay.
[0022] In a possible implementation, the method further includes:
[0023] When a first external system calls a second external system through the relay of the converged communication platform, determine the first relay matched by the first external system and query the outgoing permission of the first relay;
[0024] In response to the outgoing call permission of the first relay, allow the first external system to call the second external system, determine the second relay of the second external system based on the call rules of this call, and forward the call message to the second external system.
[0025] In a possible implementation manner, the determining the second relay of the second external system based on the call rules of this call includes:
[0026] Match the called number rule of this call based on the call rules of this call to determine the outgoing call rule of the first relay;
[0027] Based on the outgoing call rule of the first relay, sequentially match the called number rules of the second external system as the target outgoing call rule, and determine the second relay that matches the second external system based on the target outgoing call rule.
[0028] In a possible implementation manner, the forwarding the call message to the second external system includes:
[0029] Route the call message through the first relay to the second relay, so as to forward the call message to the external system through the second relay.
[0030] In a second aspect, an embodiment of the present application further provides a converged communication device based on multi-relay dynamic routing, which is applied to a converged communication platform; the converged communication platform includes multiple relays; the device includes:
[0031] A configuration module, configured to perform relay configuration for each relay in the converged communication platform based on multi-dimensional relay configuration types, set corresponding call permissions for each extension, external system, and relay, and set corresponding call rules for each call; wherein, the call rules represent the number rules of each call and the relays allowed for routing; each call corresponds to a called number rule;
[0032] A first call module, configured to query the call permission of the extension and determine the call rules of this call when the extension calls an external system, and perform permission verification based on the call permission;
[0033] A first selection module, configured to dynamically select a corresponding target relay based on the call rules when the call permission allows the extension to call an external system;
[0034] A first routing module, configured to route the call message to the target relay and forward the call message to the external system through the target relay.
[0035] In a possible implementation manner, the first selection module is specifically configured to:
[0036] Sequentially match the called number rules for this call based on the call rules, determine the corresponding preferred relay and alternative relay, and dynamically select the preferred relay as the target relay to initiate an external call;
[0037] In response to the unavailability of the preferred relay or a failure return, use the alternative relay as the target relay and automatically switch to the alternative relay.
[0038] In a possible implementation manner, the converged communication device based on multi-relay dynamic routing of the present application further includes:
[0039] A response module, configured to, when the call message is forwarded to the external system or the extension through the relay, trigger ringing by the external system or extension to which the call message is forwarded;
[0040] Specifically, the response module is configured to send a signal instruction indicating a successful call from the external system or extension to which the call message is forwarded to the target relay. In a possible implementation manner, the converged communication device based on multi-relay dynamic routing of the present application further includes:
[0041] A second call module, configured to, when the external system calls the extension, determine the target relay corresponding to the external system, query the call permission of the target relay, and determine the call rules for this call;
[0042] A second selection module, configured to, when the call permission allows the external system to call the extension, dynamically select the corresponding target relay based on the call rules;
[0043] A second routing module, configured to route the call message to the target relay to forward the call message to the extension through the target relay.
[0044] In a possible implementation manner, the converged communication device based on multi-relay dynamic routing of the present application further includes:
[0045] A third call module, configured to, when a first external system calls a second external system through the relay of the converged communication platform, determine the first relay matched by the first external system and query the outgoing permission of the first relay;
[0046] A third routing module, configured to, in response to the outgoing permission of the first relay allowing the first external system to call the second external system, determine the second relay of the second external system based on the call rules for this call and forward the call message to the second external system.
[0047] In a possible implementation manner, the third routing module is specifically configured to:
[0048] Match the called number rule of this call based on the call rule of this call to determine the outgoing rule of the first relay;
[0049] Based on the outgoing rule of the first relay, sequentially match the called number rules of the second external system as the target outgoing rule, and determine the second relay that matches the second external system based on the target outgoing rule.
[0050] In a possible implementation manner, the third routing module is specifically configured to:
[0051] Route the call message to the second relay through the first relay, so as to forward the call message to the external system through the second relay.
[0052] In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, a storage medium, and a bus. The storage medium stores machine-readable instructions executable by the processor. When the electronic device runs, the processor communicates with the storage medium through the bus. The processor executes the machine-readable instructions to perform the steps of the multi-relay dynamic routing-based fusion communication method according to any one of the first aspects.
[0053] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is run by a processor, it performs the steps of the multi-relay dynamic routing-based fusion communication method according to any one of the first aspects.
[0054] A fusion communication method and device based on multi-relay dynamic routing provided by an embodiment of the present application perform relay configuration for each relay in the fusion communication platform based on multi-dimensional relay configuration types, set corresponding call permissions for each extension, external system, and relay, and set corresponding call rules for each call. When an extension calls an external system, query the call permission of the extension and determine the call rule of this call, and perform permission verification based on the call permission. When the call permission allows the extension to call the external system, dynamically select the corresponding target relay based on the call rule, route the call message to the target relay, and forward the call message to the external system through the target relay. In this application, relay configuration is performed through multiple relays in the fusion communication platform, and call permissions and call rules are set and managed for extensions, external systems, and relays. When an extension calls an external system, the corresponding target relay is dynamically selected for message routing according to the call permission and call rule of the extension, which realizes the support for multi-relay routing, can flexibly configure permissions and rules, and dynamically adjust the routing strategy according to actual needs, improving the flexibility of communication.
[0055] To make the above objects, features, and advantages of the present application more apparent and understandable, the following provides preferred embodiments in conjunction with the accompanying drawings and describes them in detail as follows. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] To more clearly illustrate the technical solutions of the embodiments of the present application, the accompanying drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present application and should not be regarded as limiting the scope. For those of ordinary skill in the art, without creative efforts, other related drawings can also be obtained based on these drawings.
[0057] Figure 1 is a flowchart of a fusion communication method based on multi-relay dynamic routing provided according to an embodiment of the present application;
[0058] Figure 2 is a schematic diagram of the process of an extension calling an external system;
[0059] Figure 3 is a schematic diagram of the process of an external system calling an extension;
[0060] Figure 4 is a schematic diagram of the process of an external system calling an external system;
[0061] Figure 5 is a schematic structural diagram of a fusion communication device based on multi-relay dynamic routing provided according to an embodiment of the present application;
[0062] Figure 6 is a schematic structural diagram of an electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0063] To make the objects, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve for illustration and description purposes and are not used to limit the protection scope of the present application. Additionally, it should be understood that the schematic drawings are not drawn to actual scale. The flowcharts used in the present application show the operations implemented according to some embodiments of the present application. It should be understood that the operations in the flowchart may not be implemented in sequence, and steps without logical context relationships can be reversed or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart or remove one or more operations from the flowchart under the guidance of the content of the present application.
[0064] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all embodiments. The components of the embodiments of the present application described and illustrated in the drawings here can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the present application claimed, but merely represents selected embodiments of the present application. All other embodiments obtained by those skilled in the art based on the embodiments of the present application without creative efforts fall within the scope of protection of the present application.
[0065] It should be noted that the term "including" will be used in the embodiments of the present application to indicate the existence of the features stated thereafter, but does not exclude the addition of other features.
[0066] Considering the rapid development of communication technologies, the communication systems of enterprises and organizations usually need to communicate with multiple third-party systems, such as civil air defense systems, PSTN gateways, etc. Traditional communication systems usually can only communicate with third-party systems through a single relay, lacking flexibility and scalability. When it is necessary to communicate with multiple third-party systems, traditional communication systems often require complex configurations and manual operations, resulting in low efficiency and easy errors.
[0067] Currently, there are some multi-relay routing solutions. Among them, traditional communication systems communicate with third-party systems through multiple relays, specifically by implementing message forwarding through routing rules and permission management. However, the current multi-relay routing solutions lack flexibility in terms of routing rules and permission management and are difficult to dynamically adjust routing policies according to actual needs.
[0068] To address this problem, the present application provides a converged communication method and device based on multi-relay dynamic routing. By performing relay configuration through multiple relays in the converged communication platform, and setting and managing call permissions and call rules for extensions, external systems, and relays, when an extension calls an external system, the corresponding target relay is dynamically selected for message routing according to the call permissions and call rules of the extension, realizing support for multi-relay routing, being able to flexibly configure permissions and rules, and dynamically adjust routing policies according to actual needs, improving the flexibility of communication.
[0069] Figure 1 is a flowchart of the converged communication method based on multi-relay dynamic routing provided according to the embodiments of the present application. The converged communication method based on multi-relay dynamic routing of the embodiments of the present application is applied to a converged communication platform; the converged communication platform includes multiple relays. As Figure 1 shown, the converged communication method based on multi-relay dynamic routing of the embodiments of the present application may specifically include:
[0070] S101. Configure relays for each relay in the converged communication platform based on multi-dimensional relay configuration types, set corresponding call permissions for each extension, external system, and relay, and set corresponding call rules for each call.
[0071] S102. When an extension calls an external system, query the call permission of the extension and determine the call rule for this call, and perform permission verification based on the call permission.
[0072] S103. When the call permission allows the extension to call the external system, dynamically select the corresponding target relay based on the call rule.
[0073] S104. Route the call message to the target relay, and forward the call message to the external system through the target relay.
[0074] In the above converged communication method based on multi-relay dynamic routing, relay configuration is performed through multiple relays in the converged communication platform, and call permissions and call rules are set and managed for extensions, external systems, and relays. When an extension calls an external system, the corresponding target relay is dynamically selected for message routing according to the call permission and call rule of the extension, supporting multi-relay routing, enabling flexible configuration of permissions and rules, and dynamically adjusting the routing strategy according to actual needs, improving the flexibility of communication.
[0075] The following uses specific examples to illustrate the above exemplary steps of the embodiments of the present application:
[0076] S101. Configure relays for each relay in the converged communication platform based on multi-dimensional relay configuration types, set corresponding call permissions for each extension, external system, and relay, and set corresponding call rules for each call.
[0077] Among them, the relay configuration at least includes the local IP address, local port, remote IP address, and remote port; the call rules include the rules for incoming calling party, incoming called party, outgoing calling party, and outgoing called party; each call corresponds to a number rule and at least one relay allowed for routing; the same extension is routed to different external systems through multiple relays; each relay is used to connect to an external system; only extensions and relays with corresponding call permissions can initiate or receive calls.
[0078] Those skilled in the art can understand that a relay represents the interface between the converged communication platform and an external system (such as a PSTN gateway, civil air defense system, other SIP networks), and is responsible for adapting the internal communication protocol (such as SIP) to the external system protocol.
[0079] In the embodiments of the present application, the multi-dimensional relay configuration types include local IP address, local port, remote IP address, and remote port, etc. The call rules characterize the number rules of each call and the relays allowed for routing. Each call corresponds to a called number rule. The external system, i.e., the third-party system, performs relay configuration for each relay in the converged communication platform, sets corresponding call permissions for each extension, external system, and relay, and sets corresponding call rules for each call for subsequent processing.
[0080] For example, in the converged communication platform, multiple relays are added. Each relay is configured with a local IP address, a local port, a remote IP address, and a remote port. For example, relay A is used to connect to external system A, and relay B is used to connect to the PSTN gateway. This is the relay configuration. Call rules corresponding to each call are configured, including the rules for incoming calling party, incoming called party, outgoing calling party, and outgoing called party. Each call is configured with a number rule and the relays allowed for routing. Multiple relays can be configured. For example, the number for calling the civil air defense system is configured as "099XXXX", and calls matching this number can be routed through the configured relays A and B. This is the call rule configuration. Call permissions are configured for each extension, external system, and relay. For example, the call permission of extension A is configured to allow calling external system A through relay A. This is the call permission configuration.
[0081] S102, when an extension calls an external system, query the call permission of the extension and determine the call rules for this call, and perform permission verification based on the call permission.
[0082] In the embodiments of the present application, permission verification is to perform verification according to the call permission of the extension. When an extension calls an external system, query the call permission of the extension, determine the call rules for this call, and perform permission verification based on the call permission of the extension for subsequent processing. For example, as Figure 2 shown, when extension A calls an external system, first query the call permission of extension A and determine the call rules.
[0083] S103, when the call permission allows the extension to call the external system, dynamically select the corresponding target relay based on the call rules.
[0084] In the embodiments of the present application, the target relay is the relay to which the call message is to be routed. When performing permission verification based on the call permission of the extension, when it is determined that the call permission is allowed, that is, when the call permission allows the extension to call the external system, dynamically select the corresponding target relay according to the call rules for subsequent processing. For example, as Figure 2 shown, if the call permission of the extension is allowed, then match and select the corresponding relay based on the call rules. That is, find the matching relay A as the target relay according to the number rule (the called number rule) corresponding to the call rules.
[0085] Optionally, when dynamically selecting a corresponding target relay based on call rules, the called number rules for this call are sequentially matched based on the call rules to determine the corresponding preferred relay and alternative relay, and the preferred relay is dynamically selected as the target relay to initiate an external call; in response to the unavailability of the preferred relay or a failure return, the alternative relay is used as the target relay, and the system automatically switches to the alternative relay. Specifically, for example, as Figure 2 shown, the call rules correspond to the called number rules. According to the call rules, the called number rules for this call are sequentially matched to determine the preferred relay A as the target relay. If the preferred relay A has no response or returns a failure (such as the SIP protocol returning a 408 timeout), the alternative relay is used as the target relay, and the system automatically switches to the alternative relay. The alternative relay completes the secondary routing to ensure the continuity of the communication link.
[0086] Therefore, the configuration of the preferred relay and the alternative relay is supported to ensure that when the primary relay is unavailable, the system can automatically switch to the alternative relay. Through the disaster recovery mechanism of the preferred relay and the alternative relay, the continuity of communication is guaranteed.
[0087] S104, route the call message to the target relay, and forward the call message to the external system through the target relay.
[0088] In the embodiment of the present application, after determining the target relay in step S103, the call message of this call is routed to the target relay, and the call message is forwarded to the external system through the target relay, thereby completing the converged communication based on multi-relay dynamic routing. For example, as Figure 2 shown, the call message is routed to the preferred relay A, and the relay A forwards the message to the external system.
[0089] It should be noted that in response to the call message being forwarded to the external system or the extension through the relay, the external system or the extension to which the call message is forwarded triggers a ring. Optionally, the external system or the extension to which the call message is forwarded sends a signal instruction indicating a successful call to the target relay.
[0090] Specifically, when the call message is forwarded to the external system through the relay (i.e., the call is successful), the external system sends a signal instruction indicating a successful call to the target relay. When the call message is forwarded to the extension through the relay (i.e., the call is successful), the extension also sends a signal instruction indicating a successful call to the target relay. Thus, the ring is triggered to indicate the reminder and notification of a successful call. For example, as Figure 2 shown.
[0091] The fusion communication method based on multi-relay dynamic routing provided by the embodiments of the present application performs relay configuration for each relay in the fusion communication platform based on multi-dimensional relay configuration types, sets corresponding call permissions for each extension, external system, and relay, and sets corresponding call rules for each call. When an extension calls an external system, it queries the call permission of the extension and determines the call rule for this call, and performs permission verification based on the call permission. When the call permission allows the extension to call the external system, it dynamically selects the corresponding target relay based on the call rule, routes the call message to the target relay, and forwards the call message to the external system through the target relay. The fusion communication method based on multi-relay dynamic routing of the present application performs relay configuration through multiple relays in the fusion communication platform, and sets and manages call permissions and call rules for extensions, external systems, and relays. When an extension calls an external system, it dynamically selects the corresponding target relay for message routing according to the call permission and call rule of the extension, realizes the support for multi-relay routing, can flexibly configure permissions and rules, and dynamically adjust the routing strategy according to actual needs, improving the flexibility of communication.
[0092] Further, when an external system calls an extension, determine the target relay corresponding to the external system, and query the call permission of the target relay and determine the call rule for this call; when the call permission allows the external system to call the extension, dynamically select the corresponding target relay based on the call rule; route the call message to the target relay to forward the call message to the extension through the target relay.
[0093] Specifically, the same as the above-mentioned extension calling an external system. For example, as Figure 3 shown, when the external system calls extension A, query the call permission of the determined relay B corresponding to the external system. When the call permission allows, that is, allows the external system to call extension A, the external system initiates a call to the determined relay B, routes the call message to relay B according to the call rule and call permission, and then relay B forwards it to extension A, triggering extension A to ring.
[0094] It should be noted that if the preferred relay B has no response or returns a failure (such as the SIP protocol returns a 408 timeout), it will also automatically switch to the backup relay, and the backup relay completes the secondary routing. For example, as Figure 3 shown.
[0095] Further, when the first external system calls the second external system through the relay of the fusion communication platform, determine the first relay matching the first external system, and query the outgoing permission of the first relay; in response to the outgoing permission of the first relay allowing the first external system to call the second external system, determine the second relay of the second external system based on the call rule of this call, and forward the call message to the second external system.
[0096] Specifically, for example, as Figure 4 shown, when the first external system A makes a relay call to the second external system B through the converged communication platform, first query the outgoing permission of relay A corresponding to the external system A (that is, determine and filter out the corresponding relay A in the converged communication platform), and determine whether the external system A is within the outgoing permission of relay A. If the outgoing permission of relay A permits, then determine relay B of the external system B according to the call rules of this call, and forward the call message to the external system B.
[0097] Optionally, when determining the second relay of the second external system based on the call rules of this call, match the called number rules of this call based on the call rules of this call to determine the outgoing rules of the first relay; sequentially match the called number rules of the second external system as the target outgoing rules based on the outgoing rules of the first relay, and determine the second relay that matches the second external system based on the target outgoing rules.
[0098] Specifically, for example, as Figure 4 shown, when the outgoing permission of relay A permits, match the called number rules of this call according to the call rules of this call to find the outgoing rules of relay A (for example, 027, 0781, 0751, etc.), and sequentially match the called number rules of the external system B as the target outgoing rules (for example, 0751) through the outgoing rules of this relay A, that is, find the outgoing rules of relay A that match the called number rules of the external system B, and then determine the matching relay B according to the target outgoing rules.
[0099] Optionally, when forwarding the call message to the second external system, route the call message through the first relay to the second relay, so as to forward the call message to the external system through the second relay. Specifically, as Figure 4 shown, route the call message through relay A to relay B, and forward it to the external system B through relay B to trigger the external system B to ring.
[0100] Therefore, this application supports flexible routing between multiple relays, can dynamically adjust the routing strategy according to actual needs, reflecting flexibility; supports adding multiple relays, can easily expand the communication ability with third-party external systems, reflecting scalability; improves the efficiency and reliability of the communication system through automated routing management and permission control; supports the configuration of preferred relays and backup relays to ensure that when the primary relay is unavailable, it can automatically switch to the backup relay to ensure the continuity and reliability of communication.
[0101] It should be noted that a converged communication method based on multi-relay dynamic routing in this application is also an implementation method of multi-relay dynamic routing in a converged communication platform.
[0102] Figure 5It is a schematic structural diagram of a converged communication device based on multi-relay dynamic routing provided by an embodiment of the present application; the converged communication device based on multi-relay dynamic routing provided by the embodiment of the present application is applied to a converged communication platform; the converged communication platform includes multiple relays; as Figure 5 shown, the converged communication device 500 based on multi-relay dynamic routing according to the embodiment of the present application may specifically include:
[0103] A configuration module 501, configured to perform relay configuration for each relay in the converged communication platform based on multi-dimensional relay configuration types, set corresponding call permissions for each extension, external system, and relay, and set corresponding call rules for each call; wherein, the call rule characterizes the number rule of each call and the relays allowed for routing; each call corresponds to a called number rule.
[0104] A first call module 502, configured to query the call permission of the extension and determine the call rule of this call when the extension calls the external system, and perform permission verification based on the call permission.
[0105] A first selection module 503, configured to dynamically select a corresponding target relay based on the call rule when the call permission allows the extension to call the external system.
[0106] A first routing module 504, configured to route the call message to the target relay and forward the call message to the external system through the target relay.
[0107] In a possible implementation manner, the first selection module is specifically configured to:
[0108] Match the called number rule of this call in sequence based on the call rule, determine the corresponding preferred relay and alternative relays, and dynamically select the preferred relay as the target relay to initiate an external call;
[0109] In response to the unavailability of the preferred relay or the return of a failure, use the alternative relay as the target relay and automatically switch to the alternative relay.
[0110] In a possible implementation manner, the converged communication device based on multi-relay dynamic routing of the present application further includes:
[0111] A response module, configured to, in response to the call message being forwarded to the external system or the extension through the relay, trigger a ring when the external system or the extension to which the call message is forwarded.
[0112] The response module is specifically configured to send a signal instruction indicating a successful call to the target relay by the external system or the extension to which the call message is forwarded. In a possible implementation manner, the converged communication device based on multi-relay dynamic routing of the present application further includes:
[0113] A second call module, configured to determine a target relay corresponding to an external system when the external system calls an extension, query the call permission of the target relay, and determine the call rule for this call;
[0114] A second selection module, configured to dynamically select a corresponding target relay based on the call rule when the call permission allows the external system to call the extension;
[0115] A second routing module, configured to route a call message to the target relay, so as to forward the call message to the extension through the target relay.
[0116] In a possible implementation manner, the integrated communication device based on multi-relay dynamic routing of the present application further includes:
[0117] A third call module, configured to determine a first relay matched by a first external system when the first external system calls a second external system through a relay of an integrated communication platform, and query the outgoing permission of the first relay;
[0118] A third routing module, configured to, in response to the outgoing permission of the first relay allowing the first external system to call the second external system, determine a second relay of the second external system based on the call rule for this call, and forward the call message to the second external system.
[0119] In a possible implementation manner, the third routing module is specifically configured to:
[0120] Match the called number rule for this call based on the call rule for this call to determine the outgoing rule of the first relay;
[0121] Sequentially match the called number rule of the second external system as the target outgoing rule based on the outgoing rule of the first relay, and determine the second relay matching the second external system based on the target outgoing rule.
[0122] In a possible implementation manner, the third routing module is specifically configured to:
[0123] Route the call message through the first relay to the second relay, so as to forward the call message to the external system through the second relay.
[0124] The fusion communication device based on multi-relay dynamic routing provided by the embodiments of the present application performs relay configuration for each relay in the fusion communication platform based on multi-dimensional relay configuration types, sets corresponding call permissions for each extension, external system, and relay, and sets corresponding call rules for each call. When an extension calls an external system, it queries the call permission of the extension and determines the call rules for this call, and performs permission verification based on the call permission. When the call permission allows the extension to call the external system, it dynamically selects a corresponding target relay based on the call rules, routes the call message to the target relay, and forwards the call message to the external system through the target relay. The fusion communication device based on multi-relay dynamic routing of the present application performs relay configuration through multiple relays in the fusion communication platform, and sets and manages call permissions and call rules for extensions, external systems, and relays. When an extension calls an external system, it dynamically selects a corresponding target relay for message routing according to the call permission and call rules of the extension, realizes the support for multi-relay routing, can flexibly configure permissions and rules, and dynamically adjust the routing strategy according to actual needs, improving the flexibility of communication.
[0125] As Figure 6 shown, an electronic device 600 provided by an embodiment of the present application includes: a processor 601, a memory 602, and a bus. The memory 602 stores machine-readable instructions executable by the processor 601. When the electronic device runs, the processor 601 communicates with the memory 602 through the bus, and the processor 601 executes the machine-readable instructions to perform the steps of the above-mentioned fusion communication method based on multi-relay dynamic routing.
[0126] Specifically, the above-mentioned memory 602 and processor 601 can be general-purpose memory and processor, which are not specifically limited here. When the processor 601 runs the computer program stored in the memory 602, it can execute the above-mentioned fusion communication method based on multi-relay dynamic routing.
[0127] Corresponding to the above-mentioned fusion communication method based on multi-relay dynamic routing, an embodiment of the present application also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium, and when the computer program is run by a processor, it executes the steps of the above-mentioned fusion communication method based on multi-relay dynamic routing.
[0128] Those skilled in the art can clearly understand that for the convenience and conciseness of description, the specific working processes of the systems and devices described above can refer to the corresponding processes in the method embodiments, and will not be elaborated herein. In several embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of the modules is only a logical functional division, and there can be other division methods in actual implementation. For another example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the couplings, direct couplings, or communication connections shown or discussed with each other can be through some communication interfaces. The indirect couplings or communication connections of the devices or modules can be in electrical, mechanical, or other forms.
[0129] The modules described as separate components may or may not be physically separated. The components shown as modules may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0130] In addition, each functional unit in various embodiments of the present application can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit.
[0131] If the functions are implemented in the form of software function units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the deployment methods described in various embodiments of the present application. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical discs that can store program codes.
[0132] The above is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application, and all of them should be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A converged communication method based on multi-relay dynamic routing, which is applied to a converged communication platform; The converged communication platform includes multiple relays; characterized in that, The method includes: Performing relay configuration for each relay in the converged communication platform based on multi-dimensional relay configuration types, setting corresponding call permissions for each extension, external system, and relay, and setting corresponding call rules for each call; wherein, the call rules characterize the number rules of each call and the relays allowed for routing; each call corresponds to a called number rule. When the extension calls the external system, query the call permission of the extension and determine the call rules for this call, and perform permission verification based on the call permission. When the call permission allows the extension to call the external system, dynamically select a corresponding target relay based on the call rules. Route the call message to the target relay, and forward the call message to the external system through the target relay.
2. The method according to claim 1, wherein The dynamically selecting a corresponding target relay based on the call rules includes: Sequentially matching the called number rules of this call based on the call rules, determining the corresponding preferred relay and alternative relays, and dynamically selecting the preferred relay as the target relay to initiate an external call. In response to the unavailability or failure of the preferred relay, use the alternative relay as the target relay and automatically switch to the alternative relay.
3. The method according to claim 2, wherein The method further includes: In response to the call message being forwarded to the external system or the extension through the relay, the external system or extension to which the call message is forwarded triggers a ring. The triggering of the ring includes: The external system or extension to which the call message is forwarded sends a signal instruction indicating call success to the target relay.
4. The method according to claim 3, characterized in that, The method further includes: When the external system calls the extension, determine the target relay corresponding to the external system, and query the call permission of the target relay and determine the call rules for this call. When the call permission allows the external system to call the extension, dynamically select a corresponding target relay based on the call rules. Route the call message to the target relay to forward the call message to the extension through the target relay.
5. The method according to claim 4, characterized in that, The method further includes: When a first external system calls a second external system through the relay of the converged communication platform, determine the first relay matched by the first external system and query the outgoing permission of the first relay. In response to the outgoing permission of the first relay allowing the first external system to call the second external system, determine the second relay of the second external system based on the call rules of this call, and forward the call message to the second external system.
6. The method according to claim 5, wherein The determining the second relay of the second external system based on the call rules of this call includes: Matching the called number rules of this call based on the call rules of this call to determine the outgoing rules of the first relay. Sequentially match the called number rules of the second external system as the target outgoing rules based on the outgoing rules of the first relay, and determine the second relay matching the second external system based on the target outgoing rules.
7. The method according to claim 6, characterized in that, Forwarding the call message to the second external system includes: Routing the call message through the first relay to the second relay to forward the call message to the external system through the second relay.
8. A converged communication device based on multi-relay dynamic routing, which is applied to a converged communication platform; The converged communication platform includes multiple relays; characterized in that The device includes: A configuration module, configured to perform relay configuration for each relay in the converged communication platform based on multi-dimensional relay configuration types, set corresponding call permissions for each extension, external system, and relay, and set corresponding call rules for each call; wherein, the call rules characterize the number rules of each call and the relays allowed for routing; each call corresponds to a called number rule; A first call module, configured to query the call permission of the extension and determine the call rules for this call when the extension calls an external system, and perform permission verification based on the call permission; A first selection module, configured to dynamically select a corresponding target relay based on the call rules when the call permission allows the extension to call the external system; A first routing module, configured to route the call message to the target relay and forward the call message to the external system through the target relay.
9. An electronic device, characterized in that, It includes: A processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device runs, the processor communicates with the memory through the bus. When the machine-readable instructions are executed by the processor, the steps of the converged communication method based on multi-relay dynamic routing according to any one of claims 1 to 7 are executed.
10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium. When the computer program is run by a processor, the steps of the converged communication method based on multi-relay dynamic routing according to any one of claims 1 to 7 are executed.