Cross-network communication method, apparatus, device, medium, and program product
By completing number mapping for cross-network calls within the terminal device, the problem of high construction costs in the interoperability of 5G private networks and public networks in mines has been solved, and low-cost cross-network communication has been achieved.
Patent Information
- Application Number
- CN202611199917.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-07
- Publication Date
- 2026-11-10
AI Technical Summary
Existing technologies require bidirectional configuration of routing, relay rules, and number mapping for both core networks when enabling voice communication between 5G private networks and public networks in mines, resulting in high construction costs.
By registering to different communication networks within the terminal device and completing number mapping for cross-network calls within the terminal device, automatic proxy connection and end-to-end transparent communication for cross-network calls are achieved, avoiding configuration modifications to the core network.
It enables automatic proxy connection and end-to-end bidirectional transparent communication for cross-network calls on the terminal side, reducing the cost of network architecture transformation.
Smart Images

Figure CN123075016A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a cross-network communication method, apparatus, device, medium, and program product. Background Technology
[0002] With the advancement of intelligent mining construction, 5G private networks in mines have become the core communication infrastructure for underground safe production and dispatch. Their independent deployment model, physically isolated from the public network of operators, ensures the stability and security of underground communication. However, in practical scenarios such as production collaboration and emergency command, there is a significant demand for voice communication between underground personnel and public network users on the ground, necessitating the realization of voice interoperability between the mine's 5G private network and the public network.
[0003] Currently, the industry mainly adopts the method of directly connecting the core network of the IP Multimedia Subsystem of the private network and the public network through Session Initiation Protocol (SIP) relay to achieve the above-mentioned interconnection. However, since this method requires both core networks to configure routing, relay rules and number mapping in both directions, the solution requires modification of the existing network architecture, resulting in high construction costs. Summary of the Invention
[0004] This application provides a cross-network communication method, apparatus, device, medium, and program product for achieving low-cost cross-network communication.
[0005] In a first aspect, embodiments of this application provide a cross-network communication method, applied to a terminal device having a first communication module and a second communication module, wherein the first communication module is registered to a first communication network and the second communication module is registered to a second communication network, the method comprising:
[0006] The first communication module receives a first call request from the first communication network. The first call request carries a first calling number and a first called number. The first called number is a registered number in the second communication network.
[0007] Obtain a second called number that matches the first called number, and map the first calling number to the registration number of the second communication module in the second communication network to obtain the second calling number;
[0008] Based on the second called number and the second calling number, a second call request carrying the second calling number and the second called number is sent to the second communication network through the second communication module.
[0009] The system receives a call response from the second communication network in response to the second call request, and forwards the call response to the first communication network through the first communication module to perform cross-network communication.
[0010] The technical solution provided in this application brings at least the following beneficial effects: By registering terminal devices to the first communication network and the second communication network respectively, and completing the number mapping for cross-network calls within the terminal devices, no configuration, routing, or protocol modifications are required for the core networks at both ends. This fully reuses the existing network architecture, breaking the limitation that traditional cross-network interconnection requires direct connection between the private network and the public IP multimedia subsystem core network, thus achieving converged relay between heterogeneous networks at the terminal side. Furthermore, when the terminal device receives a first call request from the first communication network through the first communication module, it can accurately extract the number of the first caller. The system automatically connects the first calling number to the second called number, maps the first calling number to the second communication module's registered number in the second communication network to obtain the second calling number, and then sends a second call request carrying the second calling number and the second called number to the second communication network. It also receives the call response and forwards it to the first communication network. This achieves automatic proxy connection and end-to-end bidirectional transparent communication for cross-network calls on the terminal side. This solves the problem that the current industry's core network interconnection method requires bidirectional configuration of routing, trunk rules and number mapping between the two core networks, which leads to the need to modify the existing network architecture and high construction costs.
[0011] One possible implementation, wherein mapping the first calling number to the registration number of the second communication module in the second communication network to obtain the second calling number, includes:
[0012] Read the registration number pre-stored in the second communication network by the second communication module;
[0013] Based on preset trunking rules, the first calling number is mapped to the registered number, and the registered number is used as the second calling number.
[0014] Another possible implementation, before obtaining the second called number that matches the first called number, further includes the following:
[0015] Extract the first character of the first called number as a prefix character, and compare the prefix character with all characters in the preset cross-network call prefix set one by one;
[0016] When the above prefix character completely matches any character in the above cross-network call prefix set, the above first call request is determined to be a cross-network call;
[0017] When the aforementioned prefix character does not match any of the characters in the aforementioned cross-network call prefix set, the aforementioned first call request is determined to be an intra-network call, and the current cross-network processing flow is terminated.
[0018] Another possible implementation is that obtaining the second called number that matches the first called number includes:
[0019] If it is determined that the first call request is a cross-network call, a second called number that matches the first called number is obtained.
[0020] Another possible implementation, the above-mentioned acquisition of a second called number matching the first called number, includes:
[0021] Identify the length of the prefix character in the first called number that matches the aforementioned cross-network call rule;
[0022] Starting from the beginning of the first called number, remove the character sequence with the same length as the prefix character to obtain the remaining number string;
[0023] The remaining number string is identified as the second called number.
[0024] Another possible implementation, after forwarding the call response to the first communication network via the first communication module, further includes:
[0025] The first voice stream is received from the first communication network through the first communication module, and the first voice stream is encoded using a first encoding format supported by the first communication network.
[0026] The first speech stream is decoded using the first encoding format to obtain the original pulse code modulation speech data;
[0027] The original pulse code modulation speech data is encoded using the second encoding format supported by the second communication network to obtain the second speech stream.
[0028] The second voice stream is sent to the second communication network in real time via the second communication module.
[0029] Another possible implementation method, the above method also includes:
[0030] The second communication module receives a third call request from the second communication network. The third call request carries a third calling number and a third called number. The third called number is the registration number of the second communication module in the second communication network.
[0031] Send an interactive voice response signal to the second communication network to prompt the calling user to enter the target number;
[0032] Receive dual-tone multi-frequency (DTMF) signals from the second communication network, analyze the DTMF signals to obtain the fourth called number, and the fourth called number is the target number entered by the calling user.
[0033] The third calling number is mapped to the registration number of the first communication module in the first communication network to obtain the fourth calling number;
[0034] A fourth call request carrying the aforementioned fourth calling number and the aforementioned fourth called number is generated and sent to the aforementioned first communication network through the aforementioned first communication module;
[0035] The system receives the call response signaling sent by the first communication network in response to the fourth call request, and forwards the call response signaling to the second communication network through the second communication module to conduct cross-network communication.
[0036] Secondly, embodiments of this application provide a cross-network communication device, including:
[0037] The first receiving module is configured to receive a first call request from the first communication network through the first communication module. The first call request carries a first calling number and a first called number. The first called number is a registered number in the second communication network.
[0038] The acquisition module is used to acquire a second called number that matches the first called number, and to map the first calling number to the registration number of the second communication module in the second communication network to obtain the second calling number.
[0039] The first sending module is used to send a second call request carrying the second calling number and the second called number to the second communication network through the second communication module based on the second called number and the second calling number.
[0040] The forwarding module is used to receive the call response sent by the second communication network in response to the second call request, and forward the call response to the first communication network through the first communication module to perform cross-network communication.
[0041] Another possible implementation, the aforementioned acquisition module, is specifically used for:
[0042] Read the registration number pre-stored in the second communication network by the second communication module;
[0043] Based on preset trunking rules, the first calling number is mapped to the registered number, and the registered number is used as the second calling number.
[0044] Another possible implementation, the aforementioned cross-network communication device also includes:
[0045] The extraction module is used to extract the first character of the first called number as a prefix character, and compare the prefix character with all characters in the preset cross-network call prefix set one by one;
[0046] The first determining module is used to determine that the first call request is a cross-network call when the above prefix character completely matches any character in the above cross-network call prefix set;
[0047] The second determining module is used to determine that the first call request is an intra-network call and terminate the current cross-network processing flow when the aforementioned prefix character does not match any of the characters in the aforementioned cross-network call prefix set.
[0048] One possible implementation is that the above-mentioned acquisition module is specifically used for:
[0049] If it is determined that the first call request is a cross-network call, a second called number that matches the first called number is obtained.
[0050] Another possible implementation, where the above-mentioned acquisition module is specifically used for:
[0051] Identify the length of the prefix character in the first called number that matches the aforementioned cross-network call rule;
[0052] Starting from the beginning of the first called number, remove the character sequence with the same length as the prefix character to obtain the remaining number string;
[0053] The remaining number string is identified as the second called number.
[0054] Another possible implementation, the cross-network communication device provided in this application embodiment further includes:
[0055] The second receiving module is used to receive a first voice stream from the first communication network through the first communication module, wherein the first voice stream is encoded using a first encoding format supported by the first communication network.
[0056] The decoding module is used to perform decoding processing on the first speech stream in the first encoding format to obtain the original pulse code modulation speech data;
[0057] The encoding module is used to perform encoding processing on the above-mentioned original pulse code modulation speech data in the second encoding format supported by the second communication network to obtain the second speech stream;
[0058] The second sending module is used to send the second voice stream to the second communication network in real time through the second communication module.
[0059] Another possible implementation, the cross-network communication device provided in this application embodiment further includes:
[0060] The third receiving module is used to receive a third call request from the second communication network through the second communication module. The third call request carries a third calling number and a third called number. The third called number is the registration number of the second communication module in the second communication network.
[0061] The third sending module is used to send an interactive voice response signal to the second communication network to prompt the calling user to enter the target number;
[0062] The fourth receiving module is used to receive dual-tone multi-frequency signals from the second communication network, and to parse the dual-tone multi-frequency signals to obtain the fourth called number, which is the target number input by the calling user.
[0063] The mapping module is used to map the third calling number to the registration number of the first communication module in the first communication network to obtain the fourth calling number.
[0064] The generation module is used to generate a fourth call request carrying the fourth calling number and the fourth called number, and send it to the first communication network through the first communication module.
[0065] The fourth receiving module is used to receive the call response signaling sent by the first communication network in response to the fourth call request, and forward the call response signaling to the second communication network through the second communication module to perform cross-network communication.
[0066] Thirdly, this application provides an electronic device comprising: a processor and a memory; the memory stores a program or instructions executable on the processor, wherein the program or instructions, when executed by the processor, implement the method of the first aspect described above.
[0067] Fourthly, this application provides a readable storage medium on which a program or instructions are stored, which, when executed by a computer, implement the method of the first aspect described above.
[0068] Fifthly, this application provides a computer program product stored in a storage medium, which, when executed by a computer, implements the method described in the first aspect.
[0069] In a sixth aspect, embodiments of this application provide a chip including a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the method described in the first aspect.
[0070] The beneficial effects of the second to sixth aspects mentioned above are described in the corresponding description of the first aspect and will not be repeated here. Attached Figure Description
[0071] Figure 1 A schematic diagram of a network architecture for an application of a cross-network communication method provided in this application embodiment;
[0072] Figure 2 A flowchart illustrating a cross-network communication method provided in an embodiment of this application;
[0073] Figure 3 A flowchart illustrating another cross-network communication method provided in an embodiment of this application;
[0074] Figure 4 A flowchart illustrating yet another cross-network communication method provided in an embodiment of this application;
[0075] Figure 5 A flowchart illustrating yet another cross-network communication method provided in an embodiment of this application;
[0076] Figure 6 A flowchart illustrating yet another cross-network communication method provided in an embodiment of this application;
[0077] Figure 7 A flowchart illustrating yet another cross-network communication method provided in an embodiment of this application;
[0078] Figure 8 A flowchart illustrating yet another cross-network communication method provided in an embodiment of this application;
[0079] Figure 9 This application provides a schematic diagram of the overall architecture of a cross-network communication method according to an embodiment of the present application.
[0080] Figure 10 A schematic diagram of the overall architecture of a 5G public / private voice interoperability CPE terminal provided in this application embodiment;
[0081] Figure 11 This application provides a schematic diagram of a private network calling an external network process in its embodiments.
[0082] Figure 12 This application provides a schematic diagram of an external network calling a private network process in its embodiments;
[0083] Figure 13 This is a schematic diagram of the structure of a cross-network communication device provided in an embodiment of this application;
[0084] Figure 14 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0085] The cross-network communication method, apparatus, equipment, medium, and program products provided in this application will now be described in detail with reference to the accompanying drawings.
[0086] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0087] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0088] The terms "at least one," "at least one of," etc., used in the specification and claims of this application refer to any one, any two, or a combination of two or more of the included items. For example, at least one of a, b, and c can mean: "a," "b," "c," "a and b," "a and c," "b and c," and "a, b, and c," where a, b, and c can be single or multiple. Similarly, "at least two" refers to two or more items, and its meaning is similar to that of "at least one."
[0089] In the description of this application, unless otherwise stated, "a plurality of" means two or more.
[0090] The embodiments of this application provide a cross-network communication method, apparatus, device, medium, and program product that can be applied in cross-network communication scenarios.
[0091] With the advancement of intelligent mining construction, 5G private networks in mines have become the core communication infrastructure for underground safe production and dispatch. Their independent deployment model, physically isolated from the public network of operators, ensures the stability and security of underground communication. However, in practical scenarios such as production collaboration and emergency command, there is a significant demand for voice communication between underground personnel and public network users on the ground, necessitating the realization of voice interoperability between the mine's 5G private network and the public network.
[0092] Currently, the industry mainly adopts the method of directly connecting the core network of the IP Multimedia Subsystem of the private network and the public network through Session Initiation Protocol (SIP) relay to achieve the above-mentioned interconnection. However, since this method requires both core networks to configure routing, relay rules and number mapping in both directions, the solution requires modification of the existing network architecture, resulting in high construction costs.
[0093] To address the aforementioned technical problems, this application provides a cross-network communication method, apparatus, device, medium, and program product. By registering terminal devices to a first communication network and a second communication network respectively, and completing number mapping for cross-network calls within the terminal device, no configuration, routing, or protocol modifications are required on either end's core network. This fully reuses the existing network architecture, breaking the limitation of traditional cross-network interconnection requiring direct connection between the private network and the public IP multimedia subsystem core network, thus achieving converged relay between heterogeneous networks at the terminal side. Furthermore, when the terminal device receives a first call request from the first communication network through the first communication module, It can accurately extract the second called number that matches the first called number, and map the first calling number to the registration number of the second communication module in the second communication network to obtain the second calling number. The second communication module sends a second call request carrying the second calling number and the second called number to the second communication network, and receives the call response and forwards it to the first communication network. This realizes automatic proxy connection and end-to-end bidirectional transparent communication of cross-network calls on the terminal side. This solves the problem that the current industry's core network docking method requires bidirectional configuration of routing, trunk rules and number mapping between the two core networks, which leads to the need to modify the existing network architecture and high construction costs.
[0094] The cross-network communication methods, apparatus, devices, media, and program products provided in this application will be described in detail below with reference to the accompanying drawings.
[0095] Figure 1 This illustration shows a network architecture for a cross-network communication method application provided in an embodiment of this application. For example... Figure 1 As shown, the network architecture includes terminal device 101 and terminal device 102, each equipped with a first communication module and a second communication module. The cross-network communication device 101 and terminal device 102 are interconnected.
[0096] In some embodiments, the terminal device 101 equipped with the first communication module and the second communication module can be a server, a computer, or a processor or processing unit within a server or computer. The server can be a single server or a server cluster consisting of multiple servers. It should be noted that the embodiments of this application do not limit the specific device form of the terminal device 101 equipped with the first communication module and the second communication module. Figure 1The example shown is a terminal device 101 equipped with a first communication module and a second communication module, which is a single server.
[0097] In some embodiments, the terminal device may be a mobile phone, tablet computer, laptop computer, handheld computer, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, personal computer (PC), ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc., and the embodiments of this application do not specifically limit it. Figure 1 The example shown is a mobile phone, with terminal device 102 as an example.
[0098] In some embodiments, a terminal device 101 equipped with a first communication module and a second communication module receives a first call request sent by a terminal device 102 to call another terminal device 102, and performs the following actions: obtaining a second called number matching the first called number, mapping the first calling number to the registration number of the second communication module in the second communication network, and obtaining a second calling number; based on the second called number and the second calling number, sending a second call request carrying the second calling number and the second called number to the second communication network through the second communication module; receiving a call response sent by the second communication network in response to the second call request, and forwarding the call response to the first communication network through the first communication module, thereby realizing cross-network communication between the two terminal devices 102; the terminal device 102 is used to send a first call request to the terminal device 101 with the first communication module and the second communication module, and establish a cross-network communication connection between the terminal device 101 with the other terminal device 102 based on the first communication module and the second communication module.
[0099] It should be noted that the network architecture described in the embodiments of this application is for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and does not constitute a limitation on the technical solutions provided in the embodiments of this application. As network architectures evolve, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.
[0100] See Figure 2 This is a flowchart illustrating a cross-network communication method provided in an embodiment of this application. Figure 2As shown, the cross-network communication method provided in this application embodiment is applied to a terminal device having a first communication module and a second communication module. The first communication module is registered to a first communication network, and the second communication module is registered to a second communication network. This can be achieved through the cross-network communication device, specifically including the following steps 201 to 204.
[0101] Step 201: The cross-network communication device receives a first call request from the first communication network through the first communication module. The first call request carries a first calling number and a first called number. The first called number is a registration number in the second communication network.
[0102] In some embodiments, the cross-network communication device represents a terminal device having a first communication module and a second communication module, specifically, but not limited to, a 5G public / private voice interoperability CPE terminal.
[0103] In some embodiments, the first communication module represents a private network 5G module.
[0104] In some embodiments, the first communication network represents a mine 5G private network.
[0105] In some embodiments, the first call request represents a SIP INVITE call request from the core network of the mine private network.
[0106] In some embodiments, the first calling number represents the short number of the UE terminal in the underground private network (e.g., 60012).
[0107] In some embodiments, the first called number represents a dialed number containing the prefix "9" (e.g., 913900139000).
[0108] In some embodiments, the cross-network communication device receives a SIPINVITE call request from the mine 5G private network through the private network 5G module. The request is triggered by the underground private network UE terminal (such as 60012) dialing a number containing the prefix "9". After the mine private network core network recognizes the prefix "9", it routes the signaling standard to the CPE private network side interface (short number 80000). After receiving the signal, the private network 5G module reports it to the main control processing unit.
[0109] Step 202: The cross-network communication device obtains a second called number that matches the first called number, and maps the first calling number to the registration number of the second communication module in the second communication network to obtain the second calling number.
[0110] In some embodiments, the second called number represents the actual target public network number extracted after removing the prefix "9" (e.g., 13900139000).
[0111] In some embodiments, the second communication module represents a public network 5G module.
[0112] In some embodiments, the second communication network represents the operator's public network.
[0113] In some embodiments, the second calling number represents the public network number of the CPE (e.g., 13800138000).
[0114] In some embodiments, the main control processing unit of the cross-network communication device calls the dialing rule parsing module to parse the called number 913900139000 to match the cross-network call rules, and removes the prefix "9" to extract the target public network number 13900139000; the number mapping management unit maps the calling private network short number 60012 to the CPE's public network number 13800138000, and records the correspondence between this call session and the number.
[0115] Step 203: Based on the second called number and the second calling number, the cross-network communication device sends a second call request carrying the second calling number and the second called number to the second communication network through the second communication module.
[0116] In some embodiments, the second call request represents a standard SIP INVITE request where the calling number is the public network number of the CPE and the called number is the target public network UE terminal number.
[0117] In some embodiments, the SIP relay proxy unit of the cross-network communication device generates a standard SIP INVITE request and sends it to the operator's public network core network through the public network 5G module. The operator's public network core network routes the call to the target public network UE terminal (such as 13900139000) according to the standard call procedure of ordinary mobile phone users.
[0118] Step 204: The cross-network communication device receives the call response sent by the second communication network in response to the second call request, and forwards the call response to the first communication network through the first communication module to perform cross-network communication.
[0119] In some embodiments, the call response represents a 200 OK response signaling returned by the target public network UE terminal when it goes off-hook.
[0120] In some embodiments, the public network 5G module of the cross-network communication device receives the 200 OK response signaling returned by the target public network UE terminal. The SIP relay agent unit converts and adapts it and sends it to the core network of the mine private network through the private network 5G module, and routes it to the private network UE terminal that initiated the call. The call is connected in both directions, and the voice codec unit completes the bidirectional conversion of voice codec between the private network side VoNR and the public network side VoLTE. The voice stream is bidirectionally transparently transmitted through the CPE.
[0121] In this way, by registering as a regular terminal within the CPE terminal to both the mine's 5G private network and the operator's public network and completing the signaling proxy and number mapping for cross-network calls, cross-network communication can be achieved without any configuration or protocol modification to the core networks at both ends, thus solving the problem of high construction costs caused by the need to modify the existing network architecture.
[0122] In some embodiments, combined with Figure 2 ,like Figure 3 As shown, step 202 above can be implemented through steps 202a to 202b.
[0123] Step 202a: The cross-network communication device reads the registration number in the second communication network that was pre-stored in the second communication module.
[0124] In some embodiments, the second communication module represents a public network 5G module.
[0125] In some embodiments, the second communication network represents the operator's public network.
[0126] In some embodiments, the registration number represents the public IP address of the CPE (e.g., 13800138000).
[0127] In some embodiments, the main control processing unit of the cross-network communication device reads the public network number (e.g., 13800138000) of the CPE registered to the operator's public network, which is pre-stored in the public network 5G module.
[0128] Step 202b: The cross-network communication device maps the first calling number to the registered number based on a preset relay rule, and uses the registered number as the second calling number.
[0129] In some embodiments, the preset trunk rule represents the rule by which the number mapping management unit maps private network short numbers to CPE public network numbers.
[0130] In some embodiments, the first calling number represents the short number of the UE terminal in the underground private network (e.g., 60012).
[0131] In some embodiments, the second calling number represents the public network number of the CPE (e.g., 13800138000).
[0132] In some embodiments, the cross-network communication device maps the first calling number (the short number of the underground private network UE terminal, such as 60012) to the read registration number (the public network number of the CPE, such as 13800138000) based on the preset relay rules of the number mapping management unit, uses the registration number as the second calling number, and records the correspondence between the current call session and the number.
[0133] In this way, by reading the registration number of the second communication module and completing the mapping from the first calling number to the second calling number based on the preset trunk rules, the calling identity conversion during cross-network calls is realized, enabling the terminal device to initiate cross-network calls as an ordinary terminal, laying the foundation for cross-network interoperability without modifying the core network.
[0134] It should be noted that the above embodiments use cross-network voice communication as an example to illustrate the implementation of this application, and this application is not limited to cross-network voice communication scenarios. In practical applications, this solution can also be applied to other cross-network media communication methods such as cross-network video communication.
[0135] For example, when the underground private network UE terminal initiates a cross-network video call using its private network short number "60012", the cross-network communication device also executes the above steps 202a and 202b: First, the main control processing unit reads the public network number "13800138000" pre-stored by the public network 5G module. Then, based on the preset trunk rules of the number mapping management unit, the private network short number "60012" is mapped to the CPE's public network number "13800138000" as the second calling number, and the correspondence between this video call session and the number is recorded. Thus, the video call of the underground private network UE terminal can penetrate to the operator's public network with the CPE's public network number "13800138000" as the source address, and establish a cross-network video session with the video communication counterpart on the public network side.
[0136] The cross-network communication method provided in this application registers terminal devices to a first communication network and a second communication network respectively, and completes number mapping for cross-network calls within the terminal devices. The entire process requires no configuration, routing, or protocol modifications to the core networks at either end, fully reusing the existing network architecture. This breaks the limitation of traditional cross-network interconnection, which requires direct connection between the core networks of the private network and the public IP multimedia subsystem, achieving converged relay between heterogeneous networks at the terminal side. Furthermore, when the terminal device receives a first call request from the first communication network through the first communication module, it can accurately extract the first called number. The system matches the second called number and maps the first calling number to the registration number of the second communication module in the second communication network to obtain the second calling number. The second communication module then sends a second call request carrying the second calling number and the second called number to the second communication network and receives the call response and forwards it to the first communication network. This achieves automatic proxy connection and end-to-end bidirectional transparent communication for cross-network calls on the terminal side. This solves the problem that the current industry's core network interconnection method requires bidirectional configuration of routing, trunk rules and number mapping between the two core networks, which leads to the need to modify the existing network architecture and high construction costs.
[0137] In some embodiments, combined with Figure 2 ,like Figure 4 As shown, before performing step 202 above, the cross-network communication method provided in this application further includes steps 301 to 303.
[0138] Step 301: The cross-network communication device extracts the first character of the first called number as a prefix character, and compares the prefix character with all characters in the preset cross-network call prefix set one by one.
[0139] In some embodiments, the first called number represents a dialed number containing the prefix "9" (e.g., 913900139000).
[0140] In some embodiments, the prefix character represents the first character of the dialing number (such as "9").
[0141] In some embodiments, the cross-network call prefix set represents a preset set of prefix characters (such as containing "9") used to identify cross-network calls.
[0142] In some embodiments, the main control processing unit of the cross-network communication device calls the dialing rule parsing module to extract the first character (e.g., "9") of the first called number (e.g., 913900139000) as a prefix character, and compares the prefix character with all characters in a preset cross-network call prefix set (e.g., containing "9").
[0143] Step 302: When the above prefix character completely matches any character in the above cross-network call prefix set, the cross-network communication device determines that the above first call request is a cross-network call.
[0144] In some embodiments, a cross-network call represents a voice communication initiated from a mine 5G private network to an operator's public network.
[0145] In some embodiments, when the extracted prefix character (such as "9") completely matches any character in the cross-network call prefix set, the main control processing unit of the cross-network communication device determines that the first call request is a cross-network call and continues to execute the subsequent number stripping and mapping process.
[0146] Step 303: When the above prefix character does not match any of the characters in the above cross-network call prefix set, the cross-network communication device determines that the above first call request is an intra-network call and terminates the current cross-network processing flow.
[0147] In some embodiments, intranet calls represent voice communications where the call target is located within the mine's 5G private network.
[0148] In some embodiments, when the extracted prefix character does not match any of the characters in the cross-network call prefix set, the main control processing unit of the cross-network communication device determines that the first call request is an intra-network call and terminates the current cross-network processing flow.
[0149] In this way, by extracting and comparing the prefix characters of the first called number with the preset cross-network call prefix set, the accurate identification of cross-network calls and intra-network calls is achieved, ensuring that the subsequent trunk agent process is triggered only for cross-network calls, thus avoiding misprocessing of intra-network calls.
[0150] In some embodiments, combined with Figure 4 ,like Figure 5 As shown, step 202 above can be implemented through step 202c.
[0151] Step 202c: When the cross-network communication device determines that the first call request is a cross-network call, it obtains a second called number that matches the first called number.
[0152] In some embodiments, combined with Figure 2 ,like Figure 6 As shown, step 202 above is further implemented through steps 202d to 202f.
[0153] Step 202d: The cross-network communication device identifies the length of the prefix character in the first called number that matches the cross-network call rule.
[0154] In some embodiments, cross-network call rules characterize preset dialing rules used to identify cross-network calls.
[0155] In some embodiments, the main control processing unit of the cross-network communication device identifies the length of the prefix character in the first called number that matches the cross-network calling rule (e.g., the prefix "9" has a length of 1 bit).
[0156] Step 202e: Starting from the beginning position of the first called number, the cross-network communication device removes a character sequence with the same length as the prefix character to obtain the remaining number string.
[0157] In some embodiments, the remaining number string represents the portion of the number retained after removing the prefix characters.
[0158] In some embodiments, the main control processing unit of the cross-network communication device starts from the beginning position of the first called number, removes a character sequence with the same length as the prefix character, and obtains the remaining number string (such as 13900139000).
[0159] Step 202f: The cross-network communication device determines the remaining number string as the second called number.
[0160] In some embodiments, the main control processing unit of the cross-network communication device determines the remaining number string as the second called number.
[0161] In this way, by identifying and removing the prefix characters in the first called number, the real public network target number can be accurately extracted as the second called number, ensuring that cross-network calls can be correctly routed to the target network terminal.
[0162] In some embodiments, combined with Figure 2 ,like Figure 7 As shown, after step 204 above, the cross-network communication method provided in this application embodiment may further include steps 401 to 404.
[0163] Step 401: The cross-network communication device receives a first voice stream from the first communication network through the first communication module. The first voice stream is encoded using a first encoding format supported by the first communication network.
[0164] In some embodiments, the first voice stream represents the VoNR voice stream on the 5G private network side of the mine.
[0165] In some embodiments, the first encoding format represents the VoNR voice encoding format on the private network side.
[0166] In some embodiments, the cross-network communication device receives a first voice stream from the mine's 5G private network via a private network 5G module. The first voice stream is encoded using the private network-side VoNR voice coding format.
[0167] Step 402: The cross-network communication device performs decoding processing of the first voice stream in the first encoding format to obtain the original pulse code modulation voice data.
[0168] In some embodiments, raw pulse code modulation speech data represents uncompressed PCM speech data.
[0169] In some embodiments, the voice codec unit of the cross-network communication device performs decoding processing on the first voice stream in a first encoding format to obtain uncompressed raw pulse code modulation voice data.
[0170] Step 403: The cross-network communication device performs encoding processing on the original pulse code modulation speech data according to the second encoding format supported by the second communication network to obtain the second speech stream.
[0171] In some embodiments, the second encoding format represents the public network-side VoLTE voice encoding format.
[0172] In some embodiments, the second voice stream represents the VoLTE voice stream on the operator's public network side.
[0173] In some embodiments, the voice codec unit of the cross-network communication device performs encoding processing on the original pulse code modulation voice data using the public network-side VoLTE voice encoding format to obtain the VoLTE voice stream on the operator's public network side.
[0174] Step 404: The cross-network communication device sends the second voice stream to the second communication network in real time through the second communication module.
[0175] In some embodiments, the cross-network communication device transmits a second voice stream to the operator's public network in real time via a public network 5G module.
[0176] In this way, by completing the decoding and re-encoding of cross-network voice streams locally on the terminal, the problem of incompatibility of voice encoding formats between heterogeneous networks is solved, ensuring real-time bidirectional connectivity and sound quality of cross-network voice communication.
[0177] In some embodiments, combined with Figure 2 ,like Figure 8 As shown, the cross-network communication method provided in this application embodiment may further include the following steps 501 to 506.
[0178] Step 501: The cross-network communication device receives a third call request from the second communication network through the second communication module. The third call request carries a third calling number and a third called number. The third called number is the registration number of the second communication module in the second communication network.
[0179] In some embodiments, a third call request represents a SIP INVITE call request from the operator's public network.
[0180] In some embodiments, the third calling number represents the public network UE terminal number (e.g., 13900139000).
[0181] In some embodiments, the third called number represents the public network number of the CPE (e.g., 13800138000).
[0182] In some embodiments, the cross-network communication device receives a SIPINVITE call request from the operator's public network via a public network 5G module. This request is triggered by a public network UE terminal (e.g., 13900139000) dialing the public network number of the CPE (e.g., 13800138000).
[0183] Step 502: The cross-network communication device sends an interactive voice response signal to the second communication network to prompt the calling user to enter the target number.
[0184] In some embodiments, the interactive voice response signal represents the IVR voice prompt signal.
[0185] In some embodiments, the cross-network communication device sends an IVR voice prompt signal to the operator's public network to prompt the public network caller to enter the target number of the underground private network to be called.
[0186] Step 503: The cross-network communication device receives the dual-tone multi-frequency signal from the second communication network and analyzes the dual-tone multi-frequency signal to obtain the fourth called number, which is the target number entered by the calling user.
[0187] In some embodiments, the dual-tone multi-frequency signal represents the DTMF signal.
[0188] In some embodiments, the fourth called number represents the short number of the underground private network UE terminal entered by the calling user (such as 60012).
[0189] In some embodiments, the cross-network communication device receives a DTMF signal from the operator's public network and parses the dual-tone multi-frequency signal to obtain the target number (such as 60012) input by the calling user as the fourth called number.
[0190] Step 504: The cross-network communication device maps the third calling number to the registration number of the first communication module in the first communication network to obtain the fourth calling number.
[0191] In some embodiments, the fourth calling number represents the private network short number of the CPE (such as 80000).
[0192] In some embodiments, the cross-network communication device maps the third calling number (public network UE terminal number such as 13900139000) to the registration number of the first communication module in the mine 5G private network (i.e., the private network short number of the CPE such as 80000), thus obtaining the fourth calling number.
[0193] Step 505: The cross-network communication device generates a fourth call request carrying the fourth calling number and the fourth called number, and sends it to the first communication network through the first communication module.
[0194] In some embodiments, the fourth call request represents a SIP INVITE request where the calling number is the private network short number of the CPE and the called number is the short number of the underground private network UE terminal.
[0195] In some embodiments, the cross-network communication device generates a SIP INVITE request carrying a fourth calling number (e.g., 80000) and a fourth called number (e.g., 60012), and sends it to the core network of the mine 5G private network through the private network 5G module.
[0196] Step 506: The cross-network communication device receives the call response signaling sent by the first communication network in response to the fourth call request, and forwards the call response signaling to the second communication network through the second communication module to perform cross-network communication.
[0197] In some embodiments, the call response signaling characterizes the 200 OK response signaling returned by the UE terminal of the underground private network when it goes off-hook.
[0198] In some embodiments, the cross-network communication device receives a 200OK response signaling sent by the mine's 5G private network in response to the fourth call request, and forwards the call response signaling to the operator's public network through the public network 5G module to conduct cross-network communication.
[0199] In this way, by receiving public network calls and using interactive voice response and dual-tone multi-frequency signals to collect private network target numbers, combined with caller ID mapping, reverse cross-network voice communication can be achieved, enabling secure and flexible calls from the public network to the private network without core network modifications.
[0200] The cross-network communication method of this application will be described below through specific embodiments.
[0201] Figure 9 This is a schematic diagram of the overall architecture of a cross-network communication method provided in an embodiment of this application. Figure 10 This application provides a schematic diagram of the overall architecture of a 5G public / private voice interoperability CPE terminal. Figure 9 The following is illustrated: Existing 5G private network domain in the mine (completely reused, no modifications): This fully reuses the existing independent 5G private network deployed underground, including the underground private network UE terminal, private network 5G base station, independently deployed private network 5G core network, and IMS system. The private network core network only identifies the CPE of this invention as an ordinary private network terminal, assigning it a unique private network short number, with completely consistent permissions and configurations with other terminals underground, without any special settings. 5G public-private voice interoperability CPE terminal (the only newly added device, pure terminal form): Deployed in the mine's surface equipment room, this is the only newly added device, containing no core network elements. It accesses both the private and public networks through dual 5G modules. All cross-network call processing is completed internally, without any network-side dependency. Carrier public network domain (completely reused, no modifications): This fully reuses the existing carrier public network, including the public network 5G base station, carrier 5G core network and IMS system, and public network UE terminal. The public network core network recognizes the CPE of this invention as a regular mobile phone terminal, and only performs ordinary user authentication on the public network SIM card number inserted into the CPE, completely without any awareness or management of all terminals within the private network. This 5G public-private voice interoperability CPE terminal adopts a mining-grade intrinsically safe CPE shell, featuring an intrinsically safe power supply design and overvoltage and overcurrent protection circuits, adapting to the special safety environment of mines. Its internal hardware architecture is as follows... Figure 10As shown, it also includes: A main control processing unit (MCU): serving as the "core coordination and control center" of the equipment, responsible for protocol conversion, signaling interaction, and overall logic control, scheduling the collaborative work of various functional units. A private network 5G module: adopting an industrial-grade 5G communication module, supporting independent non-carrier frequency bands for the mine's private network, with a built-in dedicated SIM card for standard 5G IMS registration on the mine's 5G private network core network. The registered identity is that of a regular private network terminal, assigned a unique private network short number (e.g., 80000), supports the VoNR voice protocol, and has the same registration process and permissions as other private network terminals underground, without any special configuration or permissions. Public 5G Module: Utilizes an industrial-grade 5G communication module, supporting all frequency bands of the three major domestic operators' public networks. It inserts a regular civilian SIM card from the operator to complete standard 5G VoLTE registration on the operator's public network core network. The registered identity is that of a regular public network terminal, assigned a unique public network mobile phone number (e.g., 13800138000). The registration process and permissions are completely consistent with ordinary civilian mobile phones, requiring no special relay service activation from the operator or any special configuration. Voice Codec Unit: Based on a DSP digital signal processing chip, it achieves efficient voice compression and restoration, ensuring high-quality cross-network voice calls. SIP Trunk Proxy Unit: Responsible for heterogeneous network signaling conversion, enabling cross-network call connection and ensuring seamless interoperability of voice signaling between private and public networks. Number Mapping and Storage: Employs high-speed Flash storage media to save terminal configuration parameters and private / public network number mapping tables, supporting dynamic number resolution and fast addressing. Power Supply and Intrinsic Safety Protection: Integrates intrinsically safe power supply design and overvoltage and overcurrent protection circuits to ensure stable and safe operation in the complex power environment of mines.
[0202] In some embodiments, this application registers the CPE device simultaneously as a regular terminal to both the existing mine 5G private network and the operator's public network. No configuration, routing, or protocol modifications are required for either end's core network, fully reusing the existing network architecture. All signaling proxying, number mapping, and voice codec conversion for cross-network calls are completed within the CPE terminal. The device contains no 5G core network elements or IMS core network elements, acting solely as a relay proxy for both networks. This approach eliminates the need for a new core network, fully utilizes the existing private network interconnection scheme, adds only one terminal device, eliminates any core network elements, requires no authentication of internal network users by the operator, and minimizes the impact on the existing network and private network.
[0203] In some embodiments, the software program of the 5G public-private voice interoperability CPE terminal of this application adopts a modular design. All functions run locally on the device, without cloud or network-side dependencies. Specific modules are as follows: Private Network Terminal Registration Module: Implements the standard 5G IMS registration process for private network 5G modules in the private network core network, completely consistent with the registration process of ordinary private network terminals, without any special signaling or configuration. Public Network Terminal Registration Module: Implements the standard 5G VoLTE registration process for public network 5G modules in the operator's public network, completely consistent with the registration process of ordinary public network mobile phones, without any special signaling or configuration. Dialing Rule Parsing Module: Parses the dialing number from the calling side, matches it with preset dialing rules, determines whether it is a cross-network call, and extracts the target calling number. Number Mapping Processing Module: According to preset rules, completes the bidirectional conversion of calling and called numbers, mapping the internal network calling number to the CPE's public network number, and mapping the public network calling number to the CPE's private network number, while recording the correspondence between call sessions and numbers. Signaling Trunk Proxy Module: Performs parsing, proxying, conversion, and transparent transmission of bidirectional SIP / IMS call signaling, ensuring normal signaling interaction throughout the call process. Voice Stream Processing Module: Performs bidirectional voice stream encoding / decoding conversion, jitter buffering, noise reduction, and echo cancellation processing, achieving seamless adaptation of cross-network voice streams. IVR Interaction Module: Used for secondary dialing interaction of public network incoming calls, playing voice prompts to public network callers, parsing DTMF dialing signals, and obtaining the target private network short number. Local Configuration Management Module: Provides a WEB / serial port local configuration interface, supporting the configuration and management of dialing rules, number mapping, voice parameters, and blacklists / whitelists, without requiring network-side configuration.
[0204] In some embodiments, the method of this application applies to the following scenarios: the existing 5G private network in the mine remains unchanged and without any configuration adjustments; the private network core network assigns a common private network short number (80000) to the private network module of the CPE, with permissions completely consistent with other terminals underground; the operator's public network remains unchanged and without any configuration adjustments; a common public network mobile phone number (13800138000) is assigned to the SIM card of the public network module of the CPE, with permissions completely consistent with ordinary civilian mobile phone users; the CPE has completed dual-network standard registration, is online normally, and has a preset dialing rule: the private network terminal dials "9 + target public network number" to make a cross-network call, which is routed to the CPE; the short number of the underground private network UE terminal initiating the call is 60012, and the target public network UE terminal number is 13900139000.
[0205] Based on the aforementioned scenario, Figure 11This application provides a schematic diagram of a private network calling an external network process, including: a UE terminal (60012) initiating a call and dialing the number 913900139000; the mine private network core network routes the call signaling to the CPE's private network short number 80000 according to the standard process of existing calls between ordinary terminals (the first digit 9 matches the terminal-to-terminal call route within the private network, and the private network core network has no special configuration, fully utilizing existing rules); the CPE's private network 5G module receives the SIP INVITE call request from the private network core network and reports it to the main control processing unit; the main control processing unit calls the dialing rule parsing module to parse the called number 913900139000, matches the cross-network call rules, removes the prefix 9, and extracts the target public network number 13900139000; at the same time, the number mapping management unit maps the calling private network short number 60012 to the CPE's public network number 13800138000 and records the correspondence between this call session and the number; The SIP trunking agent unit generates a standard SIPINVITE request with the calling number 13800138000 and the called number 13900139000. This request is sent to the operator's public network core network via the public 5G module. The operator's public network core network routes the call to the target public network UE terminal (13900139000) according to the standard call procedure for ordinary mobile phone users. Throughout the process, the operator only authenticates the CPE's public network number 13800138000 and is completely unaware of the existence of the private network caller ID 60012, requiring no authentication or account opening. The target public network UE terminal rings, answers, and returns a 200 OK response signal to the public network core network, which is then delivered to the CPE via the public 5G module. The CPE's SIP trunking agent unit then forwards the 200 OK response. After OK signaling conversion and adaptation, it is sent to the private network core network through the private network 5G module and routed to the private network UE terminal (60012) that initiated the call; the call is connected in both directions, the voice codec unit completes the bidirectional conversion of voice codec between the private network side VoNR and the public network side VoLTE, and the voice stream is bidirectionally transparently transmitted through the CPE to realize normal communication; after the call ends, if either party hangs up, the CPE completes the proxy forwarding of bidirectional BYE signaling, releases the call session, and clears the number mapping record for this call.
[0206] Based on the aforementioned scenario, Figure 12This application provides a schematic diagram of an external network call to a private network process, including: a public network UE terminal (13900139000) initiates a call by dialing the public network number 13800138000 of the CPE; the operator's public network core network routes the call signaling to the public network 5G module of the CPE according to the standard call process of ordinary mobile phone users. Throughout the process, the operator only authenticates the public network number of the CPE without any special configuration; the public network 5G module of the CPE receives the SIP INVITE call request and reports it to the main control processing unit. The main control unit determines that it is an incoming public network call, calls the IVR interaction module, and plays a preset voice message to the public network caller: "Please enter the short number of the underground private network you want to call, ending with #"; the public network caller enters the target private network short number 60012 and presses # to end. The DTMF signal is sent to the CPE through the public network voice stream; The CPE's DTMF parsing module parses the target private network short number 60012. The number mapping management unit maps the public network calling number 13900139000 to the CPE's private network short number 80000, recording the correspondence between this call session and the number. The SIP trunk proxy unit generates a standard SIP INVITE request, with the calling number being 80000 and the called number being 60012, and sends it to the mine private network core network through the private network 5G module. The private network core network routes the call to the target private network UE terminal (60012) according to the standard procedure for calls between existing ordinary terminals. Throughout the process, the private network core network only considers it as a call initiated by the ordinary terminal 80000, without any special configuration or modification. The target private network UE terminal rings, answers, and returns a 200 OK response signal to the private network core network, which is then delivered to the CPE through the private network 5G module. The CPE's SIP trunk proxy unit then... After OK signaling conversion and adaptation, it is sent to the public network core network through the public network 5G module and routed to the public network UE terminal that initiated the call; the call is connected in both directions, the voice codec unit completes the two-way voice codec conversion, and normal call is realized; after the call ends, either party hangs up, the CPE completes the proxy forwarding of the two-way BYE signaling and releases the call session.
[0207] It should be noted that the above-described method embodiments, or the various possible implementations of the method embodiments, can be executed individually, or, provided there is no conflict, they can be combined with each other. The specific implementation can be determined according to actual usage requirements, and this application embodiment does not impose any restrictions on this.
[0208] As can be seen, the above mainly describes the solutions provided by the embodiments of this application from a methodological perspective. To achieve the above functions, the embodiments of this application provide corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, in conjunction with the modules and algorithm steps of the various examples described in the embodiments disclosed herein, the embodiments of this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0209] This application embodiment can divide the cross-network communication device into functional modules according to the above method example. For example, each function can be divided into a separate functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. Optionally, the module division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.
[0210] In some embodiments, this application also provides a cross-network communication device. The cross-network communication device may include one or more functional modules for implementing the cross-network communication method of the above method embodiments.
[0211] For example, Figure 13 This is a schematic diagram of a cross-network communication device provided in an embodiment of this application. Figure 13 As shown, the cross-network communication device 900 includes:
[0212] The first receiving module 901 is used to receive a first call request from the first communication network through the first communication module. The first call request carries a first calling number and a first called number. The first called number is a registration number in the second communication network.
[0213] The acquisition module 902 is used to acquire a second called number that matches the first called number, and to map the first calling number to the registration number of the second communication module in the second communication network to obtain the second calling number.
[0214] The first sending module 903 is used to send a second call request carrying the second calling number and the second called number to the second communication network through the second communication module based on the second called number and the second calling number.
[0215] The forwarding module 904 is used to receive the call response sent by the second communication network in response to the second call request, and forward the call response to the first communication network through the first communication module to perform cross-network communication.
[0216] The cross-network communication device provided in this application registers terminal devices to a first communication network and a second communication network respectively, and completes number mapping for cross-network calls within the terminal devices. The entire process requires no configuration, routing, or protocol modifications to the core networks at either end, fully reusing the existing network architecture. This breaks the limitation of traditional cross-network interconnection, which requires direct connection between the core networks of the private network and the public IP multimedia subsystem, and achieves converged relay between heterogeneous networks at the terminal side. Furthermore, when the terminal device receives a first call request from the first communication network through the first communication module, it can accurately extract the first called number. The system matches the second called number and maps the first calling number to the registration number of the second communication module in the second communication network to obtain the second calling number. The second communication module then sends a second call request carrying the second calling number and the second called number to the second communication network and receives the call response and forwards it to the first communication network. This achieves automatic proxy connection and end-to-end bidirectional transparent communication for cross-network calls on the terminal side. This solves the problem that the current industry's core network interconnection method requires bidirectional configuration of routing, trunk rules and number mapping between the two core networks, which leads to the need to modify the existing network architecture and high construction costs.
[0217] In some embodiments, the acquisition module 902 is specifically used for:
[0218] Obtain the text content of the first text with a preset character length, calculate the average cross-entropy of the text content to obtain the first perplexity, and determine the perplexity level corresponding to the first perplexity based on the first mapping relationship. The first mapping relationship is a mapping relationship between at least one perplexity level and at least one perplexity value range.
[0219] In other embodiments, the above-described cross-network communication device further includes:
[0220] The extraction module is used to extract the first character of the first called number as a prefix character, and compare the prefix character with all characters in the preset cross-network call prefix set one by one;
[0221] The first determining module is used to determine that the first call request is a cross-network call when the above prefix character completely matches any character in the above cross-network call prefix set;
[0222] The second determining module is used to determine that the first call request is an intra-network call and terminate the current cross-network processing flow when the aforementioned prefix character does not match any of the characters in the aforementioned cross-network call prefix set.
[0223] In some other embodiments, the acquisition module 902 is specifically used for:
[0224] If it is determined that the first call request is a cross-network call, a second called number that matches the first called number is obtained.
[0225] In some other embodiments, the acquisition module 902 is specifically used for:
[0226] Identify the length of the prefix character in the first called number that matches the aforementioned cross-network call rule;
[0227] Starting from the beginning of the first called number, remove the character sequence with the same length as the prefix character to obtain the remaining number string;
[0228] The remaining number string is identified as the second called number.
[0229] In some other embodiments, the cross-network communication device provided in this application further includes:
[0230] The second receiving module is used to receive a first voice stream from the first communication network through the first communication module, wherein the first voice stream is encoded using a first encoding format supported by the first communication network.
[0231] The decoding module is used to perform decoding processing on the first speech stream in the first encoding format to obtain the original pulse code modulation speech data;
[0232] The encoding module is used to perform encoding processing on the above-mentioned original pulse code modulation speech data in the second encoding format supported by the second communication network to obtain the second speech stream;
[0233] The second sending module is used to send the second voice stream to the second communication network in real time through the second communication module.
[0234] In some other embodiments, the cross-network communication device provided in this application further includes:
[0235] The third receiving module is used to receive a third call request from the second communication network through the second communication module. The third call request carries a third calling number and a third called number. The third called number is the registration number of the second communication module in the second communication network.
[0236] The third sending module is used to send an interactive voice response signal to the second communication network to prompt the calling user to enter the target number;
[0237] The fourth receiving module is used to receive dual-tone multi-frequency signals from the second communication network, and to parse the dual-tone multi-frequency signals to obtain the fourth called number, which is the target number input by the calling user.
[0238] The mapping module is used to map the third calling number to the registration number of the first communication module in the first communication network to obtain the fourth calling number.
[0239] The generation module is used to generate a fourth call request carrying the fourth calling number and the fourth called number, and send it to the first communication network through the first communication module.
[0240] The fourth receiving module is used to receive the call response signaling sent by the first communication network in response to the fourth call request, and forward the call response signaling to the second communication network through the second communication module to perform cross-network communication.
[0241] It should be noted that the cross-network communication device can implement all the processes implemented in the above method embodiments and achieve the same beneficial effects. To avoid repetition, it will not be described again here.
[0242] In the case where the functions of the integrated modules described above are implemented in hardware, this application provides a possible structural schematic diagram of the electronic device involved in the above embodiments. For example... Figure 14 As shown, the electronic device 90 includes: a processor 92, a communication interface 93, and a bus 94. Optionally, the electronic device 90 may also include a memory 91.
[0243] Processor 92 may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 92 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 92 may also be a combination that implements computational functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
[0244] Communication interface 93 is used to connect with other devices via a communication network. This communication network can be Ethernet, wireless access network, wireless local area network (WLAN), etc.
[0245] The memory 91 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto.
[0246] As one possible implementation, the memory 91 can exist independently of the processor 92. The memory 91 can be connected to the processor 92 via a bus 94 and is used to store instructions or program code. When the processor 92 calls and executes the instructions or program code stored in the memory 91, it can implement the cross-network communication method provided in the embodiments of this application.
[0247] In another possible implementation, memory 91 can also be integrated with processor 92.
[0248] Bus 94 can be an Extended Industry Standard Architecture (EISA) bus, etc. Bus 94 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 14 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0249] Through the above description of the implementation methods, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the service calling device can be divided into different functional modules to complete all or part of the functions described above.
[0250] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run programs or instructions to implement the various processes of the above cross-network communication method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0251] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0252] This application also provides a readable storage medium storing a program or instructions, which, when executed by a computer, implement the cross-network communication method provided in the above embodiments. It is understood that all or part of the processes in the above method embodiments can be executed by computer instructions instructing related hardware; the readable storage medium can be any of the foregoing embodiments or memory; the readable storage medium can also be an external storage device of the service invocation device, such as a plug-in hard drive, Smart MediaCard (SMC), Secure Digital (SD) card, flash card, etc., equipped on the service invocation device. Further, the readable storage medium can include both internal storage units of the service invocation device and external storage devices. The readable storage medium is used to store the computer program and other programs and data required by the service invocation device. The readable storage medium can also be used to temporarily store data that has been output or will be output.
[0253] This application also provides a computer program product, which is stored in a storage medium and implements the cross-network communication method provided in the above embodiments when the computer program product is executed by a computer.
[0254] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0255] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0256] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A cross-network communication method, characterized in that, Applied to terminal devices having a first communication module and a second communication module, wherein the first communication module is registered to a first communication network and the second communication module is registered to a second communication network, including: The first communication module receives a first call request from the first communication network. The first call request carries a first calling number and a first called number. The first called number is a registered number in the second communication network. Obtain a second called number that matches the first called number, and map the first calling number to the registration number of the second communication module in the second communication network to obtain the second calling number; Based on the second called number and the second calling number, a second call request carrying the second calling number and the second called number is sent to the second communication network through the second communication module; The system receives a call response from the second communication network in response to the second call request, and forwards the call response to the first communication network through the first communication module to perform cross-network communication.
2. The cross-network communication method according to claim 1, characterized in that, The step of mapping the first calling number to the registration number of the second communication module in the second communication network to obtain the second calling number includes: Read the registration number pre-stored in the second communication network by the second communication module; Based on preset trunking rules, the first calling number is mapped to the registered number, and the registered number is used as the second calling number.
3. The cross-network communication method according to claim 1, characterized in that, Before obtaining a second called number that matches the first called number, the method further includes: Extract the first character of the first called number as a prefix character, and compare the prefix character with all characters in a preset cross-network call prefix set one by one; When the prefix character completely matches any character in the cross-network call prefix set, the first call request is determined to be a cross-network call; When the prefix character does not match any of the characters in the cross-network call prefix set, the first call request is determined to be an intra-network call, and the current cross-network processing flow is terminated.
4. The cross-network communication method according to claim 3, characterized in that, The step of obtaining the second called number that matches the first called number includes: If it is determined that the first call request is a cross-network call, a second called number that matches the first called number is obtained.
5. The cross-network communication method according to claim 1, characterized in that, The step of obtaining the second called number that matches the first called number includes: Identify the length of the prefix character in the first called number that matches the cross-network call rule; Starting from the beginning of the first called number, remove the character sequence with the same length as the prefix character to obtain the remaining number string; The remaining number string is identified as the second called number.
6. The cross-network communication method according to claim 1, characterized in that, After forwarding the call response to the first communication network via the first communication module, the method further includes: The first communication module receives a first voice stream from the first communication network, and the first voice stream is encoded using a first encoding format supported by the first communication network. The first speech stream is decoded using the first encoding format to obtain the original pulse code modulation speech data; The original pulse code modulation speech data is encoded using a second encoding format supported by the second communication network to obtain a second speech stream; The second voice stream is sent to the second communication network in real time via the second communication module.
7. The cross-network communication method according to claim 1, characterized in that, The method further includes: The second communication module receives a third call request from the second communication network. The third call request carries a third calling number and a third called number. The third called number is the registration number of the second communication module in the second communication network. Send an interactive voice response signal to the second communication network to prompt the calling user to enter the target number; Receive a dual-tone multi-frequency signal from the second communication network, and parse the dual-tone multi-frequency signal to obtain a fourth called number, wherein the fourth called number is the target number input by the calling user; The third calling number is mapped to the registration number of the first communication module in the first communication network to obtain the fourth calling number; A fourth call request carrying the fourth calling number and the fourth called number is generated and sent to the first communication network through the first communication module; The system receives a call response signaling sent by the first communication network in response to the fourth call request, and forwards the call response signaling to the second communication network through the second communication module to perform cross-network communication.
8. A cross-network communication device, characterized in that, include: The first receiving module is configured to receive a first call request from the first communication network through the first communication module. The first call request carries a first calling number and a first called number, wherein the first called number is a registered number in the second communication network. The acquisition module is used to acquire a second called number that matches the first called number, and to map the first calling number to the registration number of the second communication module in the second communication network to obtain the second calling number; The first sending module is used to send a second call request carrying the second calling number and the second called number to the second communication network through the second communication module based on the second called number and the second calling number; The forwarding module is used to receive the call response sent by the second communication network in response to the second call request, and forward the call response to the first communication network through the first communication module to perform cross-network communication.
9. An electronic device, characterized in that, It includes a processor and a memory, the memory storing programs or instructions that can run on the processor, the programs or instructions being executed by the processor to implement the cross-network communication method as described in any one of claims 1-7.
10. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions, which, when executed by a computer, implement the cross-network communication method as described in any one of claims 1-7.
11. A computer program product, characterized in that, The computer program product is stored in a storage medium, and when executed by a computer, the computer program product implements the cross-network communication method as described in any one of claims 1-7.
