CN115484237A - Signaling message processing method, device, equipment and medium - Google Patents

Signaling message processing method, device, equipment and medium Download PDF

Info

Publication number
CN115484237A
CN115484237A CN202211109215.8A CN202211109215A CN115484237A CN 115484237 A CN115484237 A CN 115484237A CN 202211109215 A CN202211109215 A CN 202211109215A CN 115484237 A CN115484237 A CN 115484237A
Authority
CN
China
Prior art keywords
signaling message
sip signaling
address identifier
client
target server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211109215.8A
Other languages
Chinese (zh)
Inventor
王凯
杨武
周禹
何伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Westone Information Industry Inc
Original Assignee
Chengdu Westone Information Industry Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Westone Information Industry Inc filed Critical Chengdu Westone Information Industry Inc
Priority to CN202211109215.8A priority Critical patent/CN115484237A/en
Publication of CN115484237A publication Critical patent/CN115484237A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M7/00Arrangements for interconnection between switching centres
    • H04M7/006Networks other than PSTN/ISDN providing telephone service, e.g. Voice over Internet Protocol (VoIP), including next generation networks with a packet-switched transport layer

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application discloses a method, a device, equipment and a medium for processing a signaling message, which relate to the technical field of instant voice communication and comprise the following steps: the method comprises the steps of obtaining an SIP signaling message sent by a client, and detecting whether the SIP signaling message carries an address identifier used for representing a target server; if not, calculating an address identifier based on the SIP signaling message, and sending a response message including the address identifier to the client so that the client can add the address identifier to the SIP signaling message; the method comprises the steps of obtaining SIP signaling information with address identification, extracting the address identification from the SIP signaling information, and then forwarding the SIP signaling information to a target server according to the address identification so as to process the SIP signaling information through the target server. By the technical scheme, all signaling messages sent by the client can be forwarded to the same target server for processing.

Description

Signaling message processing method, device, equipment and medium
Technical Field
The present invention relates to the field of instant voice communication technologies, and in particular, to a method, an apparatus, a device, and a medium for processing a signaling message.
Background
With the popularization of mobile terminals, more and more mobile internet users are available, and all signaling messages of the same call need to be correctly processed in order to adapt to the use scenes of network switching during the call establishment process and the call of the users. VoIP (Voice over Internet Protocol), which is a Voice call technology over the Internet, is one of the technologies. The VoIP network telephone enables a calling party to hear the voice signal through the steps of digitalizing, compressing and coding, encrypting and packaging, transmitting through a network, then decrypting and decoding, and restoring the digital signal into sound. SIP (Session initiation Protocol) is one of the core protocols of VoIP, and is widely used for controlling multimedia communication sessions, such as voice and video calls over IP networks. SIP is used to create, modify, terminate sessions consisting of one or more media streams and can be used for two-or multi-party sessions. In the signaling transmission phase, a TLS protocol (Transport Layer Security, i.e. secure Transport protocol) is used for protection, i.e. the SIP protocol works on a long connection channel established by the TLS protocol.
When the prior art maintains a long connection state of a user, one way is to share the state: the data is persisted to a database, and the shared database is accessed among members, but the design is complex, the interaction times are more, the delay is high, the cost is higher in the actual implementation process, the development difficulty is high, and the reliability of the system is not high; another way is to use a long connection server to use a fixed IP or domain name to ensure that the long connection of the user is connected to the same server every time, so that more IP or domain name resources are needed, and the client needs to be modified and is more complex.
In summary, how to forward all signaling messages sent by a client to the same server for processing without depending on middleware such as a database, a distributed cache, and the like is a problem to be solved at present.
Disclosure of Invention
In view of this, an object of the present invention is to provide a method, an apparatus, a device, and a medium for processing a signaling message, which can forward all signaling messages sent by a client to the same server for processing without relying on middleware such as a database and a distributed cache, so as to reduce cost and improve reliability of a system. The specific scheme is as follows:
in a first aspect, the present application discloses a method for processing a signaling message, including:
the method comprises the steps of obtaining an SIP signaling message sent by a client side, and detecting whether the SIP signaling message carries an address identifier used for representing a target server;
if not, calculating the address identifier based on the SIP signaling message, and sending a response message including the address identifier to the client, so that the client adds the address identifier to the SIP signaling message;
and acquiring the SIP signaling message carrying the address identifier, extracting the address identifier from the SIP signaling message, and forwarding the SIP signaling message to the target server according to the address identifier so as to process the SIP signaling message through the target server.
Optionally, after detecting whether the SIP signaling message carries an address identifier for characterizing a target server, the method further includes:
if so, forwarding the SIP signaling message to the target server according to the address identifier so as to process the SIP signaling message through the target server.
Optionally, the obtaining an SIP signaling message sent by the client, and detecting whether the SIP signaling message carries an address identifier for characterizing the target server includes:
acquiring a calling SIP signaling message sent by a calling client and a called SIP signaling message sent by a called client;
detecting whether the calling SIP signaling message and the called SIP signaling message carry address identifiers used for representing a target server or not;
correspondingly, if not, calculating the address identifier based on the SIP signaling message, including:
if the calling SIP signaling message and the called SIP signaling message do not carry the address identification of the target server, calculating the address identification based on the SIP signaling message.
Optionally, the calculating the address identifier based on the SIP signaling message includes:
and acquiring a calling client identifier and a called client identifier in the SIP signaling message, and calculating the address identifier by utilizing a Hash algorithm based on the calling user identifier and the called user identifier.
Optionally, the sending, to the client, a response message including the address identifier includes:
acquiring a To message header in the calling SIP signaling message, adding the address identifier To a tag parameter of the To message header To obtain first response information, and then sending the first response information To the primary transaction client;
and acquiring a From message header in the called SIP signaling message, adding the address identifier to a tag parameter of the From message header to obtain second response information, and then sending the second response information to the called client.
Optionally, the extracting the address identifier from the SIP signaling message includes:
and detecting a tag parameter in the SIP signaling message, and extracting the address identifier from the tag parameter.
Optionally, after calculating the address identifier based on the SIP signaling message, the method further includes:
detecting whether a target server corresponding to the address identifier is in a downtime state or an overload state;
and if so, screening out servers which are not in the downtime state and the overload state from the server cluster to serve as the new target server.
In a second aspect, the present application discloses a signaling message processing apparatus, including:
the system comprises an identification detection module, a target server and a server, wherein the identification detection module is used for acquiring an SIP signaling message sent by a client and detecting whether the SIP signaling message carries an address identification for representing the target server;
an identifier calculation module, configured to calculate the address identifier based on the SIP signaling message if the SIP signaling message is not received, and send a response message including the address identifier to the client, so that the client adds the address identifier to the SIP signaling message;
and the message forwarding module is used for acquiring the SIP signaling message carrying the address identifier, extracting the address identifier from the SIP signaling message, and forwarding the SIP signaling message to the target server according to the address identifier so as to process the SIP signaling message through the target server.
In a third aspect, the present application discloses an electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the steps of the signaling message processing method disclosed in the foregoing.
In a fourth aspect, the present application discloses a computer readable storage medium for storing a computer program; wherein the computer program realizes the steps of the signaling message processing method disclosed in the foregoing when being executed by a processor.
Therefore, the method and the device for detecting the SIP signaling message have the advantages that the SIP signaling message sent by the client is obtained, and whether the SIP signaling message carries an address identifier used for representing a target server or not is detected; if not, calculating the address identifier based on the SIP signaling message, and sending a response message including the address identifier to the client, so that the client adds the address identifier to the SIP signaling message; and acquiring the SIP signaling message carrying the address identifier, extracting the address identifier from the SIP signaling message, and forwarding the SIP signaling message to the target server according to the address identifier so as to process the SIP signaling message through the target server. Therefore, after the SIP signaling message sent by the client is obtained, whether the SIP signaling message carries the address identifier for representing the target server is detected, if not, the corresponding address identifier is calculated and added to the SIP signaling message, so that when the SIP signaling message is obtained subsequently, the address identifier carried in the SIP signaling message is extracted, and the SIP signaling message is forwarded to the target server based on the address identifier. Therefore, all signaling messages sent by the client can be forwarded to the same server for processing without depending on middleware such as a database, a distributed cache and the like, so that the cost is reduced and the reliability of the system is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic diagram of a system framework to which the signaling message processing method disclosed in the present application is applied;
fig. 2 is a flowchart of a signaling message processing method disclosed in the present application;
fig. 3 is a flowchart of a specific signaling message processing method disclosed in the present application;
fig. 4 is a flowchart of a specific signaling message processing method disclosed in the present application;
fig. 5 is a schematic diagram of replying a response message to a calling client according to the present disclosure;
fig. 6 is a schematic structural diagram of a signaling message processing apparatus disclosed in the present application;
fig. 7 is a block diagram of an electronic device disclosed in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present invention, and not all embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
When the prior art maintains a long connection state of a user, one way is to share the state: the data is persisted to a database, and the shared database is accessed among members, but the design is complex, the interaction times are more, the delay is high, the cost is higher in the actual implementation process, the development difficulty is high, and the reliability of the system is not high; another way is to use a long connection server to use a fixed IP or domain name to ensure that the long connection of the user is connected to the same server every time, so that more IP or domain name resources are needed, and the client needs to be modified and is more complex. Therefore, the embodiment of the application discloses a method, a device, equipment and a medium for processing signaling messages, which can forward all signaling messages sent by a client to the same server for processing without depending on middleware such as a database, a distributed cache and the like, so as to reduce the cost and improve the reliability of a system.
The system framework adopted by the present application may specifically refer to fig. 1, and may specifically include: the system comprises a VoIP client 01, an external network intervening firewall 02, an LVS load balancer 03 and a VoIP server 04. The VoIP client 01 comprises a calling client and a called client, the LVS load balancer 03 can support VoIP, and the VoIP server 04 is used for executing and acquiring SIP signaling messages sent by the clients and detecting whether the SIP signaling messages carry address identifiers used for representing target servers; if not, calculating the address identifier based on the SIP signaling message, and sending a response message including the address identifier to the client so that the client can add the address identifier to the SIP signaling message; and acquiring the SIP signaling message carrying the address identifier, extracting the address identifier from the SIP signaling message, and then forwarding the SIP signaling message to the target server according to the address identifier so as to process the SIP signaling message through the target server.
Referring to fig. 2, an embodiment of the present application discloses a signaling message processing method, where the method includes:
step S11: the method comprises the steps of obtaining SIP signaling messages sent by a client side, and detecting whether the SIP signaling messages carry address identifiers used for representing target servers.
In this embodiment, a current VoIP server in a server cluster acquires an SIP signaling message sent by an acquisition client, and detects whether the SIP signaling message carries an address identifier for representing a target server, where the client is specifically a VoIP user client.
Step S12: if not, calculating the address identifier based on the SIP signaling message, and sending a response message including the address identifier to the client, so that the client adds the address identifier to the SIP signaling message;
in this embodiment, if the SIP signaling message does not carry the address identifier for characterizing the target server, the address identifier of the target server is calculated based on the SIP signaling message, and a response message including the address identifier is replied or sent to the client, so that the client receives the response message and adds the address identifier to a subsequent SIP signaling message.
In another specific embodiment, after detecting whether the SIP signaling message carries an address identifier for characterizing a target server, the method further includes: if so, forwarding the SIP signaling message to the target server according to the address identifier so as to process the SIP signaling message through the target server. That is, if the SIP signaling message carries the address identifier for characterizing the target server, the SIP signaling message is directly forwarded to the target server, so that the SIP signaling message is processed by the target server.
It should be noted that, after calculating the address identifier based on the SIP signaling message, the method further includes: detecting whether a target server corresponding to the address identifier is in a downtime state or an overload state; if yes, the servers which are not in the downtime state and the overload state are screened out from the server cluster to serve as the new target servers. It can be understood that, after the address identifier is calculated, it is necessary to detect whether the target server corresponding to the address identifier is in a down state or an overload state, that is, it is necessary to ensure that the target server can normally operate, and if the target server is in the down state or the overload state, it indicates that the target server cannot normally operate, it is necessary to screen out a server that is not in the down state or the overload state from the server cluster as a new target server. When selecting a new target server, the selection may be performed randomly or according to a certain rule, for example, the selection may be performed sequentially according to the number of the server.
Step S13: and acquiring the SIP signaling message carrying the address identifier, extracting the address identifier from the SIP signaling message, and forwarding the SIP signaling message to the target server according to the address identifier so as to process the SIP signaling message through the target server.
In this embodiment, after the SIP signaling message carries the address identifier, the address identifier is extracted, and the SIP signaling message is forwarded to the target server corresponding to the address identifier, so that the target server processes the SIP signaling message. It will be appreciated that in one embodiment, if the current VoIP server is the target server corresponding to the address identifier, then no further forwarding is necessary.
Therefore, the method and the device for detecting the address of the target server acquire the SIP signaling message sent by the client and detect whether the SIP signaling message carries the address identification for representing the target server or not; if not, calculating the address identifier based on the SIP signaling message, and sending a response message including the address identifier to the client so that the client can add the address identifier to the SIP signaling message; and acquiring the SIP signaling message carrying the address identifier, extracting the address identifier from the SIP signaling message, and forwarding the SIP signaling message to the target server according to the address identifier so as to process the SIP signaling message through the target server. Therefore, according to the method and the device, after the SIP signaling message sent by the client is obtained, whether the SIP signaling message carries the address identifier for representing the target server is detected, if not, the corresponding address identifier is calculated and added to the SIP signaling message, so that when the SIP signaling message is obtained subsequently, the address identifier carried in the SIP signaling message is extracted, and the SIP signaling message is forwarded to the target server based on the address identifier. Therefore, all signaling messages sent by the client can be forwarded to the same server for processing without depending on middleware such as a database, a distributed cache and the like, so that the cost is reduced and the reliability of the system is improved.
Referring to fig. 3 and fig. 4, the embodiment of the present application discloses a specific signaling message processing method, and compared with the previous embodiment, the embodiment further describes and optimizes the technical solution. The method specifically comprises the following steps:
step S21: and acquiring a calling SIP signaling message sent by the calling client and a called SIP signaling message sent by the called client.
In this embodiment, a calling SIP signaling message sent by a calling client and a called SIP signaling message sent by a called client need to be obtained, where it is noted that a user client initiating a VoIP call is the calling client, a user client receiving the VoIP call is the called client, that is, a user who makes a call is the calling client, and a user who receives the call is the called client.
Step S22: and detecting whether the calling SIP signaling message and the called SIP signaling message carry address identifiers used for representing target servers.
In this embodiment, whether the address identifier used for characterizing the target server is carried in the calling SIP signaling message and the called SIP signaling message is detected respectively. Specifically, whether the To-tag parameter in the calling SIP signaling message contains the address identifier of the target server or not and whether the From-tag parameter in the called SIP signaling message contains the address identifier of the target server or not are detected.
Step S23: if the address identifier of the target server is not carried in the calling SIP signaling message and the called SIP signaling message, calculating the address identifier based on the SIP signaling message.
In this embodiment, if neither the calling SIP signaling message nor the called SIP signaling message carries the address identifier of the destination server, the address identifier is calculated based on the SIP signaling message, and correspondingly, if any one of the calling SIP signaling message or the called SIP signaling message carries the address identifier of the destination server, the SIP signaling message is forwarded to the destination server according to the address identifier.
The calculating the address identifier based on the SIP signaling message includes: and acquiring a calling client identifier and a called client identifier in the SIP signaling message, and calculating the address identifier by utilizing a Hash algorithm based on the calling user identifier and the called user identifier. It can be understood that, in this embodiment, the address identifier is calculated by using a hash algorithm, specifically, to obtain the calling client identifier and the called client identifier in the SIP signaling message, where the identifier may specifically be a user ID, then a smaller ID value of the user IDs corresponding to the calling client and the called client is selected, and the hash algorithm is used to perform processing to obtain an index (index) value, and a server corresponding to the index value is used as a target server to obtain the address identifier of the target server, specifically, an IP address.
Step S24: sending a response message including the address identifier to the client so that the client adds the address identifier to the SIP signaling message.
In this embodiment, the sending the response message including the address identifier to the client may specifically include: acquiring a To message header in the calling SIP signaling message, adding the address identifier into a tag parameter of the To message header To obtain first response information, and then sending the first response information To the host exchange client; and acquiring a From message header in the called SIP signaling message, adding the address identifier into a tag parameter of the From message header to obtain second response information, and then sending the second response information to the called client. It will be appreciated that the address identifier needs To be encoded into the tag parameter of the To header in the originating SIP signaling message and the tag parameter of the From header in the terminating SIP signaling message, and that the SIP protocol specifies that the client must carry the tag parameter in the message, so that the server checks the tag parameter in the header To forward the message To the destination server. Fig. 5 is a schematic diagram of replying a response message To a calling client according To the present disclosure, and an italic part in fig. 5 is an address identifier of a target server added To a tag parameter of a To message header in a calling SIP signaling message.
Step S25: and acquiring the SIP signaling message carrying the address identifier, detecting a tag parameter in the SIP signaling message, extracting the address identifier from the tag parameter, and forwarding the SIP signaling message to the target server according to the address identifier so as to process the SIP signaling message through the target server.
In this embodiment, since the SIP signaling message carries the tag parameter and the address identifier is added to the tag parameter, the SIP signaling message can be forwarded to the target server according to the address identifier by detecting the tag parameter in the SIP signaling message and extracting the address identifier from the tag parameter.
Therefore, the address of the target server can be coded into the corresponding tag parameter in the SIP signaling message on the premise of meeting the standard and ensuring the compatibility. Then when processing the subsequent SIP signaling message, extracting the corresponding address identifier from the tag parameter of the SIP signaling message, and forwarding the SIP signaling message to the target server. Therefore, all signaling messages sent by the client can be forwarded to the same server for processing without depending on middleware such as a database, a distributed cache and the like, so that the cost is reduced, the reliability of the system is improved, the delay is low, and the performance is good.
Referring to fig. 6, an embodiment of the present application discloses a signaling message processing apparatus, including:
the identification detection module 11 is configured to acquire an SIP signaling message sent by a client, and detect whether the SIP signaling message carries an address identification for representing a target server;
an identifier calculating module 12, configured to calculate the address identifier based on the SIP signaling message if the SIP signaling message is not received, and send a response message including the address identifier to the client, so that the client adds the address identifier to the SIP signaling message;
a message forwarding module 13, configured to acquire the SIP signaling message carrying the address identifier, extract the address identifier from the SIP signaling message, and forward the SIP signaling message to the target server according to the address identifier, so as to process the SIP signaling message through the target server.
Therefore, the method and the device for detecting the SIP signaling message have the advantages that the SIP signaling message sent by the client is obtained, and whether the SIP signaling message carries an address identifier used for representing a target server or not is detected; if not, calculating the address identifier based on the SIP signaling message, and sending a response message including the address identifier to the client so that the client can add the address identifier to the SIP signaling message; and acquiring the SIP signaling message carrying the address identifier, extracting the address identifier from the SIP signaling message, and forwarding the SIP signaling message to the target server according to the address identifier so as to process the SIP signaling message through the target server. Therefore, after the SIP signaling message sent by the client is obtained, whether the SIP signaling message carries the address identifier for representing the target server is detected, if not, the corresponding address identifier is calculated and added to the SIP signaling message, so that when the SIP signaling message is obtained subsequently, the address identifier carried in the SIP signaling message is extracted, and the SIP signaling message is forwarded to the target server based on the address identifier. Therefore, all signaling messages sent by the client can be forwarded to the same server for processing without depending on middleware such as a database, a distributed cache and the like, so that the cost is reduced and the reliability of the system is improved.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The method specifically comprises the following steps: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. Wherein, the memory 22 is used for storing a computer program, and the computer program is loaded and executed by the processor 21 to implement the relevant steps in the signaling message processing method executed by the electronic device disclosed in any of the foregoing embodiments.
In this embodiment, the power supply 23 is configured to provide an operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and a communication protocol followed by the communication interface is any communication protocol applicable to the technical solution of the present application, and is not specifically limited herein; the input/output interface 25 is configured to acquire external input data or output data to the outside, and a specific interface type thereof may be selected according to specific application requirements, which is not specifically limited herein.
The processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 21 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 21 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, the processor 21 may further include an AI (Artificial Intelligence) processor for processing a calculation operation related to machine learning.
In addition, the storage 22 is used as a carrier for storing resources, and may be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., the resources stored thereon include an operating system 221, a computer program 222, data 223, etc., and the storage mode may be a transient storage mode or a permanent storage mode.
The operating system 221 is used for managing and controlling each hardware device on the electronic device 20 and the computer program 222, so as to implement the operation and processing of the mass data 223 in the memory 22 by the processor 21, which may be Windows, unix, linux, or the like. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the signaling message processing method disclosed in any of the foregoing embodiments and executed by the electronic device 20. The data 223 may include data received by the electronic device and transmitted from an external device, or may include data collected by the input/output interface 25 itself.
Further, an embodiment of the present application also discloses a computer-readable storage medium, in which a computer program is stored, and when the computer program is loaded and executed by a processor, the method steps executed in the signaling message processing process disclosed in any of the foregoing embodiments are implemented.
In the present specification, the embodiments are described in a progressive manner, and each embodiment focuses on differences from other embodiments, and the same or similar parts between the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it should also be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The signaling message processing method, apparatus, device and storage medium provided by the present invention are described in detail above, and a specific example is applied in the present document to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for processing signaling messages, comprising:
the method comprises the steps of obtaining an SIP signaling message sent by a client side, and detecting whether the SIP signaling message carries an address identifier used for representing a target server or not;
if not, calculating the address identifier based on the SIP signaling message, and sending a response message including the address identifier to the client so that the client can add the address identifier to the SIP signaling message;
and acquiring the SIP signaling message carrying the address identifier, extracting the address identifier from the SIP signaling message, and forwarding the SIP signaling message to the target server according to the address identifier so as to process the SIP signaling message through the target server.
2. The method for processing signaling message according to claim 1, wherein after detecting whether the SIP signaling message carries an address identifier for characterizing a target server, the method further comprises:
if so, forwarding the SIP signaling message to the target server according to the address identifier so as to process the SIP signaling message through the target server.
3. The method for processing signaling message according to claim 1, wherein the obtaining the SIP signaling message sent by the client, and detecting whether the SIP signaling message carries an address identifier for characterizing a target server, comprises:
acquiring a calling SIP signaling message sent by a calling client and a called SIP signaling message sent by a called client;
detecting whether the calling SIP signaling message and the called SIP signaling message carry address identifiers used for representing target servers or not;
correspondingly, if not, calculating the address identifier based on the SIP signaling message, including:
if the calling SIP signaling message and the called SIP signaling message do not carry the address identification of the target server, calculating the address identification based on the SIP signaling message.
4. The method of claim 3, wherein said calculating the address identifier based on the SIP signaling message comprises:
and acquiring a calling client identification and a called client identification in the SIP signaling message, and calculating the address identification by using a hash algorithm based on the calling user identification and the called user identification.
5. The method according to claim 3, wherein said sending a response message including the address identifier to the client comprises:
acquiring a To message header in the calling SIP signaling message, adding the address identifier To a tag parameter of the To message header To obtain first response information, and then sending the first response information To the primary transaction client;
and acquiring a From message header in the called SIP signaling message, adding the address identifier to a tag parameter of the From message header to obtain second response information, and then sending the second response information to the called client.
6. The method of claim 1, wherein the extracting the address identifier from the SIP signaling message comprises:
detecting a tag parameter in the SIP signaling message, and extracting the address identifier from the tag parameter.
7. The signaling message processing method according to any of claims 1 to 6, wherein after said calculating the address identifier based on the SIP signaling message, further comprising:
detecting whether a target server corresponding to the address identifier is in a downtime state or an overload state;
and if so, screening out servers which are not in the downtime state and the overload state from the server cluster to serve as the new target server.
8. A signaling message processing apparatus, comprising:
the system comprises an identification detection module, a target server and a service module, wherein the identification detection module is used for acquiring an SIP signaling message sent by a client and detecting whether the SIP signaling message carries an address identification used for representing the target server;
the identification calculation module is used for calculating the address identification based on the SIP signaling message and sending a response message comprising the address identification to the client if the client does not receive the SIP signaling message, so that the client can add the address identification to the SIP signaling message;
and the message forwarding module is used for acquiring the SIP signaling message carrying the address identifier, extracting the address identifier from the SIP signaling message, and forwarding the SIP signaling message to the target server according to the address identifier so as to process the SIP signaling message through the target server.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing said computer program to implement the steps of the signaling message processing method according to any of claims 1 to 7.
10. A computer-readable storage medium for storing a computer program; wherein the computer program when executed by a processor implements the steps of the signaling message processing method according to any of claims 1 to 7.
CN202211109215.8A 2022-09-13 2022-09-13 Signaling message processing method, device, equipment and medium Pending CN115484237A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211109215.8A CN115484237A (en) 2022-09-13 2022-09-13 Signaling message processing method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211109215.8A CN115484237A (en) 2022-09-13 2022-09-13 Signaling message processing method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN115484237A true CN115484237A (en) 2022-12-16

