Audio and video transmission method and device, equipment and readable storage medium

The method verifies and filters audio-video streams according to GB/T28181 protocol, addressing DDoS vulnerabilities and securing public network transmissions by blocking non-compliant streams.

CN119996780APending Publication Date: 2025-05-13CHINA MOBILEHANGZHOUINFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311504663.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-10
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

Existing methods for secure transmission of GB/T28181 protocol over public networks lack protection against Distributed Denial of Service (DDoS) attacks and do not adequately secure audio-video streaming.

Method used

Implementing a method that verifies signaling requests, analyzes real-time transport protocol packets, and compares source IP addresses to ensure compliance with GB/T28181 protocol, using a packet filter firewall to block non-compliant streams.

Benefits of technology

Enhances security by preventing unauthorized audio-video stream injection attacks in public network transmissions, reducing the load on gateway services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119996780A_ABST
    Figure CN119996780A_ABST
Patent Text Reader

Abstract

The invention relates to the field of audio and video processing, and provides an audio and video transmission method and device, equipment and a readable storage medium. The audio and video transmission method comprises the following steps: analyzing a real-time transmission protocol packet under the condition that a signaling request sent by target equipment passes inspection and an audio and video stream pushed by the target equipment is the real-time transmission protocol packet; comparing the analysis result with the signaling request; comparing the source internet protocol address of the signaling request with the source internet protocol address of the audio and video stream; and transmitting the audio and video streams based on the comparison result. According to the method and the device, the configuration parameters in the real-time transmission protocol packet are analyzed, the analysis result is compared with the signaling request sent by the target equipment, and the transmission of the audio and video streams is comprehensively and safely processed in combination with the comparison result of the signaling request and the audio and video streams. The risk that transmission based on a public security video monitoring networking system is easily subjected to injection attacks of media streams which do not meet requirements is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of audio and video processing, and specifically to an audio and video transmission method, device, equipment and readable storage medium. Background Art

[0002] The GB / T28181 protocol is a common security video surveillance protocol based on the transmission of public security video surveillance networking systems. The existing security protection method based on the public network transmission of the GB / T28181 protocol adopts a custom Session Initiation Protocol (SIP) session password rule. Although it ensures the security of the transmission service, it lacks protection against distributed denial of service (DDos) attacks and is also incompatible with the open GB / T28181 protocol. In addition, the existing security protection method based on the public network transmission of the GB / T28181 protocol does not perform security processing on the transmission of audio and video streams. Summary of the invention

[0003] The embodiments of the present application provide an audio and video transmission method, apparatus, device and readable storage medium to solve the technical problem that the existing security protection method based on the public network transmission GB / T28181 protocol does not perform security processing on the transmission of audio and video streams.

[0004] In a first aspect, an embodiment of the present application provides an audio and video transmission method, including:

[0005] When the signaling request sent by the target device passes the verification, receiving the audio and video stream pushed by the target device;

[0006] When the audio and video stream is a real-time transport protocol packet, parsing the real-time transport protocol packet;

[0007] Comparing the parsing result with the signaling request to obtain a first comparison result;

[0008] Comparing the source Internet Protocol address of the signaling request with the source Internet Protocol address of the audio and video stream to obtain a second comparison result;

[0009] The audio and video stream is transmitted based on the first comparison result and the second comparison result.

[0010] In one embodiment, when the signaling request sent by the target device passes the inspection, receiving the audio and video stream pushed by the target device includes:

[0011] In the case that the audio and video stream is not a real-time transport protocol packet, the source Internet Protocol address of the audio and video stream is added to a preset blacklist through a preset packet filtering firewall proxy module.

[0012] In one embodiment, when the signaling request sent by the target device passes the inspection, before receiving the audio and video stream pushed by the target device, the method includes:

[0013] When the session initiation protocol request sent by the target device meets the preset requirements, sending the preset configuration information to the target device;

[0014] Determining whether the session initiation protocol request passes verification based on the first configuration response information of the target device;

[0015] If the session initiation protocol request is verified to be successful, sending target configuration information to the target device;

[0016] Based on the second configuration response information of the target device, it is determined whether the signaling request of the target device passes the verification.

