Message processing method, system and equipment applied to distributed cluster system
By introducing superior domain, subordinate domain and cache middleware in the distributed cluster system, bypassing SIP session state management, the message sending without session state is realized, the server performance impact and interaction failure problems are solved, and cross-platform The efficiency and simplicity of SIP service message interaction.
Patent Information
- Application Number
- CN202411775555.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-05
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2044-12-05
AI Technical Summary
When using SIP protocol to manage multimedia communications, the performance of the server is affected by complex processes, and the inability to bypass session state management leads to interaction failure, which brings difficulties to distributed deployment.
By introducing the upper domain, lower domain and cache middleware in the distributed cluster system, SIP request messages are obtained and forwarded, response messages are generated, and key information is stored in the cache middleware, bypassing SIP session state management, and session-free implementation is achieved without a session A status message is sent.
It improves the system message transmission response efficiency, simplifies the message processing process, and solves the problem of cross-platform SIP service message interaction.
Smart Images

Figure CN119276847A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a message processing method, system and device applied to a distributed cluster system. Background Art
[0002] The SIP protocol (Session initialization Protocol) is a multimedia communication protocol developed by the IETF. It is a text-based application layer control protocol used to create, modify, and release sessions of one or more participants.
[0003] In the SIP protocol, the SIP protocol stack is usually used in the prior art to manage the SIP session state, thereby realizing message communication between multimedia. The SIP session state includes a series of complex operation states such as the initiation, establishment, modification, and termination of the SIP session. The complex process will affect the performance of the server, and after using the SIP session state to manage messages, the server can only use the original access service to receive responses, otherwise the interaction will fail because the session cannot be found in the memory, which brings difficulties to distributed deployment. Summary of the invention
[0004] Based on this, it is necessary to provide a message processing method, system and device applied to a distributed cluster system to address the above technical problems.
[0005] In a first aspect, the present application provides a message processing method applied to a distributed cluster system, the system comprising an upper-level domain, a lower-level domain, and a cache middleware, the upper-level domain communicates and interacts with at least one upper-level platform, the lower-level domain communicates and interacts with at least one lower-level device, the cache middleware communicates and interacts with the upper-level domain and the lower-level domain, and the method comprises: Obtaining a SIP request message sent by the upper-level platform through the upper-level domain, and sending the SIP request message to the lower-level domain; Forwarding the SIP request message to a corresponding lower-level device through the lower-level domain, and the lower-level device generating a first response message based on the SIP request message; Storing key information of the first response message through the cache middleware; The key information corresponding to the SIP request message is queried in the cache middleware through the upper domain, and the key information is assembled to generate a second response message to the SIP request message.
[0006] In one embodiment, forwarding the SIP request message to the corresponding lower-level device through the lower-level domain includes: The method comprises the steps of: obtaining a first request header of the SIP request message through the lower-level domain; parsing the first request header to extract first target information of the SIP request message; obtaining second target information of the lower-level device, replacing the first target information with the second target information, and forwarding the replaced SIP request message to the corresponding lower-level device.
[0007] In one of the embodiments, after the lower-level device generates a first response message based on the SIP request message, the method further includes: Obtain the second request header of the first response message through the lower-level domain; parse the second request header to extract the second target information of the first response message; obtain the first target information of the upper-level platform, replace the second target information of the second request header with the first target information, and send the replaced second request header to the cache middleware; the key information includes the replaced second request header.
[0008] In one embodiment, the method further comprises: The replaced second request header corresponding to the SIP request message is queried in the cache middleware through the upper domain, and the replaced second request header is extracted and assembled to generate a second response message to the SIP request message.
[0009] In one embodiment, the method further comprises: The second response message is sent to the corresponding upper-level platform through the upper-level domain using the SipProvider interface.
[0010] In one embodiment, the method further comprises: The SIP request message sent by the upper-level platform is obtained through the upper-level domain, and the SIP request message is sent to the lower-level domain using the SipProvider interface.
[0011] In a second aspect, the present application further provides a distributed cluster system, the system comprising an upper-level domain, a lower-level domain, and a cache middleware, the upper-level domain communicates and interacts with at least one upper-level platform, the lower-level domain communicates and interacts with at least one lower-level device, the cache middleware communicates and interacts with the upper-level domain and the lower-level domain, The upper domain is used to obtain the SIP request message sent by the upper platform, and send the SIP request message to the lower domain; The lower-level domain is used to forward the SIP request message to a corresponding lower-level device, and the lower-level device generates a first response message based on the SIP request message; The cache middleware is used to store key information of the first response message; The upper domain is used to query the key information corresponding to the SIP request message in the cache middleware, and assemble the key information to generate a second response message for the SIP request message.
[0012] In one of the embodiments, the lower-level domain is also used to obtain a first request header of the SIP request message; parse the first request header to extract first target information of the SIP request message; obtain second target information of the lower-level device, replace the first target information with the second target information, and forward the replaced SIP request message to the corresponding lower-level device.
[0013] In one of the embodiments, the lower-level domain is also used to obtain the second request header of the first response message; parse the second request header to extract the second target information of the first response message; obtain the first target information of the upper-level platform, replace the second target information of the second request header with the first target information, and send the replaced second request header to the cache middleware; the key information includes the replaced second request header.
[0014] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps corresponding to the method described in the first aspect when executing the computer program.
[0015] The message processing method, system and device applied to the distributed cluster system obtains the SIP request message sent by the upper platform through the upper domain, and sends the SIP request message to the lower domain; forwards the SIP request message to the corresponding lower device through the lower domain, and the lower device generates a first response message based on the SIP request message; stores the key information of the first response message through the cache middleware; queries the key information corresponding to the SIP request message in the cache middleware through the upper domain, and assembles the key information to generate a second response message of the SIP request message, adjusts the original sending mechanism of the SIP protocol stack, realizes the SIP message sending method without session state by bypassing the management of the SIP session state, and solves the problem of cross-platform SIP service message interaction. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0017] Figure 1 An application environment diagram of a message processing method applied to a distributed cluster system in one embodiment; Figure 2 A schematic diagram of a flow chart of a message processing method applied to a distributed cluster system in one embodiment; Figure 3 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0018] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0019] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantity limitation, and may indicate the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects before and after are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.
[0020] The message processing method applied to a distributed cluster system provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown, the terminal 102 communicates with the server 104 through a network. The data storage system 106 can store data that the server 104 needs to process. The data storage system 106 can be integrated on the server 104, or placed on the cloud or other network servers.
[0021] The server 104 is a distributed cluster system composed of multiple physical servers. The system includes an upper domain, a lower domain, and a cache middleware. The upper domain communicates and interacts with at least one upper platform, the lower domain communicates and interacts with at least one lower device, and the cache middleware communicates and interacts with the upper domain and the lower domain. On the server 104, the SIP request message sent by the upper platform is obtained through the upper domain, and the SIP request message is sent to the lower domain; the SIP request message is forwarded to the corresponding lower device through the lower domain, and the lower device generates a first response message based on the SIP request message; the key information of the first response message is stored through the cache middleware; the key information corresponding to the SIP request message is queried in the cache middleware through the upper domain, and the key information is assembled to generate a second response message of the SIP request message.
[0022] In one of the embodiments, the lower-level domain is also used to obtain a first request header of the SIP request message; parse the first request header to extract first target information of the SIP request message; obtain second target information of the lower-level device, replace the first target information with the second target information, and forward the replaced SIP request message to the corresponding lower-level device.
[0023] In one of the embodiments, the lower-level domain is also used to obtain the second request header of the first response message; parse the second request header to extract the second target information of the first response message; obtain the first target information of the upper-level platform, replace the second target information of the second request header with the first target information, and send the replaced second request header to the cache middleware; the key information includes the replaced second request header.
[0024] The terminal 102 may be, but is not limited to, various cameras, personal computers, laptops, smart phones, tablet computers, IoT devices and portable wearable devices. IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc. Portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc.
[0025] In an exemplary embodiment, Figure 2As shown, a message processing method applied to a distributed cluster system is provided. Figure 1 The server side in is taken as an example to illustrate, including the following steps 201 to 204.
[0026] Step 201: Obtain a SIP request message sent by the upper-level platform through the upper-level domain, and send the SIP request message to the lower-level domain.
[0027] Among them, the upper-level domain receives the SIP request message sent by the upper-level platform, uses the Jani-sip protocol stack to parse the SIP request message, obtains the request header of the SIP request message, modifies the device parameter information of the request header according to the lower-level device corresponding to the SIP request message, and uses the SipProvider interface of the Jani-sip protocol stack to send the modified SIP request message to the lower-level domain.
[0028] Step 202: forward the SIP request message to a corresponding lower-level device through the lower-level domain, and the lower-level device generates a first response message based on the SIP request message.
[0029] Specifically, the lower-level domain forwards the SIP request message to the corresponding lower-level device according to the replaced request header, and the lower-level device receives the SIP request message, parses and responds, and generates a first response message.
[0030] Step 203: storing key information of the first response message through the cache middleware.
[0031] Specifically, the key information includes at least one data information in the request header and request body of the first response message. According to the upper-level platform corresponding to the first response message, the lower-level device modifies the second target information in the request header or request body of the first response message, and caches the modified request header or request body of the first response message in the cache middleware.
[0032] Step 204: query the cache middleware for the key information corresponding to the SIP request message through the upper domain, assemble the key information, and generate a second response message to the SIP request message.
[0033] Specifically, the upper domain constructs a response query task according to the refresh mechanism, and the function of the response query task is to query the cache middleware for the request header of the lower-level device corresponding to the SIP request message. If the request header is found, the relevant data information is extracted and assembled to generate the second response message of the SIP request message.
[0034] In the above-mentioned message processing method applied to the distributed cluster system, the original sending mechanism of the SIP protocol stack is adjusted. By bypassing the SIP protocol stack's processing of requests, responses, transactions and dialog boxes, that is, bypassing the management of the SIP session state, the SIP message sending method without session state is realized, and the problem of cross-platform SIP service message interaction is solved.
[0035] In one embodiment, step 202 forwards the SIP request message to the corresponding lower-level device through the lower-level domain, and specifically includes the following contents: The method comprises the steps of: obtaining a first request header of the SIP request message through the lower-level domain; parsing the first request header to extract first target information of the SIP request message; obtaining second target information of the lower-level device, replacing the first target information with the second target information, and forwarding the replaced SIP request message to the corresponding lower-level device.
[0036] Among them, the first target information of the SIP request message includes the user information of the upper-level platform. If the lower-level domain needs to forward the SIP request message containing the first target information directly to the lower-level device, it involves the issue of cross-platform authority security. The traditional forwarding method is that the lower-level domain reassembles the original SIP request message sent by the upper-level platform, generates a new text protocol and sends it to the corresponding lower-level device, including a series of operations such as initiation, establishment, modification, and termination of the SIP session. The processing flow is complicated and affects the system service performance. Therefore, in this embodiment, by obtaining the second target information of the lower-level device, that is, the user information of the lower-level platform, the first target information is replaced with the second target information, and the replaced SIP request message is forwarded to the corresponding lower-level device, bypassing the management of the session life cycle to implement the SIP session-free message sending method, thereby improving the efficiency of the system message transmission response and simplifying the message processing process.
[0037] It should be noted that, in addition to the user information, the first target information of the SIP request message and the second target information of the first response message also include other information in the request header. For example, if the SIP request message or the first response message is an invite request, the first target information or the second target information also includes the from information, to information, contact information, and subject information in the request header. For another example, if the SIP request message or the first response message is a message request, the first target information or the second target information also includes the from information and to information in the request header.
[0038] In one embodiment, after the lower-level device generates a first response message based on the SIP request message in step 202, the method further includes the following contents: Obtain the second request header of the first response message through the lower-level domain; parse the second request header to extract the second target information of the first response message; obtain the first target information of the upper-level platform, replace the second target information of the second request header with the first target information, and send the replaced second request header to the cache middleware; the key information includes the replaced second request header.
[0039] More specifically, the replaced second request header corresponding to the SIP request message is queried in the cache middleware through the upper domain, and the replaced second request header is extracted and assembled to generate a second response message to the SIP request message.
[0040] Furthermore, the second response message is sent to the corresponding upper platform through the upper domain using the SipProvider interface of the Jani-sip protocol stack.
[0041] Among them, after the lower-level device generates the first response message based on the SIP request message, the lower-level domain parses the first response message to obtain the second request header of the first response message. Since the second request header is the data information required by the upper-level platform, the lower-level domain replaces the second target information representing the lower-level device in the second request header with the first target information representing the upper-level platform, and sends the replaced second request header to the cache middleware, waiting for the query of the upper-level domain, bypassing the management of the session life cycle to implement the SIP session-free message sending method, so that the SIP protocol stack is only responsible for encoding or parsing the incoming message, simplifying the SIP message processing mechanism.
[0042] In one embodiment, step 202 forwards the SIP request message to the corresponding lower-level device through the lower-level domain, and further includes the following contents: The method comprises the steps of: obtaining a first request body of the SIP request message through the lower-level domain; parsing the first request body to extract third target information of the SIP request message; obtaining fourth target information of the lower-level device, replacing the third target information with the fourth target information, and forwarding the replaced SIP request message to the corresponding lower-level device.
[0043] In one embodiment, after the lower-level device generates a first response message based on the SIP request message in step 202, the method further includes the following contents: When the key information is a request body, the second request body of the first response message is obtained through the lower-level domain; the second request body is parsed to extract the fourth target information of the first response message; the third target information of the upper-level platform is obtained, the fourth target information of the second request body is replaced with the third target information, and the replaced second request body is sent to the cache middleware; the key information includes the replaced second request body.
[0044] It should be noted that the third target information of the SIP request message and the fourth target information of the first response message are replacement information including the request body. If the SIP request message or the first response message is an invite request, the third target information and the fourth target information are o, c, and m field information in the request body; if the SIP request message or the first response message is a message request, the third target information and the fourth target information are DeviceID information in the request body.
[0045] In a preferred embodiment, a message processing method applied to a distributed cluster system is provided, which specifically includes the following steps: Step 1: The upper-level domain obtains the SIP request message sent by the upper-level platform, and uses the SipProvider interface to send the SIP request message to the lower-level domain.
[0046] Step 2: The lower-level domain obtains the first request header of the SIP request message; parses the first request header to extract the first target information of the SIP request message; obtains the second target information of the lower-level device, replaces the first target information with the second target information, and forwards the replaced SIP request message to the corresponding lower-level device.
[0047] Step 3: The lower-level device generates a first response message based on the SIP request message.
[0048] Step 4: The lower-level domain obtains the second request header of the first response message; parses the second request header and extracts the second target information of the first response message; obtains the first target information of the upper-level platform, replaces the second target information of the second request header with the first target information, and sends the replaced second request header to the cache middleware.
[0049] Step 5: The upper domain searches the cache middleware for the replaced second request header corresponding to the SIP request message, extracts the replaced second request header for assembly, and generates a second response message to the SIP request message.
[0050] Step 6: The upper domain uses the SipProvider interface of the Jani-sip protocol stack to send the second response message to the corresponding upper platform.
[0051] In this preferred embodiment, by bypassing the Jani-sip protocol stack's processing of requests, responses, transactions, and dialog boxes, and bypassing the management of the session life cycle, a SIP message sending method without session state is implemented, thereby achieving concise and efficient cross-platform SIP service message interaction.
[0052] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0053] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 3 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a message processing method applied to a distributed cluster system is implemented.
[0054] Those skilled in the art will understand that Figure 3The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0055] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented: Obtaining a SIP request message sent by the upper-level platform through the upper-level domain, and sending the SIP request message to the lower-level domain; Forwarding the SIP request message to a corresponding lower-level device through the lower-level domain, and the lower-level device generating a first response message based on the SIP request message; Storing key information of the first response message through the cache middleware; The key information corresponding to the SIP request message is queried in the cache middleware through the upper domain, and the key information is assembled to generate a second response message to the SIP request message.
[0056] In one embodiment, when the processor executes the computer program, the following steps are further implemented: obtaining a first request header of the SIP request message through the lower-level domain; parsing the first request header to extract first target information of the SIP request message; obtaining second target information of the lower-level device, replacing the first target information with the second target information, and forwarding the replaced SIP request message to the corresponding lower-level device.
[0057] In one embodiment, when the processor executes the computer program, it also implements the following steps: obtaining the second request header of the first response message through the lower-level domain; parsing the second request header to extract the second target information of the first response message; obtaining the first target information of the upper-level platform, replacing the second target information of the second request header with the first target information, and sending the replaced second request header to the cache middleware; the key information includes the replaced second request header.
[0058] In one embodiment, when the processor executes the computer program, the following steps are further implemented: querying the cache middleware through the upper-level domain for the replaced second request header corresponding to the SIP request message, extracting the replaced second request header for assembly, and generating a second response message for the SIP request message.
[0059] In one embodiment, when the processor executes the computer program, the following steps are further implemented: sending the second response message to the corresponding upper-level platform through the upper-level domain using the SipProvider interface.
[0060] In one embodiment, when the processor executes the computer program, the following steps are further implemented: obtaining a SIP request message sent by the upper-level platform through the upper-level domain, and sending the SIP request message to the lower-level domain using a SipProvider interface.
[0061] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the message processing method applied to a distributed cluster system described in the above embodiments is implemented.
[0062] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the message processing method applied to a distributed cluster system described in the above embodiments is implemented.
[0063] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0064] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0065] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A message processing method applied to a distributed cluster system, the system comprising an upper-level domain, a lower-level domain and a cache middleware, the upper-level domain interacts with at least one upper-level platform, the lower-level domain interacts with at least one lower-level device, the cache middleware interacts with the upper-level domain and the lower-level domain, characterized in that: The method comprises: Obtaining a SIP request message sent by the upper-level platform through the upper-level domain, and sending the SIP request message to the lower-level domain; Forwarding the SIP request message to a corresponding lower-level device through the lower-level domain, and the lower-level device generating a first response message based on the SIP request message; Storing key information of the first response message through the cache middleware; The key information corresponding to the SIP request message is queried in the cache middleware through the upper domain, and the key information is assembled to generate a second response message to the SIP request message.
2. The message processing method applied to a distributed cluster system according to claim 1, characterized in that: The forwarding of the SIP request message to the corresponding lower-level device through the lower-level domain includes: The method comprises the steps of: obtaining a first request header of the SIP request message through the lower-level domain; parsing the first request header to extract first target information of the SIP request message; obtaining second target information of the lower-level device, replacing the first target information with the second target information, and forwarding the replaced SIP request message to the corresponding lower-level device.
3. The message processing method applied to a distributed cluster system according to claim 1, characterized in that: After the lower-level device generates a first response message based on the SIP request message, the method further includes: Obtain the second request header of the first response message through the lower-level domain; parse the second request header to extract the second target information of the first response message; obtain the first target information of the upper-level platform, replace the second target information of the second request header with the first target information, and send the replaced second request header to the cache middleware; the key information includes the replaced second request header.
4. The message processing method applied to a distributed cluster system according to claim 3, characterized in that: The method further comprises: The replaced second request header corresponding to the SIP request message is queried in the cache middleware through the upper domain, and the replaced second request header is extracted and assembled to generate a second response message to the SIP request message.
5. The message processing method applied to a distributed cluster system according to claim 4, characterized in that: The method further comprises: The second response message is sent to the corresponding upper-level platform through the upper-level domain using the SipProvider interface.
6. The message processing method applied to a distributed cluster system according to claim 1, characterized in that: The method further comprises: The SIP request message sent by the upper-level platform is obtained through the upper-level domain, and the SIP request message is sent to the lower-level domain using the SipProvider interface.
7. A distributed cluster system, characterized in that: The system includes an upper-level domain, a lower-level domain, and a cache middleware, wherein the upper-level domain communicates and interacts with at least one upper-level platform, the lower-level domain communicates and interacts with at least one lower-level device, and the cache middleware communicates and interacts with the upper-level domain and the lower-level domain. The upper domain is used to obtain the SIP request message sent by the upper platform, and send the SIP request message to the lower domain; The lower-level domain is used to forward the SIP request message to a corresponding lower-level device, and the lower-level device generates a first response message based on the SIP request message; The cache middleware is used to store key information of the first response message; The upper domain is used to query the key information corresponding to the SIP request message in the cache middleware, and assemble the key information to generate a second response message for the SIP request message.
8. The distributed cluster system according to claim 7, characterized in that: The lower-level domain is also used to obtain a first request header of the SIP request message; parse the first request header to extract first target information of the SIP request message; Acquire the second target information of the lower-level device, replace the first target information with the second target information, and forward the replaced SIP request message to the corresponding lower-level device.
9. The distributed cluster system according to claim 7, characterized in that: The lower-level domain is also used to obtain a second request header of the first response message; parse the second request header to extract second target information of the first response message; The first target information of the upper-level platform is obtained, the second target information of the second request header is replaced with the first target information, and the replaced second request header is sent to the cache middleware; the key information includes the replaced second request header.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Data processing method and device
CN112995239A
Message processing method, server, equipment, system and storage medium
CN113138862A
Data synchronization method and device, electronic equipment and storage medium
CN114363361A
Service request processing method and device, electronic equipment and storage medium
CN114629883A
Data interaction method and device and storage medium
CN116095187A