Family

ID=84424211

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211109215.8A Pending CN115484237A (en) 2022-09-13 2022-09-13 Signaling message processing method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN115484237A (en)

Similar Documents

Publication Publication Date Title
US11489961B2 (en) System and method for determining and communicating presence information
EP2862342B1 (en) Notification of communication events
EP2852106B1 (en) Real time communication method, terminal device, real time communication server and system
US7505574B2 (en) Method and system for providing an improved communications channel for telephone conference initiation and management
US20170034149A1 (en) Intelligent Communications Method, Terminal, and System
CN104813655A (en) Method to preview caller in a video conference session
WO2023138189A1 (en) Data processing method and apparatus, and device and medium
EP4262320A1 (en) Call processing system and call processing method
CN108696899A (en) Sip message transmits and method of reseptance and transmission and reception device
EP2974159B1 (en) Method, device and system for voice communication
CN101606360B (en) Unique compressed call identifiers
EP2862343B1 (en) Notification of communication events
CN113535432A (en) Data distribution method and device, electronic equipment and storage medium
US10594859B2 (en) Communication method, apparatus, and system
CN102598733A (en) Discovering and using phone number location information
US8804936B2 (en) Shared media access for real time first and third party media control
CN109120578B (en) Method and device for realizing link connection processing
CN115484237A (en) Signaling message processing method, device, equipment and medium
CN115617611A (en) Generation method and device of signaling flow chart, electronic equipment and storage medium
US20200336515A1 (en) Establishing And Managing Connections For Real Time Communications
US20140295806A1 (en) Encoded identifier based network
JP4723676B2 (en) COMMUNICATION METHOD, SERVER, AND PROGRAM FOR SESSION STATUS NOTIFICATION
CN115361364B (en) Data transmission method of communication protocol based on WebRTC
JP5983602B2 (en) Call linkage system, home control device, call linkage method
US20230117615A1 (en) Api driven subscriber ims registration status changes and ims routing steering

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination