CN111107134B - Connection control method and device, electronic equipment and readable storage medium - Google Patents
Connection control method and device, electronic equipment and readable storage medium Download PDFInfo
- Publication number
- CN111107134B CN111107134B CN201911207694.5A CN201911207694A CN111107134B CN 111107134 B CN111107134 B CN 111107134B CN 201911207694 A CN201911207694 A CN 201911207694A CN 111107134 B CN111107134 B CN 111107134B
- Authority
- CN
- China
- Prior art keywords
- mrcp
- proxy server
- connection
- server
- response message
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
- H04L65/1101—Session protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/562—Brokering proxy services
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Multimedia (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the disclosure provides a connection control method, a connection control device, an electronic device and a readable storage medium, wherein the method comprises the following steps: forwarding an initialization message from the MRCP client to the MRCP server; receiving a response message returned by the MRCP server aiming at the initialization message, wherein the response message carries the first connection parameters of the MRCP server; modifying the first connection parameter in the response message into a second connection parameter corresponding to the second proxy server; forwarding the modified response message to the MRCP client so that the MRCP client establishes a control session connection with the second proxy server according to the second connection parameter in the modified response message; and sending the first connection parameters to the second proxy server so that the second proxy server establishes the control session connection with the MRCP server according to the first connection parameters. The embodiment of the disclosure can improve the network security of the MRCP server.
Description
Technical Field
Embodiments of the present disclosure relate to the field of network technologies, and in particular, to a connection control method and apparatus, an electronic device, and a readable storage medium.
Background
The MRCP (Media Resource Control Protocol) is a communication Protocol based on TCP/IP (Transmission Control Protocol/Internet Protocol), and is used for a client to request a Media Resource server to provide various Media Resource services, including voice recognition, recording, and voiceprint recognition.
The MRCP Protocol itself is not independent, and it depends not only on the TCP/IP Protocol but also on the SIP (Session Initiation Protocol), SDP (Session description Protocol), RTP (Real-time Transport Protocol), and other protocols.
In the process of establishing a control session connection between the MRCP client and the MRCP server, the MRCP server sends its own IP (Internet Protocol address) and port number to the MRCP client through an SIP session, and the MRCP client establishes a control session connection with the MRCP server according to the IP address and port number of the MRCP server. However, this procedure causes the network topology information of the MRCP server to be leaked, which brings a security risk of network attack to the MRCP server.
Disclosure of Invention
Embodiments of the present disclosure provide a connection control method and apparatus, an electronic device, and a readable storage medium, so as to improve network security of an MRCP server.
According to a first aspect of embodiments of the present disclosure, there is provided a connection control method applied to a first proxy server, the method including:
transmitting an initialization message from an MRCP client to a media resource control protocol MRCP server;
receiving a response message returned by the MRCP server aiming at the initialization message, wherein the response message carries the first connection parameters of the MRCP server;
modifying the first connection parameter in the response message into a second connection parameter corresponding to a second proxy server;
forwarding the modified response message to the MRCP client, so that the MRCP client establishes a control session connection with the second proxy server according to the second connection parameter in the modified response message;
and sending the first connection parameters to the second proxy server so that the second proxy server establishes a control session connection with the MRCP server according to the first connection parameters.
According to a second aspect of the embodiments of the present disclosure, there is provided a connection control method applied to an MRCP client, the method including:
receiving a modified response message sent by a first proxy server, wherein the modified response message responds to an initialization message sent by the MRCP client to the MRCP server, and a first connection parameter of the MRCP server contained in the modified response message is replaced by a second connection parameter corresponding to a second proxy server through the first proxy server;
and establishing a control session connection with the second proxy server according to the second connection parameter in the modified response message.
According to a third aspect of embodiments of the present disclosure, there is provided a first proxy server comprising:
the first forwarding module is used for forwarding the initialization message from the MRCP client to the media resource control protocol MRCP server;
a first receiving module, configured to receive a response message returned by the MRCP server for the initialization message, where the response message carries a first connection parameter of the MRCP server;
a first modification module, configured to modify the first connection parameter in the response message to a second connection parameter corresponding to a second proxy server;
a second forwarding module, configured to forward the modified response message to the MRCP client, so that the MRCP client establishes a control session connection with the second proxy server according to a second connection parameter in the modified response message;
a first sending module, configured to send the first connection parameter to the second proxy server, so that the second proxy server establishes a control session connection with the MRCP server according to the first connection parameter.
According to a fourth aspect of embodiments of the present disclosure, there is provided an MRCP client, including:
a message receiving module, configured to receive a modified response message sent by a first proxy server, where the modified response message is in response to an initialization message sent by the MRCP client to the MRCP server, and a first connection parameter of the MRCP server included in the modified response message is replaced with a second connection parameter corresponding to a second proxy server through the first proxy server;
and the first establishing module is used for establishing control session connection with the second proxy server according to the second connection parameter in the modified response message.
According to a fifth aspect of embodiments of the present disclosure, there is provided an electronic apparatus including:
processor, memory and computer program stored on the memory and executable on the processor, characterized in that the processor implements the aforementioned connection control method when executing the program.
According to a fourth aspect of embodiments of the present disclosure, there is provided a readable storage medium, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to perform the aforementioned connection control method.
The embodiment of the disclosure provides a connection control method, a connection control device, an electronic device and a readable storage medium, wherein the method comprises the following steps:
transmitting an initialization message from an MRCP client to a media resource control protocol MRCP server;
receiving a response message returned by the MRCP server aiming at the initialization message, wherein the response message carries the first connection parameters of the MRCP server;
modifying the first connection parameter in the response message into a second connection parameter corresponding to a second proxy server;
forwarding the modified response message to the MRCP client, so that the MRCP client establishes a control session connection with the second proxy server according to the second connection parameter in the modified response message;
and sending the first connection parameters to the second proxy server so that the second proxy server establishes a control session connection with the MRCP server according to the first connection parameters.
In the embodiment of the present disclosure, the MRCP client and the MRCP server establish a control session connection through the second proxy server, and in the process of establishing the control session connection, the MRCP server does not need to expose internal network topology information (such as a TCP resource control channel IP address) of the MRCP network, which can improve network security of the MRCP server, increase system stability, and reduce the probability of the MRCP server being attacked.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings needed to be used in the description of the embodiments of the present disclosure will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
FIG. 1 shows a flow chart of steps of a connection control method in one embodiment of the present disclosure;
fig. 2 is a system configuration diagram to which the connection control method is applied in one embodiment of the present disclosure;
FIG. 3 is a flow chart illustrating the steps of a connection control method in another embodiment of the present disclosure
FIG. 4 illustrates a block diagram of a first proxy server in one embodiment of the present disclosure;
FIG. 5 illustrates a block diagram of an MRCP client in one embodiment of the present disclosure;
fig. 6 shows a block diagram of an electronic device provided by an embodiment of the present disclosure.
Detailed Description
Technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is apparent that the described embodiments are some, but not all, of the embodiments of the present disclosure. All other embodiments, which can be obtained by a person skilled in the art without making creative efforts based on the embodiments of the present disclosure, belong to the protection scope of the embodiments of the present disclosure.
Example one
Referring to fig. 1, there is shown a flowchart illustrating steps of a connection control method in one embodiment of the present disclosure, the method being applied to a first proxy server, the method including:
102, receiving a response message returned by the MRCP server for the initialization message, wherein the response message carries a first connection parameter of the MRCP server;
and 105, sending the first connection parameter to the second proxy server, so that the second proxy server establishes a control session connection with the MRCP server according to the first connection parameter.
Currently, there are two versions of MRCP Protocol, MRCPv1 and MRCPv2, MRCPv2 uses SIP as a control Protocol, and MRCPv1 uses RTSP (Real Time Streaming Protocol) as a control Protocol. In the embodiment of the present disclosure, MRCPv2 is taken as an example for explanation, and MRCP in the embodiment of the present disclosure refers to MRCPv 2.
MRCP relies on SIP to establish and manage sessions between MRCP clients and MRCP servers, and since MRCP does not guarantee the reliability of transmission, a TCP-based control session connection needs to be established between MRCP clients and MRCP servers to achieve guaranteed delivery and correct ordering of control messages between MRCP clients and MRCP servers.
In order to improve the network security of the MRCP server, the embodiment of the present disclosure adds a first proxy server, where the first proxy server is used to implement a proxy function of SIP connection, and the MRCP client and the MRCP server establish SIP connection through the first proxy server. Specifically, the SIP connection is established between the MRCP client and the first proxy server, the SIP connection is established between the first proxy server and the MRCP server, and data transmission is performed between the MRCP client and the MRCP server through the first proxy server, so that the network security of the MRCP server can be improved.
Further, in order to avoid that the MRCP server exposes its own network topology information (such as TCP resource control channel IP address) to the MRCP client in the process of establishing the TCP-based control session connection between the MRCP client and the MRCP server, the embodiment of the present disclosure adds a second proxy server, and the MRCP client and the MRCP server establish the control session connection through the second proxy server, so as to ensure that the network topology information of the MRCP server is not exposed.
Specifically, the MRCP client sends an initialization (INVITE) message to the first proxy server, the INVITE message containing the session type and some parameters necessary for the call. The session type may be pure voice, or multimedia video used for a network conference, etc. The first proxy server forwards an initialization message from the MRCP client to the MRCP server, and receives a response (200OK) message returned by the MRCP server for the initialization message, where the response message may serve as a connection indication, and the response message carries an SDP message, where the SDP message carries the first connection parameters of the MRCP server. The first connection parameters include network parameters used by the MRCP server to establish a control session connection (MRCP TCP connection), including an MRCP protocol address (such as a TCP resource control channel IP address) and a network port of the MRCP server.
In order to prevent the first connection parameter of the MRCP server from being exposed to the MRCP client, the embodiment of the present disclosure modifies the first connection parameter in the response message to the second connection parameter corresponding to the second proxy server. The second proxy server is used for realizing a proxy function of controlling session connection, and the MRCP client and the MRCP server establish control session connection through the second proxy server. The second connection parameters include network parameters used by the second proxy server to establish the control session connection, such as the MRCP protocol address and the network port of the second proxy server.
In an optional embodiment of the present disclosure, the number of second proxy servers may be greater than 1; before the modifying the first connection parameter in the response message to the second connection parameter corresponding to the second proxy server, the method may further include:
and searching the second proxy server meeting the preset condition in the second proxy server.
In the embodiment of the present disclosure, a plurality of second proxy servers may be provided, the plurality of second proxy servers may form a cluster, and each second proxy server in the cluster may be connected to a plurality of MRCP servers.
Optionally, searching for a second proxy server meeting a preset condition in the second proxy server may specifically include: and searching a second proxy server which can work normally and has the smallest current load in the cluster.
In an optional embodiment of the present disclosure, before modifying the first connection parameter in the response message to a second connection parameter corresponding to a second proxy server, the method may further include: and saving the first connection parameters of the MRCP server.
In the embodiment of the present disclosure, before the first connection parameter of the MRCP server in the response message is modified to the second connection parameter corresponding to the second proxy server, the first connection parameter of the MRCP server may be stored.
Before the sending the first connection parameter to the second proxy server, the method may further include:
receiving a query message sent by the second proxy server;
and responding to the query message, and acquiring the stored first connection parameters corresponding to the second proxy server.
After the first connection parameter of the MRCP server is saved, the first proxy server modifies the first connection parameter in the response message into a second connection parameter corresponding to the second proxy server, and forwards the modified response message to the MRCP client, so that the MRCP client can establish a control session connection with the second proxy server according to the second connection parameter in the modified response message.
In addition, the second proxy server may send a query message to the first proxy server to obtain the first connection parameters of the MRCP server. Responding to the query message, the first proxy server obtains the stored first connection parameters corresponding to the second proxy server, and sends the first connection parameters to the second proxy server, so that the second proxy server establishes a control session connection with the MRCP server according to the first connection parameters.
Therefore, the MRCP client and the MRCP server establish the control session connection through the second proxy server, and in the whole process, the first connection parameters of the MRCP server are not exposed to the MRCP client, so that the network security of the MRCP server can be improved.
In an optional embodiment of the present disclosure, the response message further carries a third connection parameter of the MRCP server, and after the response message returned by the MRCP server for the initialization message is received and before the modified response message is forwarded to the MRCP client, the method may further include:
modifying the third connection parameter in the response message into a fourth connection parameter corresponding to a third proxy server;
after forwarding the modified response message to the MRCP client, the method further includes:
so that the MRCP client establishes media session connection with the third proxy server according to the fourth connection parameter in the modified response message;
and sending the third connection parameter to the third proxy server, so that the third proxy server establishes media session connection with the MRCP server according to the third connection parameter.
In a specific application, the MRCP protocol cannot work independently, it relies on SIP to establish a session connection between the MRCP client and the MRCP server, and relies on TCP to establish a control session connection between the MRCP client and the MRCP server, and voice media data is transmitted through an rtp (real Time Transport protocol) connection.
If the RTP connection is directly established between the MRCP client and the MRCP server, there may also be a risk that the network topology information of the MRCP server is exposed, and in order to further improve the network security of the MRCP server, a third proxy server is added in the embodiment of the present disclosure. The third proxy server is used for realizing the proxy function of media session connection (RTP connection), and the MRCP client and the MRCP server can establish the RTP connection through the third proxy server.
Specifically, after forwarding an initialization message from an MRCP client to an MRCP server, the first proxy server may receive a response message returned by the MRCP server for the initialization message, where the response message may carry a third connection parameter of the MRCP server in addition to the first connection parameter of the MRCP server. The third connection parameters include network parameters used by the MRCP server to establish a media session connection (RTP connection), such as an RTP protocol address and a network port of the MRCP server.
In the embodiment of the present disclosure, after receiving the response message returned by the MRCP server for the initialization message, the first proxy server may first store the first connection parameter and the third connection parameter of the MRCP server in the response message. And then, modifying the first connection parameter in the response message into a second connection parameter corresponding to a second proxy server, and modifying the third connection parameter in the response message into a fourth connection parameter corresponding to a third proxy server. The fourth connection parameters include network parameters used by the third proxy server to establish a media session connection (RTP connection), such as an RTP protocol address and a network port of the third proxy server.
Next, the first proxy server forwards the modified response message to the MRCP client, where the MRCP client may establish a control session connection with the second proxy server according to the second connection parameter in the modified response message, and the MRCP client establishes a media session connection with the third proxy server according to the third connection parameter in the modified response message. The first proxy server may receive the query message sent by the second proxy server, and send the first connection parameter of the MRCP server to the second proxy server, so that the second proxy server establishes a control session connection with the MRCP server according to the first connection parameter. Similarly, the first proxy server may receive the query message sent by the third proxy server, and send the third connection parameter of the MRCP server to the third proxy server, so that the third proxy server establishes a media session connection with the MRCP server according to the third connection parameter.
Thus, according to the embodiment of the disclosure, the MRCP client and the MRCP server can establish an SIP connection through the first proxy server, a control session connection through the second proxy server, and a media session connection through the third proxy server. In addition, in the process of establishing the connection, the network topology information of the MRCP server is not exposed, and the network security of the MRCP server can be further improved.
It is understood that the number of the first proxy server, the second proxy server and the third proxy server is not limited by the embodiments of the present disclosure.
Referring to fig. 2, a system structure diagram of the connection control method applied in an embodiment of the present disclosure is shown, where the system includes: MRCP Client (MRCP Client), MRCP Server (MRCP Server), first Proxy Server (MRCP SIP Proxy), second Proxy Server (MRCP TCP Proxy), and third Proxy Server (MRCP RTP Proxy).
In an application example of the present disclosure, the step of executing the connection control method by the system shown in fig. 2 may specifically include:
step S11, MRCP Client sends SIP/INVITE message to MRCP SIP Proxy;
step S12, MRCP SIP Proxy forwards SIP/INVITE message to MRCP Server;
step S13, MRCP Server replies SIP/200OK message to MRCP SIP Proxy, response message carries SDP message, SDP message carries MRCP protocol address and RTP protocol address;
step S14, MRCP SIP Proxy finds a MRCP TCP Proxy which normally works, and the MRCP protocol address in the SDP message is modified into the address of the MRCP TCP Proxy; in addition, the MRCP SIP Proxy finds out a normally working MRCP RTP Proxy, and modifies the RTP protocol address in the SDP message into the address of the MRCP RTP Proxy; MRCP SIP Proxy replies the modified SIP/200OK message to MRCP Client;
step S15, MRCP Client uses MRCP TCP Proxy address and MRCP TCP Proxy to establish control session connection;
step S16, MRCP TCP Proxy inquires MRCP protocol address of MRCP Server from MRCP SIP Proxy, and establishes control session connection with MRCP Server;
step S17, MRCP Client uses MRCP RTP Proxy address and MRCP RTP Proxy to establish RTP connection;
step S18, MRCP RTP Proxy inquires the RTP protocol address of MRCP Server from MRCP SIP Proxy, and establishes RTP connection with MRCP Server.
In summary, the embodiments of the present disclosure provide a connection control method, which is applied to a first proxy server. First, the first proxy server may forward an initialization message from an MRCP client to a media resource control protocol MRCP server, and receive a response message returned by the MRCP server for the initialization message, where the response message carries a first connection parameter of the MRCP server; then, the first proxy server may modify the first connection parameter in the response message to a second connection parameter corresponding to a second proxy server, and forward the modified response message to the MRCP client, so that the MRCP client establishes a control session connection with the second proxy server according to the second connection parameter in the modified response message; finally, the first proxy server may send the first connection parameter to the second proxy server, so that the second proxy server establishes a control session connection with the MRCP server according to the first connection parameter.
In the embodiment of the present disclosure, the MRCP client and the MRCP server establish a control session connection through the second proxy server, and in the process of establishing the control session connection, the MRCP server does not need to expose internal network topology information (such as a TCP resource control channel IP address) of the MRCP network, which can improve network security of the MRCP server, increase system stability, and reduce the probability of the MRCP server being attacked.
Example two
Referring to fig. 3, a flowchart illustrating steps of a connection control method in another embodiment of the present disclosure is applied to an MRCP client, and the method includes:
In order to improve the network security of the MRCP server, the embodiment of the present disclosure adds a first proxy server and a second proxy server, where the first proxy server is used to implement a proxy function of an SIP connection, and the MRCP client and the MRCP server establish the SIP connection through the first proxy server. The second proxy server is used for realizing the proxy function of controlling session connection, and the MRCP client and the MRCP server establish the control session connection through the second proxy server.
Specifically, the MRCP client sends an initialization (INVITE) message to the first proxy server, where the initialization message is originally an initialization message sent by the MRCP client to the MRCP server. The first proxy server may forward an initialization message from the MRCP client to the MRCP server, and receive a response (200OK) message returned by the MRCP server for the initialization message, where the response message carries an SDP message, and the SDP message carries the first connection parameters of the MRCP server. And the first proxy server modifies the first connection parameter in the response message into a second connection parameter corresponding to the second proxy server, and forwards the modified response message to the MRCP client.
After sending an initialization (INVITE) message to the first proxy server, the MRCP client may receive a modified response message sent by the first proxy server, where the modified response message includes the first connection parameter of the MRCP server, and the first connection parameter is replaced by a second connection parameter corresponding to the second proxy server via the first proxy server.
The MRCP client may establish a control session connection with the second proxy server according to the second connection parameter in the modified response message. And establishing a control session connection between the second proxy server and the MRCP server. Therefore, the control session connection is established between the MRCP client and the MRCP server through the second proxy server, so that the first connection parameter of the MRCP server can be prevented from being leaked, and the network security of the MRCP server can be improved.
In an optional embodiment of the present disclosure, the third connection parameter of the MRCP server included in the modified response message is replaced with a fourth connection parameter corresponding to a third proxy server via the first proxy server; the method may further comprise:
and establishing media session connection with the third proxy server according to the fourth connection parameter in the modified response message.
In order to further improve the network security of the MRCP server, in the embodiment of the present disclosure, a third proxy server may be further added, where the third proxy server is used to implement a proxy function of media session connection, and the MRCP client and the MRCP server establish media session connection through the third proxy server.
And replacing the third connection parameter of the MRCP server contained in the modified response message with a fourth connection parameter corresponding to a third proxy server through the first proxy server. The third connection parameters include network parameters used by the MRCP server to establish a media session connection (RTP connection), and the fourth connection parameters include network parameters used by the third proxy server to establish a media session connection (RTP connection).
The MRCP client may establish a media session connection with the third proxy server according to the fourth connection parameter in the modified response message. And establishing media session connection between the third proxy server and the MRCP server. Therefore, the media session connection is established between the MRCP client and the MRCP server through the third proxy server, so that the third connection parameter of the MRCP server can be prevented from being leaked, and the network security of the MRCP server can be further improved.
In summary, in the embodiment of the present disclosure, the MRCP client and the MRCP server establish the control session connection through the second proxy server, and in the process of establishing the control session connection, the MRCP server does not need to expose internal network topology information (such as a TCP resource control channel IP address) of the MRCP network, so that the network security of the MRCP server can be improved, the system stability can be increased, and the probability that the MRCP server is attacked can be reduced.
It is noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the disclosed embodiments are not limited by the described order of acts, as some steps may occur in other orders or concurrently with other steps in accordance with the disclosed embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required of the disclosed embodiments.
EXAMPLE III
Referring to fig. 4, a block diagram of a first proxy server in an embodiment of the present disclosure is shown, which specifically includes:
a first forwarding module 401, configured to forward an initialization message from an MRCP client to a media resource control protocol MRCP server;
a first receiving module 402, configured to receive a response message returned by the MRCP server for the initialization message, where the response message carries a first connection parameter of the MRCP server;
a first modification module 403, configured to modify the first connection parameter in the response message to a second connection parameter corresponding to a second proxy server;
a second forwarding module 404, configured to forward the modified response message to the MRCP client, so that the MRCP client establishes a control session connection with the second proxy server according to a second connection parameter in the modified response message;
a first sending module 405, configured to send the first connection parameter to the second proxy server, so that the second proxy server establishes a control session connection with the MRCP server according to the first connection parameter.
Optionally, the response message further carries a third connection parameter of the MRCP server, and the first proxy server further includes:
a second modification module, configured to modify the third connection parameter in the response message to a fourth connection parameter corresponding to a third proxy server, so that the MRCP client establishes a media session connection with the third proxy server according to the modified fourth connection parameter in the response message;
a second sending module, configured to send the third connection parameter to the third proxy server, so that the third proxy server establishes a media session connection with the MRCP server according to the third connection parameter.
Optionally, the number of second proxy servers is greater than 1; the first proxy server further comprises:
and the searching module is used for searching the second proxy server which meets the preset condition in the second proxy server.
Optionally, the first proxy server further comprises:
the parameter storage module is used for storing the first connection parameter of the MRCP server;
the second receiving module is used for receiving the query message sent by the second proxy server;
and the data acquisition module is used for responding to the query message and acquiring the stored first connection parameters corresponding to the second proxy server.
Example four
Referring to fig. 5, a structure diagram of an MRCP client in an embodiment of the present disclosure is shown, which specifically includes:
a message receiving module 501, configured to receive a modified response message sent by a first proxy server, where the modified response message is in response to an initialization message sent by the MRCP client to the MRCP server, and a first connection parameter of the MRCP server included in the modified response message is replaced with a second connection parameter corresponding to a second proxy server through the first proxy server;
a first establishing module 502, configured to establish a control session connection with the second proxy server according to the second connection parameter in the modified response message.
Optionally, the third connection parameter of the MRCP server included in the modified response message is replaced with a fourth connection parameter corresponding to a third proxy server via the first proxy server; the MRCP client further includes:
and the second establishing module is used for establishing media session connection with the third proxy server according to the fourth connection parameter in the modified response message.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
An embodiment of the present disclosure also provides an electronic device, referring to fig. 6, including: a processor 601, a memory 602, and a computer program 6021 stored on and executable on the memory, the processor implementing the connection control method of the foregoing embodiments when executing the program.
Embodiments of the present disclosure also provide a readable storage medium, in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the connection control method of the foregoing embodiments.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. In addition, embodiments of the present disclosure are not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the embodiments of the present disclosure as described herein, and any descriptions of specific languages are provided above to disclose the best modes of the embodiments of the present disclosure.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the present disclosure may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the disclosure, various features of the embodiments of the disclosure are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that is, claimed embodiments of the disclosure require more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of an embodiment of this disclosure.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
The various component embodiments of the disclosure may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It will be appreciated by those skilled in the art that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in a sequencing device according to embodiments of the present disclosure. Embodiments of the present disclosure may also be implemented as an apparatus or device program for performing a portion or all of the methods described herein. Such programs implementing embodiments of the present disclosure may be stored on a computer readable medium or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit embodiments of the disclosure, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. Embodiments of the disclosure may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The above description is only for the purpose of illustrating the preferred embodiments of the present disclosure and is not to be construed as limiting the embodiments of the present disclosure, and any modifications, equivalents, improvements and the like that are made within the spirit and principle of the embodiments of the present disclosure are intended to be included within the scope of the embodiments of the present disclosure.
The above description is only a specific implementation of the embodiments of the present disclosure, but the scope of the embodiments of the present disclosure is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the embodiments of the present disclosure, and all the changes or substitutions should be covered by the scope of the embodiments of the present disclosure. Therefore, the protection scope of the embodiments of the present disclosure shall be subject to the protection scope of the claims.
Claims (14)
1. A connection control method applied to a first proxy server, the method comprising:
transmitting an initialization message from an MRCP client to a media resource control protocol MRCP server;
receiving a response message returned by the MRCP server aiming at the initialization message, wherein the response message carries the first connection parameters of the MRCP server;
modifying the first connection parameter in the response message into a second connection parameter corresponding to a second proxy server;
forwarding the modified response message to the MRCP client, so that the MRCP client establishes a control session connection with the second proxy server according to the second connection parameter in the modified response message;
and sending the first connection parameters to the second proxy server so that the second proxy server establishes a control session connection with the MRCP server according to the first connection parameters.
2. The method according to claim 1, wherein the response message further carries a third connection parameter of the MRCP server, and after the response message returned by the MRCP server for the initialization message is received and before the modified response message is forwarded to the MRCP client, the method further comprises:
modifying the third connection parameter in the response message into a fourth connection parameter corresponding to a third proxy server;
after forwarding the modified response message to the MRCP client, the method further includes:
so that the MRCP client establishes media session connection with the third proxy server according to the fourth connection parameter in the modified response message;
and sending the third connection parameter to the third proxy server, so that the third proxy server establishes media session connection with the MRCP server according to the third connection parameter.
3. The method of claim 1, wherein the number of second proxy servers is greater than 1; before the modifying the first connection parameter in the response message to the second connection parameter corresponding to the second proxy server, the method further includes:
and searching the second proxy server meeting the preset condition in the second proxy server.
4. The method of claim 1, wherein before the modifying the first connection parameter in the response message to a second connection parameter corresponding to a second proxy server, the method further comprises:
saving a first connection parameter of the MRCP server;
before the sending the first connection parameters to the second proxy server, the method further comprises:
receiving a query message sent by the second proxy server;
and responding to the query message, and acquiring the stored first connection parameters corresponding to the second proxy server.
5. A connection control method is applied to an MRCP client, and comprises the following steps:
receiving a modified response message sent by a first proxy server, wherein the modified response message responds to an initialization message sent by the MRCP client to the MRCP server, and a first connection parameter of the MRCP server contained in the modified response message is replaced by a second connection parameter corresponding to a second proxy server through the first proxy server;
and establishing a control session connection with the second proxy server according to the second connection parameter in the modified response message.
6. The method according to claim 5, wherein the third connection parameter of the MRCP server included in the modified response message is replaced with a fourth connection parameter corresponding to a third proxy server via the first proxy server; the method further comprises the following steps:
and establishing media session connection with the third proxy server according to the fourth connection parameter in the modified response message.
7. A first proxy server, the first proxy server comprising:
the first forwarding module is used for forwarding the initialization message from the MRCP client to the media resource control protocol MRCP server;
a first receiving module, configured to receive a response message returned by the MRCP server for the initialization message, where the response message carries a first connection parameter of the MRCP server;
a first modification module, configured to modify the first connection parameter in the response message to a second connection parameter corresponding to a second proxy server;
a second forwarding module, configured to forward the modified response message to the MRCP client, so that the MRCP client establishes a control session connection with the second proxy server according to a second connection parameter in the modified response message;
a first sending module, configured to send the first connection parameter to the second proxy server, so that the second proxy server establishes a control session connection with the MRCP server according to the first connection parameter.
8. The first proxy server according to claim 7, wherein the response message further carries a third connection parameter of the MRCP server, and the first proxy server further includes:
a second modification module, configured to modify the third connection parameter in the response message to a fourth connection parameter corresponding to a third proxy server, so that the MRCP client establishes a media session connection with the third proxy server according to the modified fourth connection parameter in the response message;
a second sending module, configured to send the third connection parameter to the third proxy server, so that the third proxy server establishes a media session connection with the MRCP server according to the third connection parameter.
9. The first proxy server of claim 7, wherein the number of second proxy servers is greater than 1; the first proxy server further comprises:
and the searching module is used for searching the second proxy server which meets the preset condition in the second proxy server.
10. The first proxy server of claim 7, further comprising:
the parameter storage module is used for storing the first connection parameter of the MRCP server;
the second receiving module is used for receiving the query message sent by the second proxy server;
and the data acquisition module is used for responding to the query message and acquiring the stored first connection parameters corresponding to the second proxy server.
11. An MRCP client, comprising:
a message receiving module, configured to receive a modified response message sent by a first proxy server, where the modified response message is in response to an initialization message sent by the MRCP client to the MRCP server, and a first connection parameter of the MRCP server included in the modified response message is replaced with a second connection parameter corresponding to a second proxy server through the first proxy server;
and the first establishing module is used for establishing control session connection with the second proxy server according to the second connection parameter in the modified response message.
12. The MRCP client according to claim 11, wherein the third connection parameter of the MRCP server included in the modified response message is replaced with a fourth connection parameter corresponding to a third proxy server via the first proxy server; the MRCP client further includes:
and the second establishing module is used for establishing media session connection with the third proxy server according to the fourth connection parameter in the modified response message.
13. An electronic device, comprising:
processor, memory and computer program stored on the memory and executable on the processor, characterized in that the processor implements the connection control method according to one or more of claims 1-4 or 5-6 when executing the program.
14. A readable storage medium, characterized in that instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the connection control method according to one or more of method claims 1-4 or 5-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911207694.5A CN111107134B (en) | 2019-11-29 | 2019-11-29 | Connection control method and device, electronic equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911207694.5A CN111107134B (en) | 2019-11-29 | 2019-11-29 | Connection control method and device, electronic equipment and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111107134A CN111107134A (en) | 2020-05-05 |
CN111107134B true CN111107134B (en) | 2022-04-26 |
Family
ID=70421035
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911207694.5A Active CN111107134B (en) | 2019-11-29 | 2019-11-29 | Connection control method and device, electronic equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111107134B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111931100B (en) * | 2020-06-22 | 2024-04-26 | 北京旷视科技有限公司 | Request processing system, method, apparatus, electronic device, and computer readable medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1619853A1 (en) * | 2004-07-21 | 2006-01-25 | Siemens Mobile Communications S.p.A. | RTSP proxy extended to detect streaming session events and report to valued streaming applications the notified ones |
CN1913533A (en) * | 2006-09-05 | 2007-02-14 | 北京天地互连信息技术有限公司 | Remote video monitoring system based on session initialize protocol and its implementing method |
CN101026616A (en) * | 2006-02-18 | 2007-08-29 | 华为技术有限公司 | Multimedia subsystem based interactive media session establishing system and method |
CN101415250A (en) * | 2007-10-16 | 2009-04-22 | 华为技术有限公司 | Method, system and entity for establishing session in IP internet television system |
CN101677329A (en) * | 2008-09-18 | 2010-03-24 | 中兴通讯股份有限公司 | Comprehensive voice resource platform proxy server and its data processing method |
WO2013106380A2 (en) * | 2012-01-09 | 2013-07-18 | Face It Corp. | Qr data proxy and protocol gateway |
CN107864161A (en) * | 2017-12-21 | 2018-03-30 | 北京明朝万达科技股份有限公司 | A kind of data transmission method and device |
-
2019
- 2019-11-29 CN CN201911207694.5A patent/CN111107134B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1619853A1 (en) * | 2004-07-21 | 2006-01-25 | Siemens Mobile Communications S.p.A. | RTSP proxy extended to detect streaming session events and report to valued streaming applications the notified ones |
CN101026616A (en) * | 2006-02-18 | 2007-08-29 | 华为技术有限公司 | Multimedia subsystem based interactive media session establishing system and method |
CN1913533A (en) * | 2006-09-05 | 2007-02-14 | 北京天地互连信息技术有限公司 | Remote video monitoring system based on session initialize protocol and its implementing method |
CN101415250A (en) * | 2007-10-16 | 2009-04-22 | 华为技术有限公司 | Method, system and entity for establishing session in IP internet television system |
CN101677329A (en) * | 2008-09-18 | 2010-03-24 | 中兴通讯股份有限公司 | Comprehensive voice resource platform proxy server and its data processing method |
WO2013106380A2 (en) * | 2012-01-09 | 2013-07-18 | Face It Corp. | Qr data proxy and protocol gateway |
CN107864161A (en) * | 2017-12-21 | 2018-03-30 | 北京明朝万达科技股份有限公司 | A kind of data transmission method and device |
Non-Patent Citations (2)
Title |
---|
"MarconiNet: overlay mobile content distribution network";A. Dutta等;《IEEE Communications Magazine》;20040816;全文 * |
"基于SIP协议的视频点播系统研究";常冬青;《中国优秀博硕士学位论文全文数据库(硕士)》;20100515;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN111107134A (en) | 2020-05-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2870735B1 (en) | Method for adding client capability data to a sip message | |
US8571012B2 (en) | Customized sip routing to cross firewalls | |
US7570756B2 (en) | Method for supporting session mobility | |
US8095611B2 (en) | SIP endpoint enhancer | |
US10412123B2 (en) | Session initiation for multimedia services | |
EP2611100A1 (en) | SIP session transfer in a back-to-back user agent (B2BUA) environment | |
US8014299B2 (en) | Method and apparatus for detecting forwarding loops | |
US9723032B2 (en) | Data communication | |
CN110933180A (en) | Communication establishing method and device, load equipment and storage medium | |
CN113709190A (en) | Service setting method and device, storage medium and electronic equipment | |
US10715558B2 (en) | Bot profile discovery | |
CN106559504B (en) | Address translation method and device | |
CN111107134B (en) | Connection control method and device, electronic equipment and readable storage medium | |
US20040160985A1 (en) | System and method for network address translation and session management | |
US20240022632A1 (en) | Augmented reality communication method, apparatus, and system | |
JP2006340076A (en) | Sip service converting device and its method | |
US20200336515A1 (en) | Establishing And Managing Connections For Real Time Communications | |
US20150031341A1 (en) | Method for responding to push notification based communication request | |
US10686849B2 (en) | Data processing | |
CN107852577A (en) | A kind of supplementary service implementation method, terminal device and IMS service device | |
CN117615023B (en) | Transmission method crossing network boundary, electronic device and computer readable storage medium | |
US8537808B2 (en) | SIP telephone set, and file transfer system, file transfer method and file transfer program thereof | |
EP2800320A1 (en) | Processing data | |
JP6631300B2 (en) | Communication control system, communication control method, communication control program, and communication control device | |
CN117793286A (en) | Conference calling method and conference system |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |