Service process-based message interaction method, device, equipment and storage medium

By loading the SIP signaling library and generating SIP user agent instances in the codec service process, the problem that multi-process codec service is difficult to quickly repair faults and maintenance is solved, and the precise positioning of multimedia communication and fault positioning is achieved, and fault repair efficiency is improved.

CN115695160BActive Publication Date: 2025-05-13BEIJING FEIXUN DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211327349.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-27
Publication Date
2025-05-13
Estimated Expiration
2042-10-27

AI Technical Summary

Technical Problem

Multi-process codec services are difficult to quickly repair and maintain faults, and fault location is inaccurate, which affects fault repair efficiency.

Method used

By loading the session initiation protocol SIP signaling library in the same codec service process, generating SIP user agent instances, and interacting with the multimedia interaction terminal based on these instances, multimedia communication between multiple service instances and clients is realized.

Benefits of technology

Multimedia communication between multiple service instances in the codec service module and the client is realized, which simplifies the fault location and repair process, improves the fault repair efficiency, and facilitates the rapid maintenance of codec service.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115695160B_ABST
    Figure CN115695160B_ABST
Patent Text Reader

Abstract

The present invention discloses a message interaction method, device, equipment and storage medium based on a service process. The method comprises: loading a session initiation protocol SIP signaling library based on a codec service process; generating a SIP user agent instance corresponding to each SIP user agent in a codec service module through the SIP signaling library; based on a codec service process, calling the corresponding SIP user agent instance according to the received interactive message to perform message interaction with a multimedia interactive terminal, so as to realize multimedia communication between multiple service instances in the codec service module and a client through the same process, so as to solve the problem that the codec service of multiple processes is not conducive to rapid fault repair and maintenance, realize fault location and improve fault repair efficiency, and facilitate the maintenance of codec services.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a message interaction method, device, equipment and storage medium based on a service process. Background Art

[0002] Generally, the codec service module can support multiple encoding service instances and multiple decoding service instances. When the codec service module communicates with the client through multimedia, such as Figure 1 As shown, an encoding task is executed based on an encoding service process to interact with the multimedia interactive terminal through on-demand messages; or a decoding task is executed based on a decoding service process to interact with the multimedia interactive terminal through on-demand messages.

[0003] When a multi-process encoding and decoding service fails, it is difficult to directly locate the failed process. Each process needs to be mounted on the fault repair module for debugging, which is not conducive to the rapid repair and maintenance of the encoding and decoding service. In addition, the encoding service and the decoding service communicate with each other based on the RTSP protocol, which is complicated to implement. Summary of the invention

[0004] The present invention provides a message interaction method, apparatus, device and storage medium based on service process, which realizes multimedia communication between multiple service instances in a codec service module and a client through the same process, so as to solve the problem that the codec service of multiple processes is not conducive to rapid repair of faults and maintenance, realizes rapid and accurate fault positioning and improves fault repair efficiency, and is conducive to the maintenance of codec services.

[0005] According to one aspect of the present invention, a message interaction method based on a service process is provided, which is applied to a codec service module, and the method includes:

[0006] Based on a codec service process, load the Session Initiation Protocol SIP signaling library;

[0007] Generate a SIP user agent instance corresponding to each SIP user agent in the codec service module through the SIP signaling library;

[0008] Based on a codec service process, the corresponding SIP user agent instance is called according to the received interactive message to perform message interaction with the multimedia interactive terminal.

[0009] Further, the generating of SIP user agent instances corresponding to each SIP user agent in the codec service module based on the SIP signaling library includes:

[0010] Read the configuration information of each SIP user agent in the codec service module through the SIP signaling library;

[0011] Generate a SIP user agent instance corresponding to the SIP user agent according to the configuration information;

[0012] The SIP user agent instance and the assigned instance identification number are stored in correspondence.

[0013] Furthermore, the SIP user agent in the encoding and decoding service module includes: an encoding service SIP user agent and / or a decoding service SIP user agent.

[0014] Furthermore, each SIP user agent in the codec service module can perform memory access based on the Session Initiation Protocol SIP.

[0015] Further, the codec service process includes: at least two codec service threads; accordingly, based on one codec service process, calling a corresponding SIP user agent instance according to a received interactive message to perform message interaction with the multimedia interactive terminal includes:

[0016] Based on each codec service thread in a codec service process, the corresponding SIP user agent instance is called according to the received interaction message to perform message interaction with the multimedia interaction terminal respectively.

[0017] Furthermore, the interactive message includes: a login message, a registration message or an on-demand message.

[0018] According to another aspect of the present invention, a message interaction device based on a service process is provided, comprising:

[0019] A loading module is used to load a Session Initiation Protocol SIP signaling library based on a codec service process;

[0020] SIP signaling library, used to generate SIP user agent instances corresponding to each SIP user agent in the codec service module;

[0021] The interaction module is used to call the corresponding SIP user agent instance to perform message interaction with the multimedia interaction terminal based on a codec service process according to the received interaction message.

[0022] Furthermore, the SIP signaling library includes:

[0023] A reading unit, used to read the configuration information of each SIP user agent in the codec service module;

[0024] An instance generating unit, configured to generate a SIP user agent instance corresponding to the SIP user agent according to the configuration information;

[0025] The storage unit is used to store the SIP user agent instance and the allocated instance identification number in correspondence.

[0026] According to another aspect of the present invention, a terminal device is provided, the terminal device comprising:

[0027] at least one processor; and

[0028] a memory communicatively connected to the at least one processor; wherein,

[0029] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the message interaction method based on the service process described in any embodiment of the present invention.

[0030] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the message interaction method based on the service process described in any embodiment of the present invention when executed.

[0031] The present invention discloses a message interaction method, device, equipment and storage medium based on a service process. The method comprises: based on a codec service process, loading a session initiation protocol SIP signaling library; generating a SIP user agent instance corresponding to each SIP user agent in a codec service module through the SIP signaling library; based on a codec service process, calling the corresponding SIP user agent instance according to the received interactive message to perform message interaction with a multimedia interactive terminal. The method calls the SIP user agent instance corresponding to the interactive message based on multiple threads of the same codec service process to realize multimedia communication between multiple service instances in the codec service module and the client. If a fault occurs during the message interaction process, the codec service process can be mounted on a fault repair module for debugging, and the thread where the fault occurs can be accurately located, thereby solving the problem that the codec service of multiple processes cannot accurately locate and debug the faulty process, which is not conducive to rapid fault repair and maintenance, and achieves the beneficial effects of accurately locating the fault and improving the fault repair efficiency, which is conducive to maintaining the codec service.

[0032] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0034] Figure 1 It is a schematic diagram of multimedia communication between a coding and decoding service module and a client in the prior art;

[0035] Figure 2 is a flowchart of a message interaction method based on a service process provided according to Embodiment 1 of the present invention;

[0036] Figure 3 is a flow chart of a message interaction method based on a service process provided according to Embodiment 2 of the present invention;

[0037] Figure 4 It is a schematic diagram of the interaction of multiple SIP user agents in the codec service module;

[0038] Figure 5 is a schematic diagram of a message interaction method based on a service process provided by an embodiment of the present invention;

[0039] Figure 6 2 is a schematic diagram of a message interaction device based on a service process according to a third embodiment of the present invention;

[0040] Figure 7 It is a structural diagram of a terminal device for implementing the service process-based message interaction method of an embodiment of the present invention. DETAILED DESCRIPTION

[0041] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0042] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0043] Embodiment 1

[0044] Figure 2 A flowchart of a message interaction method based on a service process is provided for the first embodiment of the present invention. This embodiment is applicable to the situation where a process interacts with a network server or client. The method can be executed by a message interaction device based on a service process. The message interaction device based on a service process can be implemented in the form of hardware and / or software. The message interaction device based on a service process can be configured in a terminal device. Figure 2 As shown, the method includes:

[0045] S110: Based on a codec service process, load a Session Initiation Protocol SIP signaling library.

