Communication processing method and apparatus, electronic device, and storage medium

CN121125449BActive Publication Date: 2026-10-16NANJING BESTWAY AUTOMATION SYST
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511413498.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-09-29
Publication Date
2026-10-16
Estimated Expiration
2045-09-29

AI Technical Summary

Technical Problem

[0003]然而,在现有的通信处理过程中,当出现通信故障时,往往依赖人工检测来定位问题

Benefits of technology

[0018]The technical solution of this embodiment involves receiving a first request-response message from a first client responding to a media communication request sent by a second client. The first request-response message includes a first port number of the first client. An application server requests a second port number from a media communication proxy, updates the first port number in the first request-response message to the second port number, and sends the updated request-response message to a virtual server of the application server. The second port number is used for information transmission between the media communication proxy and the second client. The virtual server detects the port type of the second port number in the updated request-response message. If the port type is detected to be a first port type, a communication fault self-healing process is triggered. The first port type indicates that the second port number is an invalid port number. In the technical solution of this disclosure embodiment, the virtual server detects the port type of the second port number in the updated information. When it is detected that it is the first port type representing an invalid port number, the communication fault self-healing process is triggered. Without the need for tedious manual troubleshooting, it can quickly and automatically detect the invalid port number, a key factor that may cause communication failure, and promptly initiate the self-healing process, thereby improving the efficiency of communication fault handling, ensuring the timeliness and stability of communication, and effectively meeting the needs of the current rapid development of communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121125449B_ABST
    Figure CN121125449B_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure disclose a communication processing method and device, electronic equipment and storage medium. The method comprises: receiving first request response information of a media communication request feedback sent by a first client to a second client; applying for a second port number to a media communication agent through an application server, updating a first port number in the first request response information to the second port number, and sending the updated request response information to a virtual server of the application server; detecting a port type of the second port number in the updated request response information through the virtual server, and triggering a communication fault self-healing process in the case of detecting that the port type is a first port type representing that the second port number is an invalid port number. The key factor that may cause communication failure, i.e. the invalid port number, can be quickly and automatically detected, and the self-healing process is started in time, so that the efficiency of communication fault processing is improved, and the timeliness and stability of communication are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, and in particular to a communication processing method, apparatus, electronic device, and storage medium. Background Technology

[0002] In today's digital age, communication technology is developing rapidly. Media communication, as an important part of it, is widely used in many fields such as social networking, business, and education. It has become the norm for different clients to exchange and transmit media data through servers, which has greatly promoted the flow and sharing of information.

[0003] However, in existing communication processes, when communication failures occur, manual inspection is often relied upon to locate the problem. Manual inspection requires checking multiple aspects such as the network, devices, and ports one by one, which is not only inefficient but also time-consuming. Especially in large-scale communication scenarios, this inefficient fault detection method seriously affects the timeliness and stability of communication and cannot meet the rapidly evolving communication needs. Summary of the Invention

[0004] This invention provides a communication processing method, apparatus, electronic device, and storage medium to quickly and automatically detect invalid port numbers, a key factor that may cause communication failures, and promptly initiate a self-healing process. This greatly improves the efficiency of communication failure handling, ensures the timeliness and stability of communication, and effectively meets the needs of the current rapid development of communication.

[0005] According to one aspect of the present invention, a communication processing method is provided, the method comprising:

[0006] Receive first request response information from the first client in response to a media communication request sent by the second client; wherein the first request response information includes the first port number of the first client;

[0007] The application server requests a second port number from the media communication proxy, updates the first port number in the first request-response information to the second port number, and sends the updated request-response information to the virtual server of the application server; wherein, the second port number is used for information transmission between the media communication proxy and the second client;

[0008] The virtual server detects the port type of the second port number in the updated request response information. If the port type is detected to be the first port type, the communication fault self-healing process is triggered. The first port type indicates that the second port number is an invalid port number.

[0009] According to another aspect of the present invention, a communication processing apparatus is provided, the apparatus comprising:

[0010] The first module is configured to receive first request response information from the first client in response to a media communication request sent by the second client; wherein the first request response information includes the first port number of the first client;

[0011] The second module is used to request a second port number from the media communication proxy through the application server, update the first port number in the first request-response information to the second port number, and send the updated request-response information to the virtual server of the application server; wherein, the second port number is used for information transmission between the media communication proxy and the second client;