[0017] In one embodiment, comparing the parsing result with the signaling request to obtain a first comparison result includes:

[0018] Compare the first field in the parsing result with the second field in the second configuration response information to obtain a first comparison result;

[0019] The first comparison result includes that the first field is consistent with the second field, and that the first field is inconsistent with the second field.

[0020] In one embodiment, the transmitting the audio and video stream based on the first comparison result and the second comparison result includes:

[0021] When the first comparison result is that the first field is consistent with the second field, and the second comparison result is that the source Internet Protocol address of the signaling request is consistent with the source Internet Protocol address of the audio and video stream, it is determined that the audio and video stream inspection has passed and the audio and video stream is transmitted.

[0022] In one embodiment, the preset configuration information includes a registration validity period and a heartbeat sending period; and the determining whether the session initiation protocol request is verified based on the first configuration response information of the target device includes:

[0023] If the target device sends a registration request within the registration validity period, and the heartbeat of the target device is consistent with the heartbeat sending period, it is determined that the session initiation protocol request verification is passed.

[0024] In one embodiment, the determining, based on the second configuration response information of the target device, whether the signaling request of the target device is verified to be passed comprises:

[0025] Determining configuration information received by the target device and information to which the target device responds based on the received configuration information;

[0026] The received configuration information is compared with the response information to determine whether the signaling request of the target device passes the inspection.

[0027] In a second aspect, an embodiment of the present application provides an audio and video transmission device, including:

[0028] The audio and video stream receiving module is used to receive the audio and video stream pushed by the target device when the signaling request sent by the target device passes the inspection;

[0029] A real-time transport protocol packet parsing module, used for parsing the real-time transport protocol packet when the audio and video stream is a real-time transport protocol packet;

[0030] A first comparison module, used to compare the parsing result with the signaling request to obtain a first comparison result;

[0031] A second comparison module, used for comparing the source Internet Protocol address of the signaling request with the source Internet Protocol address of the audio and video stream to obtain a second comparison result;

[0032] An audio and video stream transmission module is used to transmit the audio and video stream based on the first comparison result and the second comparison result.

[0033] In a third aspect, an embodiment of the present application provides a device, including a processor and a memory storing a computer program, wherein the processor implements the audio and video transmission method described in the first aspect when executing the computer program.

[0034] In a fourth aspect, an embodiment of the present application provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the audio and video transmission method described in the first aspect is implemented.

[0035] The audio and video transmission method, device, equipment and readable storage medium provided in the embodiments of the present application strictly inspect the audio and video streams sent by the target device in accordance with the requirements of the GB / T28181 protocol, including inspecting whether the audio and video streams are real-time transport protocol packets. The configuration parameters in the real-time transport protocol packet are parsed, and the parsing result is compared with the signaling request sent by the target device, and then the transmission of the audio and video stream is comprehensively processed for security in combination with the comparison result of the source Internet Protocol address of the signaling request and the source Internet Protocol address of the audio and video stream. The risk of the transmission based on the public security video surveillance network system being vulnerable to injection attacks of media streams that do not meet the requirements is solved. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0037] Figure 1 This is one of the flow charts of the audio and video transmission method provided in the embodiment of the present application;

[0038] Figure 2 This is the second flow chart of the audio and video transmission method provided in the embodiment of the present application;

[0039] Figure 3 It is a structural diagram of an audio and video transmission device provided in an embodiment of the present application;

[0040] Figure 4 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0042] Reference Figure 1 , Figure 1 This is one of the flow charts of the audio and video transmission method in the embodiment of the present application. The audio and video transmission method provided in the embodiment of the present application may include:

[0043] Step 100, when the signaling request sent by the target device passes the inspection, receiving the audio and video stream pushed by the target device;

[0044] Specifically, the audio and video transmission method in the embodiment of the present application includes three parts: signaling inspection, audio and video stream inspection, and the processing process of failed inspection. This embodiment focuses on the inspection of audio and video streams and the processing process of failed inspection, and the signaling inspection part will be described below. The inspection process of the audio and video stream is first to receive the audio and video stream pushed by the target device. In order to enhance the security of receiving the audio and video stream, the gateway service that receives the audio and video stream pushed by the target device allocates a stream receiving port for each signaling request sent by the target device (using a random allocation method), and only after the signaling request inspection is passed, the listening state of the stream receiving port is opened, that is, the audio and video stream pushed by the target device is received only after the signaling request inspection is passed.