[0046] In this embodiment, the codec service process is a sequentially executed process that can provide encoding services and decoding services. The codec service process may include multiple codec service threads, and multiple codec service threads can share data. When the codec service process performs encoding or decoding tasks, the codec service process breaks down the tasks and schedules the codec service threads to perform each refined task. When the codec service process performs encoding or decoding tasks, the codec service process breaks down the tasks and schedules the codec service threads to perform each refined task. The process is the smallest unit for resource allocation in the system and has an independent address space, but it consumes more resources and has poor efficiency when switching; threads are just different execution paths in a process and do not have a separate address space, which improves the ability of the codec server to provide services to a certain extent.

[0047] The Session Initiation Protocol (SIP) can be understood as a text-based application layer control protocol that can be used to initiate sessions, control the establishment and termination of multimedia sessions involving multiple participants, and dynamically adjust and modify session attributes, such as session bandwidth requirements, transmitted media types (voice, video, and data, etc.), media codec formats, support for multicast and unicast, etc. The SIP signaling library is a database that stores SIP signaling, which can be understood as SIP-based signaling.

[0048] Specifically, multiple encoding services or decoding services exist in one encoding and decoding process, and each encoding service or decoding service is a memory object. When the encoding and decoding module and the multimedia interaction terminal perform message interaction based on the SIP protocol, based on one encoding and decoding service process, the session initiation protocol SIP signaling library is loaded to obtain the SIP signaling corresponding to the message interaction in the SIP signaling library.

[0049] S120. Generate a SIP user agent instance corresponding to each SIP user agent in the codec service module through the SIP signaling library.

[0050] In this embodiment, the codec service module is a general term for all encoding service modules and decoding service modules. SIP User Agent (SIP UA) can also be called SIP terminal, which refers to a multimedia session terminal that supports the SIP protocol. In the codec service module, each encoding service module or decoding service module can be used as a SIP user agent in different memory spaces of the same codec process. SIP user agent instance refers to an instance of a message structure defined based on the configuration information of the SIP user agent.

[0051] SIP user agents include user agent clients (SIP User Agent Client, SIP UAC) and SIP user agent servers (SIP User Agent Server, SIP UAS). Unless otherwise specified, the SIP UA generally refers to the general term for the two, because in a call, a SIP terminal must both process SIP requests and initiate SIP requests. The SIP user agent client refers to the device that actively sends a session request during the SIP session establishment process. When the SIP user agent sends a session request to the called terminal, it acts as a user agent client. The user agent server refers to the device that receives a session request during the SIP session establishment process. When the SIP user agent receives a session request sent by the calling terminal, it acts as a user agent server.

[0052] Specifically, after loading the SIP signaling library, the configuration information of each SIP user agent in the codec service module is read through the SIP signaling library, and the SIP user agent corresponding to the SIP user agent is generated based on the configuration information. The SIP user agent instance may include: a SIP user agent login instance, a SIP user agent registration instance, and a SIP user agent on-demand instance.

[0053] S130: Based on a codec service process, a corresponding SIP user agent instance is called according to the received interaction message to perform message interaction with the multimedia interaction terminal.

[0054] In this embodiment, the interactive message refers to a message used for the codec service module to interact with the multimedia interactive terminal. The multimedia interactive terminal can be understood as a terminal that can perform multimedia interaction with the multimedia session terminal relative to the multimedia session terminal, such as a client or a network server. Optionally, the interactive message includes: a login message, a registration message, and a video-on-demand message.

[0055] Specifically, when receiving an interactive message, the codec service module calls the SIP user agent instance corresponding to the interactive message from the SIP signaling library based on a codec service process, and calls the corresponding interface of the multimedia interactive terminal according to the SIP user agent instance to realize message interaction with the multimedia interactive terminal.

[0056] Exemplarily, when receiving an on-demand message, the codec service module calls the SIP user agent on-demand instance corresponding to the on-demand message from the SIP signaling library based on a codec service process, and calls the on-demand interface of the multimedia interaction terminal according to the SIP user agent instance to realize on-demand message interaction with the multimedia interaction terminal.