[0012] The third module is used to detect the port type of the second port number in the updated request response information through the virtual server, and trigger the start of the communication fault self-healing process when the port type is detected to be the first port type; wherein, the first port type indicates that the second port number is an invalid port number.

[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0014] One or more processors;

[0015] Storage device for storing one or more programs.

[0016] When one or more programs are executed by one or more processors, the one or more processors implement any of the communication processing methods described in the embodiments of this disclosure.

[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, which stores computer instructions for causing a processor to execute and implement any of the communication processing methods of the present invention.

[0018] The technical solution of this embodiment involves receiving a first request-response message from a first client responding to a media communication request sent by a second client. The first request-response message includes a first port number of the first client. An application server requests a second port number from a media communication proxy, updates the first port number in the first request-response message to the second port number, and sends the updated request-response message to a virtual server of the application server. The second port number is used for information transmission between the media communication proxy and the second client. The virtual server detects the port type of the second port number in the updated request-response message. If the port type is detected to be a first port type, a communication fault self-healing process is triggered. The first port type indicates that the second port number is an invalid port number. In the technical solution of this disclosure embodiment, the virtual server detects the port type of the second port number in the updated information. When it is detected that it is the first port type representing an invalid port number, the communication fault self-healing process is triggered. Without the need for tedious manual troubleshooting, it can quickly and automatically detect the invalid port number, a key factor that may cause communication failure, and promptly initiate the self-healing process, thereby improving the efficiency of communication fault handling, ensuring the timeliness and stability of communication, and effectively meeting the needs of the current rapid development of communication.

[0019] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0020] To more clearly illustrate the technical solutions in the embodiments of this disclosure, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0021] Figure 1 A flowchart illustrating a communication processing method provided in an embodiment of this disclosure;

[0022] Figure 2 A flowchart illustrating a communication processing method provided in an embodiment of this disclosure;

[0023] Figure 3 A flowchart illustrating a communication processing method provided in an embodiment of this disclosure;

[0024] Figure 4 A schematic diagram of an optional embodiment of a communication processing method provided in this disclosure;

[0025] Figure 5 This is a schematic diagram of the structure of a communication processing device provided in an embodiment of the present disclosure;

[0026] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation

[0027] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0028] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0029] Figure 1 This is a flowchart illustrating a communication processing method provided in an embodiment of this disclosure. This embodiment is applicable to communication between different clients, particularly in scenarios involving communication between clients in a mining area. The method can be executed by a communication processing device, which can be implemented in hardware and / or software and can be configured in electronic devices such as computers or servers. Figure 1 As shown, the method in this embodiment includes:

[0030] S110. Receive first request response information from the first client in response to the media communication request sent by the second client; wherein the first request response information includes the first port number of the first client.

[0031] In this embodiment, the first client and the second client can be two clients that need to conduct media communication. The second client can be understood as the client that initiates the media communication request. The first client can be understood as the client that generates the first request response information based on the media communication request initiated by the first client. In this embodiment, the communication protocols of the first client and the second client can be the same or different. In this embodiment, the first client and the second client are mine communication devices, wherein the mine communication devices include surface communication devices and / or underground communication devices. For example, the first client can be a surface communication device and the second client can be an underground communication device; or, the first client can be an underground communication device and the second client can be a surface communication device. Alternatively, both the first client and the second client can be surface communication devices or underground communication devices.

[0032] In this embodiment, a media communication request can be understood as a request initiated by a second client to a first client for media communication. The media communication request may include the port number of the second client. Furthermore, the media communication request may also include a media encoding format (e.g., a voice encoding format). The media communication request can be established based on signaling protocols such as SIP (Session Initiation Protocol). It should be noted that SIP, or Session Initiation Protocol, is an application layer control protocol used to establish, modify, and terminate multimedia sessions, such as Internet telephony. The media communication request can be a voice communication request; or it can be a video communication request. It is understood that a voice communication request is a session request initiated by the second client through the communication system that only transmits audio data, to achieve real-time voice communication between the second client and the first client. A video communication request is a session request initiated by the second client that simultaneously includes audio and video data, to achieve visual real-time communication, meaning that both parties in the call can not only hear each other's voices but also see real-time video.