[0045] Step 200, when the audio and video stream is a real-time transport protocol packet, parsing the real-time transport protocol packet;

[0046] The audio and video transmission method provided in the embodiment of the present application may further include:

[0047] Step 600, when the audio and video stream is not a real-time transport protocol packet, the source Internet Protocol address of the audio and video stream is added to a preset blacklist through a preset packet filtering firewall proxy module.

[0048] Specifically, after receiving the public network data (the audio and video stream pushed by the target device), the receiving port first detects whether the audio and video stream pushed by the target device is a normal Real-time Transport Protocol (RTP) packet. If the audio and video stream pushed by the target device is not an RTP packet, it is directly determined that the source Internet Protocol Address (IP) of the audio and video stream does not meet the requirements, that is, the audio and video stream inspection fails. The processing process of the audio and video stream that fails the inspection is as follows: the gateway service notifies the packet filtering firewall proxy module to add the source IP of the audio and video stream to the firewall of the operating system, and directly isolates the request source that does not meet the requirements at the network level, reducing the processing pressure of the gateway service.

[0049] After detecting that the audio and video stream pushed by the target device is a normal real-time transport protocol packet, the RTP payload type (RTP Payload Type, RTP PT) and SSRC (synchronization source identifier, length is 32 bits, the synchronization source refers to the source of the RTP packet stream) in the RTP packet are parsed out.

[0050] Step 300, comparing the parsing result with the signaling request to obtain a first comparison result;

[0051] The audio and video transmission method provided in the embodiment of the present application may further include:

[0052] Step 310, compare the first field in the parsing result with the second field in the second configuration response information to obtain a first comparison result; the first comparison result includes that the first field is consistent with the second field, and the first field is inconsistent with the second field.

[0053] Specifically, the RTP payload type and SSRC (i.e., the parsing result in this embodiment) parsed from the RTP packet are compared with the corresponding values ​​of the fields obtained during the inspection process of the first part of the signaling to determine whether the first field in the parsing result is consistent with the second field in the second configuration response information. If they are inconsistent, it is directly determined that the source Internet Protocol address of the audio and video stream does not meet the requirements, that is, the audio and video stream inspection fails. The processing process of the audio and video stream that fails the inspection is as described above.

[0054] Step 400, comparing the source Internet Protocol address of the signaling request with the source Internet Protocol address of the audio and video stream to obtain a second comparison result;

[0055] Specifically, the registration port of the gateway service is different from the port of the audio and video stream, but the IP of the target device is definitely the same, so the gateway service side can check whether the source IP of the audio and video stream is consistent with the signaling source of the current audio and video stream SSRC, that is, the second comparison result in this embodiment. If they are inconsistent, it can be determined that the audio and video stream source does not meet the requirements; parse the sequence parameter set (Sequence Paramater Set, SPS) and picture parameter set (Picture Paramater Set, PPS) before the first frame of the audio and video stream to obtain the encoding format, resolution and frame rate information in the video description information; parse the frames of the audio and video stream to obtain the encoding format and sampling rate information. The above parsed data is completely matched with the information stored in the field in the SDP. If inconsistency is found, it is directly determined that the audio and video stream source does not meet the requirements.

[0056] Step 500: Transmit the audio and video stream based on the first comparison result and the second comparison result.

[0057] The audio and video transmission method provided in the embodiment of the present application may further include:

[0058] Step 510, when the first comparison result is that the first field is consistent with the second field, and the second comparison result is that the source Internet Protocol address of the signaling request is consistent with the source Internet Protocol address of the audio and video stream, it is determined that the audio and video stream inspection has passed, and the audio and video stream is transmitted.

[0059] Specifically, according to the above content, it can be known that when the signaling request check passes, the audio and video stream is a real-time transport protocol packet, the first field in the parsing result is consistent with the second field in the second configuration response information, and the source Internet Protocol address of the signaling request and the source Internet Protocol address of the audio and video stream are consistent, if all are met, it is determined that the audio and video stream source meets the requirements. In this case, the audio and video stream that meets the requirements is transmitted.

[0060] This embodiment verifies the audio and video streams sent by the target device in strict accordance with the requirements of the GB / T28181 protocol, including verifying whether the audio and video streams are real-time transport protocol packets. The configuration parameters in the real-time transport protocol packet are parsed, and the parsing result is compared with the signaling request sent by the target device. The transmission of the audio and video stream is then processed securely in combination with the comparison result of the source Internet Protocol address of the signaling request and the source Internet Protocol address of the audio and video stream. This solves the risk of being vulnerable to injection attacks of media streams that do not meet the requirements based on the transmission of the public security video surveillance networking system.

[0061] Reference Figure 2 , Figure 2 This is a second flow chart of the audio and video transmission method in the embodiment of the present application. In one embodiment, the audio and video transmission method provided in the embodiment of the present application may also include:

[0062] Step 10, when the session initiation protocol request sent by the target device meets the preset requirements, sending the preset configuration information to the target device;

[0063] Specifically, regarding the inspection part of the above-mentioned signaling: in terms of signaling, whether the information content requested by the target device complies with the characteristics of the GB / T28181 protocol, such as whether the GBID (national standard unified code containing the regional code) meets the requirements, whether the registration cycle and heartbeat cycle of the target device comply with the customized configuration.

[0064] Configure unified GBID information (this part is generated strictly in accordance with the unified ID coding rules of the GB / T28181 protocol), customized registration expiration time, heartbeat sending cycle and heartbeat timeout times (for example, the default values ​​are 3600 seconds, 30 seconds and 3 times respectively) for the managed southbound security devices (i.e., the target devices in this embodiment). For example, they are set to 366 seconds (here, the validity period is greatly shortened to improve detection efficiency), 33 seconds and 4 times respectively, so that it is easy to judge whether it is a managed device that meets the requirements based on the registration and heartbeat rules. After configuration, the managed device will initiate registration with the southbound gateway deployed in the public network environment with no source restriction.

[0065] After receiving the SIP request for registration, the southbound gateway service first checks whether the GBID meets the requirements, mainly checking whether the ID length of the registration request field meets the number of digits of the GBID (for example, 20 digits). If not, the packet filtering firewall is directly notified to add it to the list and check whether the area code in the 20-digit GBID is in the same area as the requested IP. If the above information does not meet the requirements, the registered SIP request will be included in the suspect list, and then a manual review will be conducted. Enter the normal GB / T28181 protocol user ID and password verification process. If the password is incorrect, it is also considered to be unqualified and directly added to the blacklist.

[0066] Step 20, determining whether the session initiation protocol request passes the verification based on the first configuration response information of the target device;

[0067] The audio and video transmission method provided in the embodiment of the present application may further include:

[0068] Step 21: If the target device sends a registration request within the registration validity period, and the heartbeat of the target device is consistent with the heartbeat sending period, it is determined that the session initiation protocol request verification is passed.

[0069] Specifically, after the registration process check is passed, in order to ensure that the above customized configuration information is reviewed again, the customized registration expiration time, heartbeat sending cycle, heartbeat timeout times and other information are sent to the target device according to the commonly supported protocol. A simple check is performed on the above response information, and those that do not respond or respond abnormally can be directly added to the blacklist; enter the heartbeat cycle detection process, if the heartbeat of the target device is not sent according to the customized time period, it is also considered an illegal request and is directly added to the blacklist; enter the registration validity period detection process, if the cancellation and re-registration request of the target device is not received after the customized registration validity period, it is also considered an illegal request and is added to the blacklist; other response information of the target device (for example, subscription and alarm) is detected, and illegal responses are directly added to the blacklist and access is prohibited.

[0070] Step 30, when the session initiation protocol request verification passes, sending the target configuration information to the target device;

[0071] Step 40: Determine whether the signaling request of the target device passes the inspection based on the second configuration response information of the target device.

[0072] The audio and video transmission method provided in the embodiment of the present application may further include:

[0073] Step 41, determining the configuration information received by the target device, and information of the target device's response based on the received configuration information;

[0074] Step 42: Compare the received configuration information with the response information to determine whether the signaling request of the target device passes the inspection.