[0057] The technical solution of the embodiment of the present invention is based on a codec service process, loading a session initiation protocol SIP signaling library; generating a SIP user agent instance corresponding to each SIP user agent in the codec service module through the SIP signaling library; based on a codec service process, calling the corresponding SIP user agent instance according to the received interactive message to perform message interaction with the multimedia interactive terminal; if a fault occurs during the message interaction process, the codec service process can be mounted on the fault repair module for debugging, and the thread where the fault occurs can be accurately located, thereby solving the problem that the codec service of multiple processes cannot accurately locate and debug the faulty process, which is not conducive to rapid fault repair and maintenance, and achieving the beneficial effects of accurately locating the fault and improving the fault repair efficiency, which is conducive to maintaining the codec service.

[0058] Embodiment 2

[0059] Figure 3 A flowchart of a message interaction method based on a service process is provided in Embodiment 2 of the present invention. This embodiment further refines step S120 in Embodiment 1. Step S120, generating a SIP user agent instance corresponding to each SIP user agent in the codec service module through the SIP signaling library, includes: reading configuration information of each SIP user agent in the codec service module through the SIP signaling library; generating a SIP user agent instance corresponding to the SIP user agent according to the configuration information; and storing the SIP user agent instance and the assigned instance identification number in correspondence.

[0060] like Figure 3 As shown, the method includes:

[0061] S210: Loading a Session Initiation Protocol SIP signaling library based on a codec service process.

[0062] S220 . Read the configuration information of each SIP user agent in the codec service module through the SIP signaling library.

[0063] The configuration information of the SIP user agent is information related to multimedia and messages transmitted by the SIP user agent, and may include, for example, multimedia format, multimedia encoding format, multimedia sampling rate, and the port and IP address of the media interaction end corresponding to the message interaction, etc. Exemplarily, the configuration information may be stored in the form of a configuration file, and the embodiment of the present invention does not limit the format of the configuration file.

[0064] Specifically, after the Session Initiation Protocol SIP signaling library is loaded, the configuration information of each SIP user agent in the codec service module can be read through the SIP signaling library.

[0065] S230: Generate a SIP user agent instance corresponding to the SIP user agent according to the configuration information.

[0066] Specifically, the SIP signaling library initializes the SIP protocol based on the read configuration information, determines parameters such as the IP, port, audio and video format, sampling rate, and packaging duration of the SIP protocol, and generates a SIP user agent instance.

[0067] S240: Store the SIP user agent instance and the allocated instance identification number in correspondence with each other.

[0068] The instance identification number is a unique number used to identify a SIP user agent instance, and may be composed of numbers, letters, words and / or special symbols, for example. The embodiment of the present invention does not limit the form of the instance identification number.

[0069] Specifically, an instance identification number may be allocated to the generated SIP user agent instance, and the SIP user agent instance and the instance identification number may be stored in a SIP signaling library in a corresponding manner.

[0070] Exemplarily, the generated SIP user agent instance is stored in std::map<int ID,SipAgent sipAgent> When the codec service process needs to perform tasks such as login, registration, and on-demand, it can obtain the corresponding SIP user agent instance through the instance identification number (ie, ID) to perform the corresponding task.

[0071] S250: Based on a codec service process, a corresponding SIP user agent instance is called according to the received interaction message to perform message interaction with the multimedia interaction terminal.

[0072] The technical solution of the embodiment of the present invention is to load a session initiation protocol SIP signaling library based on a codec service process; read the configuration information of each SIP user agent in the codec service module through the SIP signaling library; generate a SIP user agent instance corresponding to the SIP user agent according to the configuration information; store the SIP user agent instance and the assigned instance identification number in correspondence; based on a codec service process, call the corresponding SIP user agent instance according to the received interactive message, and perform message interaction with the multimedia interactive terminal. If a fault occurs during the message interaction process, the codec service process can be mounted on the fault repair module for debugging, and the thread where the fault occurs can be accurately located, thereby solving the problem that the codec service of multiple processes cannot accurately locate and debug the faulty process, which is not conducive to rapid fault repair and maintenance, and achieving the beneficial effects of accurately locating the fault, improving the fault repair efficiency, and facilitating the maintenance of the codec service.

[0073] Optionally, the SIP user agent in the encoding and decoding service module includes: an encoding service SIP user agent, and / or a decoding service SIP user agent; each SIP user agent in the encoding and decoding service module can perform memory access based on the Session Initiation Protocol SIP.