[0033] In this embodiment of the disclosure, the first request response information can be understood as information provided by the first client in response to a media communication request sent by the second client. In this embodiment, the first request response information may include a first port number, i.e., the port number of the first client. Furthermore, the first request response information may also include the media encoding format of the first client (e.g., voice encoding format). The first request response information may be stored in the form of a message. Optionally, the first request response information may be a 183 message. It should be noted that a 183 message is used to indicate that a call is in progress, signifying that the call has been successfully transmitted from the second client to the first client, and that the first client has received the call from the second client.

[0034] Specifically, the system receives a media communication request from the second client and forwards the request to the first client. Upon receiving the media communication request from the second client, the first client generates a first request-response message corresponding to the media communication request based on its first port number. If the first client generates the first request-response message, the system receives the first request-response message from the first client.

[0035] S120. The application server requests a second port number from the media communication proxy, updates the first port number in the first request-response information to the second port number, and sends the updated request-response information to the virtual server of the application server; wherein, the second port number is used for information transmission between the media communication proxy and the second client.

[0036] In the IMS (IP Multimedia Subsystem) architecture, the Application Server (AS) provides basic communication services and value-added services. A media communication proxy can be understood as an intermediary agent used for media stream transmission, forwarding, and optimization in a real-time media communication link. A virtual server can be understood as a logical server instance created on the application server using virtualization technology. It can be used to run multiple independent operating systems and application services on a single physical hardware, achieving efficient resource utilization and isolation. It is not an independent physical device, but rather a virtual node with an independent IP address, operating system, and application environment, created by abstracting the computing, storage, and network resources of the application server using virtualization software.

[0037] In this embodiment of the disclosure, the virtual server can be used to record the port number in the received updated request response information, associate the updated request response information with the call record between the first client and the second client, and pass the updated request response information through the IMS network element so that the updated request response information can be sent to the second client through the IMS network element.

[0038] Specifically, the application server requests a port number, i.e., a second port number, from the media communication proxy for information transmission between the media communication proxy and the second client. In response to the application server successfully requesting the second port number, the first port number in the first request-response information is replaced with the second port number to obtain updated request-response information. This updated request-response information can then be sent to the application server's virtual server.

[0039] S130. The virtual server detects the port type of the second port number in the updated request response information. If the port type is detected to be the first port type, the communication fault self-healing process is triggered.

[0040] In this embodiment of the disclosure, the port type may include a first port type and a second port type. The first port type may indicate that the second port number is an invalid port number. The second port type may indicate that the second port number is a valid port number. In this embodiment of the disclosure, when the port type of the second port in the updated request-response information is detected to be the first port type, it can be determined that the second port number in the updated request-response information is an invalid port number.

[0041] In this embodiment, the second port in the updated request-response information is an invalid port number. This is because when the application server requests a port from the media communication proxy, the media communication proxy may experience an undetectable fault. For example, a deadlock may occur within the media communication proxy process, meaning the media communication proxy process is in a normal state, but the business logic is blocked, making it impossible to detect the anomaly through the mainstream process status monitoring system. Therefore, upon detecting that the port type is the first port type, a communication fault self-healing process can be automatically triggered. This allows for rapid response to communication faults between the first and second clients, automatically restoring the communication link, shortening fault recovery time, ensuring business continuity, improving network stability, reducing maintenance costs, and ensuring a seamless user experience, thereby optimizing the overall network service quality.

[0042] In this embodiment of the disclosure, the communication fault self-healing process may include one of the following: requesting a test port from the media communication proxy via the application server; restarting the media communication proxy via the virtual server; and requesting a third port number from the media communication proxy via the virtual server for information transmission between the media communication proxy and the second client. The third port number can be understood as the virtual server re-requesting a port number from the media communication proxy for information transmission between the media communication proxy and the second client.

[0043] As an optional implementation in this embodiment, when the port type is detected to be a first port type, a test port request can be made to the media communication proxy through the application server. As another optional implementation in this embodiment, when the port type is detected to be a first port type, the media communication proxy can be restarted through the virtual server. As yet another optional implementation in this embodiment, when the port type is detected to be a first port type, a third port number for information transmission between the media communication proxy and the second client can be re-requested from the media communication proxy through the virtual server.

[0044] As another optional implementation in this disclosure, when the port type is detected to be the first port type, a test port request can be made to the media communication agent through the application server. If the request is successful, it can be determined that the media communication agent has recovered from the fault state, that is, changed from the fault state to the normal state; if the request is unsuccessful, it can be determined that the media communication agent is in a fault state, and then the media communication agent can be restarted through the virtual server. When the media communication agent process is restarted, since the audio and video stream transmission and reception ports for the media communication agent to interact with the first client requested by the application server are cleared, the transmission and reception port numbers can be extracted from the recorded historical media communication requests through the virtual server, and the extracted port numbers can be set for the media communication agent. Afterwards, the virtual server re-requests the audio and video stream transmission and reception ports for the interaction with the second client from the media communication agent, and fills the obtained port into the first request response information to obtain the modified request response information. Then, the modified request response information can be sent to other IMS network elements through the virtual server.

[0045] Specifically, the virtual server detects the port type of the second port number in the updated request-response information to determine its port type. If the detected port type is the first port type, the communication fault self-healing process can be automatically triggered.

[0046] Based on the above embodiments, the method further includes: when the port type is detected to be a second port type, the updated request-response information can be sent to the second client through the application server, so that the second client and the first client establish a communication link and realize communication interaction between the first client and the second client. Here, the second port can indicate that the second port number is a valid port number.

[0047] Based on the above embodiments, before triggering the communication fault self-healing process, the method further includes: re-executing the step of requesting a second port number from the media communication proxy through the application server, updating the first port number in the first request-response information to the second port number, and sending the updated request-response information to the virtual server of the application server; and using the virtual server to detect the port type of the second port number in the updated request-response information. In this embodiment, re-executing the step of requesting a second port number from the media communication proxy through the application server can dynamically update the port number and perform secondary verification of the type, avoiding misjudgments caused by temporary network fluctuations or resource allocation delays, and improving the accuracy of port validity detection. Repeated verification through the virtual server can effectively filter invalid port numbers, reduce false triggering of the self-healing process, reduce system resource consumption, ensure stable establishment of the communication link, and enhance the reliability of media data transmission and business continuity.

[0048] The technical solution of this embodiment involves receiving a first request-response message from a first client responding to a media communication request sent by a second client. The first request-response message includes a first port number of the first client. An application server requests a second port number from a media communication proxy, updates the first port number in the first request-response message to the second port number, and sends the updated request-response message to a virtual server of the application server. The second port number is used for information transmission between the media communication proxy and the second client. The virtual server detects the port type of the second port number in the updated request-response message. If the port type is detected to be a first port type, a communication fault self-healing process is triggered. The first port type indicates that the second port number is an invalid port number. In the technical solution of this disclosure embodiment, the virtual server detects the port type of the second port number in the updated information. When it is detected that it is the first port type representing an invalid port number, the communication fault self-healing process is triggered. Without the need for tedious manual troubleshooting, it can quickly and automatically detect the invalid port number, a key factor that may cause communication failure, and promptly initiate the self-healing process, thereby improving the efficiency of communication fault handling, ensuring the timeliness and stability of communication, and effectively meeting the needs of the current rapid development of communication.

[0049] Figure 2 This is a flowchart illustrating another communication processing method provided in this embodiment. The technical solution of this embodiment can be combined with other embodiments; for the same or related parts, they can be described in conjunction with the descriptions of other embodiments, and will not be repeated here. Figure 2 As shown, the method in this embodiment may specifically include:

[0050] S210, Receive first request response information from the first client in response to the media communication request sent by the first client to the second client; wherein, the first request response information includes the first port number of the first client.

[0051] S220. The application server requests a second port number from the media communication proxy, updates the first port number in the first request-response information to the second port number, and sends the updated request-response information to the virtual server of the application server; wherein, the second port number is used for information transmission between the media communication proxy and the second client.

[0052] S230. The virtual server performs a consistency comparison between the second port number and the preset identifier in the updated request response information. If the second port number is determined to be the preset identifier, the communication fault self-healing process is triggered.

[0053] The preset identifier can be used to indicate that the port type of the second port number is the first port type. The first port type can indicate that the second port number is an invalid port number. In this embodiment, the preset identifier can be set according to actual needs, and it is not specifically limited here. The preset identifier can be in the form of characters, numbers, or strings, etc. For example, the preset identifier can be 0, 1, false, etc.

[0054] Specifically, a pre-set identifier is used to represent the port type of the first port type for the second port number. The virtual server compares the second port number in the updated request-response information with the pre-set identifier to obtain a comparison result. If the comparison result shows that the second port number matches the pre-set identifier, then the second port number in the updated request-response information is determined to be an invalid port number. In this case, the communication failure self-healing process can be triggered. Conversely, if the comparison result shows that the second port number does not match the pre-set identifier, then the second port number in the updated request-response information is determined to be a valid port number.

[0055] The technical solution of this disclosure embodiment compares the second port number and the preset identifier in the updated request response information using the virtual server. If the second port number is determined to be the preset identifier, the communication fault self-healing process is triggered, thus realizing the function of automatically triggering the communication fault self-healing process.

[0056] Figure 3 This is a flowchart illustrating another communication processing method provided in this embodiment. The technical solution of this embodiment can be combined with other embodiments; for the same or related parts, they can be described in conjunction with the descriptions of other embodiments, and will not be repeated here. Figure 3As shown, the method in this embodiment may specifically include:

[0057] S310. In response to the media communication request from the second client, determine the first client communicating with the second client, and send the media communication request to the virtual server.

[0058] Specifically, the system receives media communication requests initiated by the second client. These requests can then be sent to the virtual server. Furthermore, the media communication requests can be parsed to obtain a parsing result. Based on this parsing result, the first client communicating with the second client can be determined.

[0059] S320. The media communication request is sent to the application server through the virtual server. The application server requests a fourth port number from the media communication proxy and updates the fifth port number of the second client in the media communication request to the fourth port number. The updated media communication request is then sent to the first client.

[0060] The fourth port number can be used for information transmission between the first client and the media communication proxy. The fifth port number can be understood as the port number of the second client. In this embodiment, the method of requesting the fourth port number from the media communication proxy through the application server can specifically be that the application server requests an idle port number from the media communication proxy; if the request is successful, the obtained idle port number can be used as the fourth port number for information transmission between the first client and the media communication proxy. If the request fails, it can be determined that there is currently no available port number, and the request can be made again after a preset time. It is understood that the available port number can be a port number used for handling idle states. In this embodiment, the preset time can be set according to actual needs, and it is not specifically limited here. For example, 3ms, 5ms, 10ms, etc.

[0061] Specifically, the media communication request is sent to the application server via the virtual server. The application server can then request a fourth port number from the media communication proxy, determine the fifth port number of the second client in the media communication request, and replace the fifth port number of the second client in the media communication request with the fourth port number to obtain an updated media communication request. This updated media communication request can then be sent to the first client, allowing the first client to determine the port number of the media communication proxy it needs to interact with based on the updated request.

[0062] S330. Receive first request response information from the first client in response to the media communication request sent by the second client; wherein the first request response information includes the first port number of the first client.

[0063] S340. The application server requests a second port number from the media communication proxy, updates the first port number in the first request-response information to the second port number, and sends the updated request-response information to the virtual server of the application server; wherein, the second port number is used for information transmission between the media communication proxy and the second client.

[0064] S350. The virtual server detects the port type of the second port number in the updated request response information. If the port type is detected to be the first port type, the communication fault self-healing process is triggered. The first port type indicates that the second port number is an invalid port number.

[0065] The technical solution of this disclosure embodiment, before receiving the first request response information from the first client in response to the media communication request sent by the second client to the second client, determines the first client communicating with the second client in response to the media communication request from the second client, and sends the media communication request to the virtual server; the virtual server sends the media communication request to the application server, the application server requests a fourth port number from the media communication proxy, updates the fifth port number of the second client in the media communication request to the fourth port number, and sends the updated media communication request to the first client; wherein, the fourth port number is used for information transmission between the first client and the media communication proxy. The technical solution of this disclosure embodiment realizes the function of sending the media communication request of the second client to the first client.

[0066] This disclosure provides an optional embodiment of a communication processing method, the specific implementation of which can be found in the following embodiments. Technical features that are the same as or similar to those in the above embodiments will not be repeated here; please refer to [link to relevant documentation]. Figure 4 Fixed-line phones and mobile phones communicate through the coal mine private network converged communication system. The coal mine private network converged communication system includes IMS network elements, AS (application server), virtual AS (virtual machine of application server), and audio and video proxy.

[0067] In this communication architecture, the specific steps for communication between landlines and mobile phones are as follows:

[0068] Step 1: Landline, used to initiate a voice communication request and send the voice communication request to the IMS network element;

[0069] It should be noted that the voice communication request is an INVITE request in the SIP protocol; the INVITE request includes an SDP message describing the media capabilities supported by the landline (such as voice encoding, voice stream port information, etc.). It should also be noted that "landline" refers to a fixed-line telephone.

[0070] Step 2: The IMS network element receives voice communication requests and sends them to the virtual AS, which then forwards the voice communication requests to the AS. During this process, the virtual AS can record the fixed-line media capability information.

[0071] Step 3: AS is used to request voice stream transmission and reception ports from the audio and video proxy. The requested audio and video stream ports are put into the SDP message and wrapped in the INVITE request and passed to the virtual AS.

[0072] Because landlines and mobile phones use different voice encoding methods, a voice proxy is needed to provide voice transcoding services, which serve as the audio stream port for audio-visual proxy and mobile phone interaction.

[0073] Step 4: The virtual AS records the INVITE request and associates the message with the message sent from the landline in Step 1 based on the calling and called numbers and call identifier, and then forwards the message to the IMS system.

[0074] Step 5: The IMS system sends the INVITE message to the called mobile phone.

[0075] Step 6: After receiving the INVITE call request message, the called mobile phone will send a 183 (Session in progress) response to the calling landline; the SDP message in the 183 message provides the called mobile phone's media capabilities, including voice encoding, voice stream transceiver ports, etc.

[0076] Step 7: The path of the 183 response message via INVITE is returned to the virtual AS. The virtual AS records the 183 message and associates this response with the previously transmitted information messages based on the calling and called numbers and communication identifiers, and then forwards the 183 message to the AS. At this time, the AS requests a voice stream transceiver port from the audio / video agent to serve as the voice stream port for the audio / video agent to interact with the landline.

[0077] Step 8: When the AS requests a voice stream transceiver port from the audio / video agent, the audio / video agent malfunctions, and the AS fails to request a short audio stream transceiver port. The audio transceiver port in the SDP of the 183 response message sent to the landline is 0. The AS resends the 183 response to the virtual AS.

[0078] Step 9: Upon receiving the 183 response, the virtual AS associates the response with previous messages based on the calling and called numbers and communication identifiers, and analyzes the 183 response message. If the port for the audio / video proxy in the 183 response message is 0, the virtual AS fault handling process can be triggered.

[0079] In this embodiment, the virtual AS fault handling process may specifically include: First, determining that the audio / video proxy might be faulty by allocating port 0, a test port request can be made to the audio / video proxy. If the request is successful (e.g., the audio / video proxy has recovered from the fault), the requested port is filled into the audio port field of the 183 response message SDP packet. If the request fails, the virtual AS can determine that the audio / video proxy has failed, and the virtual AS will restart the audio / video proxy service process. After the audio / video proxy process is restarted, since the audio stream transceiver port requested by the AS for interaction with the mobile phone is cleared, the virtual AS extracts the audio stream transceiver port from the recorded INVITE message and sets the port for the audio / video proxy. Then, the virtual AS re-requests the audio stream transceiver port for interaction between the audio / video proxy and the fixed-line phone, and fills the obtained port into the 183 response SDP packet. The virtual AS can then send the 183 response to other IMS network elements. The 183 response reaches the landline via the IMS network element, and after going through the subsequent 180 response process, 200 response process, and ACK process, the landline and mobile phone can conduct normal voice calls.

[0080] In the technical solution of this disclosure embodiment, the virtual server detects the port type of the second port number in the updated information. When it is detected that it is the first port type representing an invalid port number, the communication fault self-healing process is triggered. Without the need for tedious manual troubleshooting, it can quickly and automatically detect the invalid port number, a key factor that may cause communication failure, and promptly initiate the self-healing process, thereby improving the efficiency of communication fault handling, ensuring the timeliness and stability of communication, and effectively meeting the needs of the current rapid development of communication.

[0081] Figure 5 This is a schematic diagram of a communication processing device provided in an embodiment of the present disclosure. Figure 5As shown, the communication processing device includes a first module 410, a second module 420, and a third module 430. The first module 410 is used to receive a first request-response information from a first client responding to a media communication request sent by a second client; wherein the first request-response information includes a first port number of the first client. The second module 420 is used to request a second port number from a media communication proxy through an application server, update the first port number in the first request-response information to the second port number, and send the updated request-response information to a virtual server of the application server; wherein the second port number is used for information transmission between the media communication proxy and the second client. The third module 430 is used to detect the second port number in the updated request-response information through the virtual server, and if the second port number is detected as invalid, trigger a communication fault self-healing process.

[0082] The technical solution of this embodiment involves a first module 410 receiving first request-response information from a first client responding to a media communication request sent by a second client to a first client; wherein the first request-response information includes a first port number of the first client. A second module 420 requests a second port number from a media communication proxy through an application server, updates the first port number in the first request-response information to the second port number, and sends the updated request-response information to a virtual server of the application server; wherein the second port number is used for information transmission between the media communication proxy and the second client. A third module 430 detects the port type of the second port number in the updated request-response information through the virtual server; if the port type is detected to be a first port type, a communication fault self-healing process is triggered; wherein the first port type indicates that the second port number is an invalid port number. In the technical solution of this disclosure embodiment, the virtual server detects the port type of the second port number in the updated information. When it is detected that it is the first port type representing an invalid port number, the communication fault self-healing process is triggered. Without the need for tedious manual troubleshooting, it can quickly and automatically detect the invalid port number, a key factor that may cause communication failure, and promptly initiate the self-healing process, thereby improving the efficiency of communication fault handling, ensuring the timeliness and stability of communication, and effectively meeting the needs of the current rapid development of communication.

[0083] In some embodiments of this disclosure, the communication processing apparatus may optionally further include a fourth module; wherein the fourth module is configured to send the updated request response information to the second client through the application server when the port type is detected to be a second port type; wherein the second port may indicate that the second port number is a valid port number.

[0084] In some embodiments of this disclosure, optionally, the communication processing apparatus further includes a duplicate detection module, which is used to, before triggering the start of the communication fault self-healing process, re-execute the operation of requesting a second port number from the media communication proxy through the application server, updating the first port number in the first request response information to the second port number, sending the updated request response information to the virtual server of the application server, and detecting the port type of the second port number in the updated request response information through the virtual server.

[0085] In some embodiments of this disclosure, optionally, the third module 430 is used to perform a consistency comparison between the second port number and the preset identifier in the updated request response information through the virtual server, and if it is determined that the second port number is the preset identifier, trigger the start of the communication fault self-healing process; wherein, the preset identifier is used to indicate that the port type of the second port number is the first port type.

[0086] Optionally, in some embodiments of this disclosure, the communication fault self-healing process includes one of the following:

[0087] The application server requests a test port from the media communication proxy.

[0088] Restart the media communication agent via the virtual server;

[0089] The virtual server requests a third port number from the media communication proxy for information transmission between the media communication proxy and the second client.

[0090] In some embodiments of this disclosure, optionally, the communication processing apparatus further includes a fifth module, wherein the fifth module is configured to, in response to a media communication request from the second client, determine a first client communicating with the second client, and send the media communication request to the virtual server; send the media communication request to the application server through the virtual server, request a fourth port number from the media communication proxy through the application server, update the fifth port number of the second client in the media communication request to the fourth port number, and send the updated media communication request to the first client; wherein the fourth port number is used for information transmission between the first client and the media communication proxy.

[0091] In some embodiments of this disclosure, optionally, the first client and the second client are mine communication devices, wherein the mine communication devices include surface communication devices and / or underground communication devices.

[0092] The communication processing apparatus provided in this disclosure can execute the communication processing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the method.

[0093] It is worth noting that the various units and modules included in the above-mentioned communication processing device are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the protection scope of the embodiments of this disclosure.

[0094] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (such as helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0095] like Figure 6 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0096] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0097] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as communication processing methods.

[0098] In some embodiments, the communication processing method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via read-only memory (ROM) 12 and / or communication unit 19. When the computer program is loaded into random access memory (RAM) 13 and executed by processor 11, one or more steps of the communication processing method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the communication processing method by any other suitable means (e.g., by means of firmware).

[0099] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0100] Computer programs used to implement the communication processing methods of this disclosure can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The computer programs can be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0101] This disclosure provides a computer-readable storage medium storing computer instructions for causing a processor to execute a communication processing method, comprising: receiving first request-response information from a first client in response to a media communication request sent by a second client; wherein the first request-response information includes a first port number of the first client; requesting a second port number from a media communication proxy through an application server, updating the first port number in the first request-response information to the second port number, and sending the updated request-response information to a virtual server of the application server; wherein the second port number is used for information transmission between the media communication proxy and the second client; and detecting the second port number in the updated request-response information through the virtual server, and triggering a communication fault self-healing process if the second port number is detected as an invalid port number.

[0102] In the context of this disclosure, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium can be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0103] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0104] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0105] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0106] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication unit 19, or installed from storage unit 18, or installed from ROM 12. When the computer program is executed by processor 11, it performs the functions defined in the methods of embodiments of this disclosure.

[0107] This disclosure also provides a computer program product, including a computer program that, when executed by a processor, implements a communication processing method according to any embodiment of the present invention.

[0108] In implementing a computer program product, computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof. Programming languages ​​include object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0109] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this disclosure can be achieved, and this is not limited herein.

[0110] The specific embodiments described above do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.

Claims

1. A communication processing method, characterized in that, include: Receive first request response information from the first client in response to a media communication request sent by the second client; wherein the first request response information includes the first port number of the first client; The application server requests a second port number from the media communication proxy, updates the first port number in the first request-response information to the second port number, and sends the updated request-response information to the virtual server of the application server; wherein, the second port number is used for information transmission between the media communication proxy and the second client; The virtual server detects the port type of the second port number in the updated request response information. If the port type is detected to be the first port type, the communication fault self-healing process is triggered. The first port type indicates that the second port number is an invalid port number.

2. The method according to claim 1, characterized in that, The method further includes: If the port type is detected to be the second port type, the updated request response information is sent to the second client through the application server; wherein, the second port type indicates that the second port number is a valid port number.

3. The method according to claim 1, characterized in that, Before triggering the self-healing process for communication failures, the method further includes: The process of requesting a second port number from the media communication proxy through the application server is executed again, updating the first port number in the first request-response information to the second port number, and sending the updated request-response information to the virtual server of the application server; the virtual server then detects the port type of the second port number in the updated request-response information.

4. The method according to claim 1, characterized in that, The step involves detecting the port type of the second port number in the updated request-response information through the virtual server. If the port type is detected to be the first port type, a communication fault self-healing process is triggered, including: The virtual server performs a consistency comparison between the second port number and the preset identifier in the updated request response information. If the second port number is determined to be the preset identifier, the communication fault self-healing process is triggered. The preset identifier is used to indicate that the port type of the second port number is the first port type.

5. The method according to claim 1, characterized in that, The communication fault self-healing process includes one of the following: The application server requests a test port from the media communication proxy. Restart the media communication agent via the virtual server; The virtual server requests a third port number from the media communication proxy for information transmission between the media communication proxy and the second client.

6. The method according to claim 1, characterized in that, Before receiving the first request response information from the first client in response to the media communication request sent by the second client, the method further includes: In response to the media communication request from the second client, a first client communicating with the second client is identified, and the media communication request is sent to the virtual server; The virtual server sends the media communication request to the application server, the application server requests a fourth port number from the media communication proxy, updates the fifth port number of the second client in the media communication request to the fourth port number, and sends the updated media communication request to the first client; wherein, the fourth port number is used for information transmission between the first client and the media communication proxy.

7. The method according to claim 1, characterized in that, The first client and the second client are mine communication devices, wherein the mine communication devices include surface communication devices and / or underground communication devices.

8. A communication processing device, characterized in that, The device includes: The first module is configured to receive first request response information from the first client in response to a media communication request sent by the second client; wherein the first request response information includes the first port number of the first client; The second module is used to request a second port number from the media communication proxy through the application server, update the first port number in the first request-response information to the second port number, and send the updated request-response information to the virtual server of the application server; wherein, the second port number is used for information transmission between the media communication proxy and the second client; The third module is used to detect the port type of the second port number in the updated request response information through the virtual server, and trigger the start of the communication fault self-healing process when the port type is detected to be the first port type; wherein, the first port type indicates that the second port number is an invalid port number.

9. An electronic device, characterized in that, The electronic device includes: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the communication processing method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the communication processing method according to any one of claims 1-7.

Citation Information

Patent Citations

  • Communication method and device, and storage medium

    CN113037540A

  • Network equipment fault processing method and system, electronic equipment and storage medium

    CN119892606A