[0075] Specifically, the southbound gateway service generates a unique SSRC configuration and sends it to the target device signaling request SDP's y field, and determines whether the field in the received response SDP is consistent with the request field. If not, it is directly determined as a non-compliant response; next, the f field in the response SDP is parsed to determine whether the field is present or the audio and video format description information is strictly defined in accordance with the national standard. If the field exists but the description information is empty, the IP is included in the suspect list for manual review. The a field in the SDP records whether the RTP PT is within the range of 96-98 of the GB / T28181 protocol. If it exceeds this range, it is also considered a non-compliant request. The a, y, and f fields of the SDP in the above content and the corresponding southbound device IP address are saved for subsequent testing of whether the audio and video streams meet the requirements. If the information in the above content is incorrect, it does not completely violate the GB / T28181 protocol, so a manual review flow needs to be introduced.

[0076] This embodiment verifies the signaling request, determines that the request signaling does not meet the requirements, and directly adds the source IP to the firewall of the operating system, isolates the request source that does not meet the requirements at the network layer, and reduces the processing pressure of the southbound gateway service. It solves the risk of injection attacks on media streams that do not meet the requirements based on the transmission of public security video surveillance networking systems.

[0077] refer to Figure 3 , Figure 3 It is a structural diagram of the audio and video transmission device in the embodiment of the present application. The audio and video transmission device provided in the embodiment of the present application is described below. The audio and video transmission device described below and the audio and video transmission method described above can be referenced to each other.

[0078] The audio and video stream receiving module 301 is used to receive the audio and video stream pushed by the target device when the signaling request sent by the target device passes the inspection;

[0079] A real-time transport protocol packet parsing module 302, configured to parse the real-time transport protocol packet when the audio and video stream is a real-time transport protocol packet;

[0080] A first comparison module 303, used to compare the parsing result with the signaling request to obtain a first comparison result;

[0081] A second comparison module 304, configured to compare the source Internet Protocol address of the signaling request with the source Internet Protocol address of the audio and video stream to obtain a second comparison result;

[0082] The audio and video stream transmission module 305 is used to transmit the audio and video stream based on the first comparison result and the second comparison result.

[0083] Optionally, the audio and video transmission device further includes:

[0084] The packet filtering module is used to add the source Internet Protocol address of the audio and video stream to a preset blacklist through a preset packet filtering firewall proxy module when the audio and video stream is not a real-time transport protocol packet.

[0085] Optionally, the audio and video transmission device further includes:

[0086] A preset configuration information sending module, configured to send preset configuration information to the target device when the session initiation protocol request sent by the target device meets the preset requirements;

[0087] A session initiation protocol request verification module, configured to determine whether the session initiation protocol request passes the verification based on the first configuration response information of the target device;

[0088] A target configuration information sending module, configured to send the target configuration information to the target device if the session initiation protocol request verification passes;

[0089] The signaling request verification module is used to determine whether the signaling request of the target device passes the verification based on the second configuration response information of the target device.

[0090] Optionally, the first comparison module includes:

[0091] A field comparison unit is used to compare the first field in the parsing result with the second field in the second configuration response information to obtain a first comparison result; the first comparison result includes that the first field is consistent with the second field, and the first field is inconsistent with the second field.

[0092] Optionally, the audio and video stream transmission module includes:

[0093] An audio and video stream inspection and determination unit is used to determine that the audio and video stream inspection has passed and transmit the audio and video stream when the first comparison result is that the first field is consistent with the second field, and the second comparison result is that the source Internet Protocol address of the signaling request is consistent with the source Internet Protocol address of the audio and video stream.

[0094] Optionally, the preset configuration information includes a registration validity period and a heartbeat sending cycle; and the session initiation protocol request verification module includes:

[0095] The session initiation protocol request verification determination unit is used to determine that the session initiation protocol request verification is passed if the target device sends a registration request within the registration validity period and the heartbeat of the target device is consistent with the heartbeat sending period.

[0096] Optionally, the signaling request verification module includes:

[0097] a configuration response information determining unit, configured to determine the configuration information received by the target device, and information to which the target device responds based on the received configuration information;

[0098] The signaling request verification determination unit is used to compare the received configuration information with the response information to determine whether the signaling request of the target device has passed the verification.