[0074] Specifically, in the encoding and decoding service, multiple encoding services or decoding services exist in one encoding and decoding process, and each encoding service or decoding service is a memory object. Each SIP user agent (encoding service SIP user agent or decoding service SIP user agent) is in the memory space of the same process, and SIP user agents can access memory based on the Session Initiation Protocol SIP to achieve resource sharing between SIP user agents; and no network communication is required for access, which can improve execution efficiency and reduce the probability of failure. For example, Figure 4 The schematic diagram of the interaction of multiple SIP user agents in the codec service module is as follows: Figure 4 As shown, there are multiple SIP user agents in the encoding and decoding service module, including an encoding service SIP user agent and / or a decoding service SIP user agent. Since multiple encoding service SIP user agents and decoding service SIP user agents are all in one service process, the SIP user agents can communicate with each other based on memory access.

[0075] Optionally, based on a codec service process, a corresponding SIP user agent instance is called according to a received interaction message to perform message interaction with the multimedia interaction terminal, including:

[0076] Based on each codec service thread in a codec service process, a corresponding SIP user agent instance is called according to the received interaction message.

[0077] In this embodiment, the codec service process includes: at least two codec service threads.

[0078] Specifically, when the codec service module receives an interactive message and executes an interactive task corresponding to the interactive message, it can assign the interactive message to a codec service thread based on a codec service process. The codec service thread calls the SIP user agent instance stored in the corresponding SIP signaling library based on the assigned interactive message to execute the message interactive task corresponding to the interactive message, thereby realizing message interaction between the codec service module and the multimedia interactive terminal.

[0079] In a specific embodiment, Figure 5 A schematic diagram of a message interaction method based on a service process provided by an embodiment of the present invention, such as Figure 5 As shown, there are multiple SIP user agents (including: encoding service SIP user agent or decoding service SIP user agent) in the codec service process, and the SIP user agents can perform memory access based on the session initiation protocol SIP. The codec service module uses the SIP protocol to interact with the multimedia interactive terminal (such as the network server or client) for login, registration or on-demand messages based on a codec service process. Exemplarily, the codec service module sends a first on-demand message to the multimedia interaction terminal based on the first codec service thread by using the session initiation protocol SIP through the coding service SIP user agent 1 in the codec service process; sends a second on-demand message to the multimedia interaction terminal based on the second codec service thread by using the session initiation protocol SIP through the coding service SIP user agent 2 in the codec service process; sends a third on-demand message to the multimedia interaction terminal based on the third codec service thread by using the session initiation protocol SIP through the coding service SIP user agent 3 in the codec service process; sends a fourth on-demand message to the multimedia interaction terminal based on the fourth codec service thread by using the session initiation protocol SIP through the coding service SIP user agent 4 in the codec service process; receives the fourth on-demand message sent by the multimedia interaction terminal based on the fourth codec service thread by using the session initiation protocol SIP through the decoding service SIP user agent 1 in the codec service process.

[0080] If a fault occurs during the message interaction process, the codec service process can be mounted on the fault repair module for debugging, and the faulty codec service thread can be accurately located, thereby solving the problem that the multi-process codec service cannot accurately locate and debug the faulty process, which is not conducive to rapid fault repair and maintenance. It achieves the beneficial effect of accurately locating faults, improving fault repair efficiency, and facilitating the maintenance of codec services.

[0081] Embodiment 3

[0082] Figure 6This is a schematic diagram of the structure of a message interaction device based on a service process provided by Embodiment 3 of the present invention. Figure 6 As shown, the device includes: a loading module 310 , a SIP signaling library 320 and an interaction module 330 .

[0083] Wherein, the loading module 310 is used to load the Session Initiation Protocol SIP signaling library based on a codec service process;

[0084] SIP signaling library 320, used to generate SIP user agent instances corresponding to each SIP user agent in the codec service module;

[0085] The interaction module 330 is used to call the corresponding SIP user agent instance to perform message interaction with the multimedia interaction terminal based on a codec service process according to the received interaction message.

[0086] Optionally, the SIP signaling library includes:

[0087] A reading unit, used to read the configuration information of each SIP user agent in the codec service module;

[0088] An instance generating unit, configured to generate a SIP user agent instance corresponding to the SIP user agent according to the configuration information;

[0089] The storage unit is used to store the SIP user agent instance and the allocated instance identification number in correspondence.

[0090] Optionally, the SIP user agent in the encoding and decoding service module includes: an encoding service SIP user agent and / or a decoding service SIP user agent.

[0091] Optionally, the SIP user agents in the codec service module can perform memory access based on the Session Initiation Protocol SIP.

[0092] Optionally, the codec service process includes: at least two codec service threads; accordingly, the interaction module 330 is specifically used to:

[0093] Based on each codec service thread in a codec service process, the corresponding SIP user agent instance is called according to the received interaction message to perform message interaction with the multimedia interaction terminal respectively.

[0094] Optionally, the interactive message includes: a login message, a registration message or an on-demand message.

[0095] The service process-based message interaction device provided in the embodiment of the present invention can execute the service process-based message interaction method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0096] Embodiment 3

[0097] Figure 7 A schematic diagram of a terminal device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device 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 processing, cellular phones, smart phones, 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 examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0098] like Figure 7 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

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

[0100] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 executes the various methods and processes described above, such as a message interaction method based on a service process.

[0101] In some embodiments, the message interaction method based on the service process can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the message interaction method based on the service process described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the message interaction method based on the service process by any other appropriate means (for example, by means of firmware).

[0102] Various implementations 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 chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0103] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

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

[0105] To provide interaction with a user, the systems and techniques described herein may 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 a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0106] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0107] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0108] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0109] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A message interaction method based on a service process, characterized in that: Applied to the encoding and decoding service module, the method includes: Based on a codec service process, a Session Initiation Protocol SIP signaling library is loaded; wherein the codec service process includes at least two codec service threads; Generate a SIP user agent instance corresponding to each SIP user agent in the codec service module through the SIP signaling library; Based on a codec service process, the corresponding SIP user agent instance is called according to the received interactive message to perform message interaction with the multimedia interactive terminal; The generating of the SIP user agent instance corresponding to each SIP user agent in the codec service module through the SIP signaling library includes: Read the configuration information of each SIP user agent in the codec service module through the SIP signaling library; Generate a SIP user agent instance corresponding to the SIP user agent according to the configuration information; The SIP user agent instance and the assigned instance identification number are stored in correspondence.

2. The method according to claim 1, characterized in that The SIP user agent in the encoding and decoding service module includes: an encoding service SIP user agent and / or a decoding service SIP user agent.

3. The method according to claim 2, characterized in that The SIP user agents in the codec service module can perform memory access based on the Session Initiation Protocol SIP.

4. The method according to claim 2, characterized in that: The method is based on a codec service process, and according to the received interactive message, calls a corresponding SIP user agent instance to perform message interaction with the multimedia interactive terminal, including: Based on each codec service thread in a codec service process, the corresponding SIP user agent instance is called according to the received interaction message to perform message interaction with the multimedia interaction terminal respectively.

5. The method according to claim 1, characterized in that The interactive message includes: a login message, a registration message or an on-demand message.

6. A message interaction device based on a service process, characterized in that: include: A loading module, used to load a Session Initiation Protocol SIP signaling library based on a codec service process; wherein the codec service process includes at least two codec service threads; SIP signaling library, used to generate SIP user agent instances corresponding to each SIP user agent in the codec service module; The interaction module is used to call the corresponding SIP user agent instance to perform message interaction with the multimedia interaction terminal based on a codec service process according to the received interaction message; The SIP signaling library includes: A reading unit, used to read the configuration information of each SIP user agent in the codec service module; An instance generating unit, configured to generate a SIP user agent instance corresponding to the SIP user agent according to the configuration information; The storage unit is used to store the SIP user agent instance and the allocated instance identification number in correspondence.

7. A terminal device, characterized in that: The terminal device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the service process-based message interaction method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the message interaction method based on a service process according to any one of claims 1 to 5 when executed.