[0099] Figure 4 The following is an example of a physical structure diagram of a device, such as Figure 4 As shown, the device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call a computer program in the memory 430 to execute the steps of the audio and video transmission method.

[0100] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.

[0101] On the other hand, an embodiment of the present application further provides a non-transitory computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the computer can execute the steps of the audio and video transmission method provided in the above embodiments.

[0102] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0103] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the audio and video transmission method described in each embodiment or some parts of the embodiment.

[0104] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. An audio and video transmission method, characterized in that: include: When the signaling request sent by the target device passes the verification, receiving the audio and video stream pushed by the target device; When the audio and video stream is a real-time transport protocol packet, parsing the real-time transport protocol packet; Comparing the parsing result with the signaling request to obtain a first comparison result; Comparing the source Internet Protocol address of the signaling request with the source Internet Protocol address of the audio and video stream to obtain a second comparison result; The audio and video stream is transmitted based on the first comparison result and the second comparison result.

2. The audio and video transmission method according to claim 1, characterized in that: In the case where the signaling request sent by the target device is verified to be successful, receiving the audio and video stream pushed by the target device includes: In the case that the audio and video stream is not a real-time transport protocol packet, the source Internet Protocol address of the audio and video stream is added to a preset blacklist through a preset packet filtering firewall proxy module.

3. The audio and video transmission method according to claim 1, characterized in that: In the case where the signaling request sent by the target device is verified to be passed, before receiving the audio and video stream pushed by the target device, the method includes: When the session initiation protocol request sent by the target device meets the preset requirements, sending the preset configuration information to the target device; Determining whether the session initiation protocol request passes verification based on the first configuration response information of the target device; If the session initiation protocol request is verified to be successful, sending target configuration information to the target device; Based on the second configuration response information of the target device, it is determined whether the signaling request of the target device passes the verification.

4. The audio and video transmission method according to claim 3, characterized in that: The comparing the parsing result with the signaling request to obtain a first comparison result includes: Compare the first field in the parsing result with the second field in the second configuration response information to obtain a first comparison result; The first comparison result includes that the first field is consistent with the second field, and that the first field is inconsistent with the second field.

5. The audio and video transmission method according to claim 1, characterized in that: The transmitting the audio and video stream based on the first comparison result and the second comparison result includes: When the first comparison result is that the first field is consistent with the second field, and the second comparison result is that the source Internet Protocol address of the signaling request is consistent with the source Internet Protocol address of the audio and video stream, it is determined that the audio and video stream inspection has passed and the audio and video stream is transmitted.

6. The audio and video transmission method according to claim 3, characterized in that: The preset configuration information includes a registration validity period and a heartbeat sending period; and the determining whether the session initiation protocol request is verified based on the first configuration response information of the target device includes: If the target device sends a registration request within the registration validity period, and the heartbeat of the target device is consistent with the heartbeat sending period, it is determined that the session initiation protocol request verification is passed.

7. The audio and video transmission method according to claim 3, characterized in that: The determining, based on the second configuration response information of the target device, whether the signaling request of the target device is verified to be passed comprises: Determining configuration information received by the target device and information to which the target device responds based on the received configuration information; The received configuration information is compared with the response information to determine whether the signaling request of the target device passes the inspection.

8. An audio and video transmission device, characterized in that: include: The audio and video stream receiving module is used to receive the audio and video stream pushed by the target device when the signaling request sent by the target device passes the inspection; A real-time transport protocol packet parsing module, used for parsing the real-time transport protocol packet when the audio and video stream is a real-time transport protocol packet; A first comparison module, used to compare the parsing result with the signaling request to obtain a first comparison result; A second comparison module, used for comparing the source Internet Protocol address of the signaling request with the source Internet Protocol address of the audio and video stream to obtain a second comparison result; An audio and video stream transmission module is used to transmit the audio and video stream based on the first comparison result and the second comparison result.

9. An electronic device comprising a processor and a memory storing a computer program, characterized in that: When the processor executes the computer program, the audio and video transmission method according to any one of claims 1 to 7 is implemented.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the audio and video transmission method according to any one of claims 1 to 7 is implemented.