CN112769751B - Recording method and device - Google Patents

Recording method and device Download PDF

Info

Publication number
CN112769751B
CN112769751B CN202011463642.7A CN202011463642A CN112769751B CN 112769751 B CN112769751 B CN 112769751B CN 202011463642 A CN202011463642 A CN 202011463642A CN 112769751 B CN112769751 B CN 112769751B
Authority
CN
China
Prior art keywords
call
audio
recording
target
sip
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
Application number
CN202011463642.7A
Other languages
Chinese (zh)
Other versions
CN112769751A (en
Inventor
陈芳
胡均武
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Hongxin Technology Development Co Ltd
Original Assignee
Wuhan Hongxin Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Hongxin Technology Development Co Ltd filed Critical Wuhan Hongxin Technology Development Co Ltd
Priority to CN202011463642.7A priority Critical patent/CN112769751B/en
Publication of CN112769751A publication Critical patent/CN112769751A/en
Application granted granted Critical
Publication of CN112769751B publication Critical patent/CN112769751B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1069Session establishment or de-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1083In-session procedures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1101Session protocols
    • H04L65/1104Session initiation protocol [SIP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • H04L65/403Arrangements for multi-party communication, e.g. for conferences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4334Recording operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention provides a method and a device for recording sound and video, wherein the method comprises the following steps: establishing a transmission channel with the audio and video recording equipment; if the target call is detected to start, SIP call information is sent to the sound recording and video recording equipment; after receiving the SIP finished receipt, according to the call type of the target call, the IP addresses of all calling parties, the IP address and the port number of the audio and video recording device, a backup audio and video data stream carrying a target identifier and a storage identifier is obtained, and the backup audio and video data stream is sent to the audio and video recording device through a transmission channel, so that after the audio and video recording device receives the backup audio and video data stream, the backup audio and video data stream is written into a call recording file corresponding to the target call according to the storage identifier. The method and the device for recording the audio and the video can record the audio and the video of the call of any user or group in the target networking at the current moment on the premise of acquiring the audio and video recording permission in advance.

Description

Recording method and device
Technical Field
The invention relates to the technical field of trunking communication, in particular to a sound recording and video recording method and device.
Background
In industries or companies with higher requirements on safety, when a Broadband Trunking Communication (B-TrunC) system is used for commanding and scheduling, the B-TrunC system can record and play the call in the commanding and scheduling process on the premise of acquiring the recording and playing right, and can provide retrieval and playback of the recording and playing. When a major problem or an accident occurs, the related recorded sound and video can be used as a certificate or a responsible party can be confirmed according to the related recorded sound and video.
In the prior art, after acquiring the audio recording and video recording authority, the B-TrunC system receives the setting information of the target user or group sent by the dispatching desk, and performs audio recording and video recording on the call of the target user or group. The range of the B-Trunc system for recording the audio and the video is limited to a target user or a group of related setting information sent by the dispatching desk. In the prior art, on the premise of obtaining the audio and video recording authority, the steps of carrying out audio and video recording on the call of any user or group in the authority range are complex.
Disclosure of Invention
The invention provides a method and a device for recording and recording sound, which are used for solving the defect that the steps for recording and recording the call of any user or group in the authority range are complex in the prior art and realizing the purpose of simply and conveniently recording and recording the call of any user or group in the authority range.
The invention provides a sound recording and video recording method, which comprises the following steps:
establishing a transmission channel with the audio and video recording equipment;
if the target call is detected to start, sending an SIP call message to the sound recording and video recording equipment, so that the sound recording and video recording equipment creates a call recording file corresponding to the target call according to the SIP call message, and returning an SIP completion receipt indicating that the creation of the call recording file is completed; the SIP calling message carries the calling type of the target call and the IP address of each calling party;
after receiving the SIP finished receipt, according to the call type of the target call, the IP addresses of all calling parties, the IP address and the port number of the sound recording and video recording equipment, obtaining a backup audio and video data stream carrying a target identifier and a storage identifier, and sending the backup audio and video data stream to the sound recording and video recording equipment through the transmission channel, so that after the sound recording and video recording equipment receives the backup audio and video data stream, according to the storage identifier, the backup audio and video data stream is written into a call recording file corresponding to the target call;
the destination identifier comprises an IP address and a port number of the sound recording and video recording equipment; and the storage identification comprises the call type and the IP address of the speaking right party of the target call.
According to the sound recording and video recording method provided by the present invention, after receiving the SIP receipt, according to the call type of the target call, the IP addresses of the calling parties, and the IP address and port number of the sound recording and video recording device, a backup audio and video data stream carrying a destination identifier and a storage identifier is obtained, and the backup audio and video data stream is sent to the sound recording and video recording device through the transmission channel, so that after the sound recording and video recording device receives the backup audio and video data stream, according to the storage identifier, the backup audio and video data stream is written into a call recording file corresponding to the target call, further comprising:
if the target call is detected to be ended, sending an SIP (session initiation protocol) ending message to the sound recording and video recording equipment, so that the sound recording and video recording equipment acquires the call information of the target call according to the SIP ending message and establishes an index of the call recording file according to the call information;
wherein the call information includes: any number of start time, end time, duration of call, type of call, calling party IP address, and calling party UDN of the target call.
According to the audio and video recording method provided by the invention, the backup audio and video data stream carrying the target identifier and the storage identifier is obtained according to the call type of the target call, the IP addresses of all parties of the call, and the IP address and the port number of the audio and video recording device, and the method specifically comprises the following steps:
and modifying the IP head field and the UDP head field of the original audio and video data stream according to the call type of the target call, the IP addresses of all the parties of the call and the IP addresses and port numbers of the audio and video recording equipment to obtain the backup audio and video data stream carrying the target identifier and the storage identifier.
According to the audio recording method provided by the invention, if the target call is detected to start, the SIP call message is sent to the audio recording device, and the method specifically comprises the following steps:
if the starting of the target call is detected, the call type of the target call is obtained;
and sending the SIP call message carrying the call type of the target call and the IP address of each calling party to the sound recording and video recording equipment.
The invention provides a sound recording and video recording method, which comprises the following steps:
establishing a transmission channel between the H-TCF and the audio and video recording equipment;
receiving SIP call information sent by the H-TCF, creating a call record file corresponding to a target call according to the SIP call information, and returning an SIP completion receipt indicating that the creation of the call record file is completed to the H-TCF; the SIP calling message carries the calling type of the target call and the IP address of each calling party;
receiving backup audio and video data streams which are transmitted by the H-TCF through the transmission channel and carry a target identifier and a storage identifier, and writing the backup audio and video data streams into the call recording file corresponding to the target call according to the storage identifier;
the destination identifier comprises an IP address and a port number of the sound recording and video recording equipment; and the storage identification comprises the call type and the IP address of the speaking right party of the target call.
According to the audio and video recording method provided by the present invention, after receiving the backup audio and video data stream carrying the destination identifier and the storage identifier sent by the H-TCF through the transmission channel, and writing the backup audio and video data stream into the corresponding call recording file according to the storage identifier, the method further comprises:
after receiving the SIP ending message sent by the H-TCF, acquiring the call information of the target call according to the SIP ending message, and establishing an index of the call record file according to the call information;
wherein the call information includes: any number of start time, end time, duration of call, type of call, calling party IP address, and calling party UDN of the target call.
The present invention also provides a recording apparatus, comprising:
the creating module is used for creating a transmission channel with the audio and video recording equipment;
the request module is used for sending an SIP call message to the sound recording and video recording equipment if the target call is detected to start, so that the sound recording and video recording equipment creates a call recording file corresponding to the target call according to the SIP call message and returns an SIP completion receipt indicating that the creation of the call recording file is completed; the SIP calling message carries the calling type of the target call and the IP address of each calling party;
a data sending module, configured to receive the SIP receipt, obtain a backup audio and video data stream carrying a destination identifier and a storage identifier according to the call type of the target call, the IP addresses of the calling parties, and the IP address and port number of the audio and video recording device, and send the backup audio and video data stream to the audio and video recording device through the transmission channel, so that after the audio and video recording device receives the backup audio and video data stream, the backup audio and video data stream is written into a call recording file corresponding to the target call according to the storage identifier;
the destination identifier comprises an IP address and a port number of the sound recording and video recording equipment; and the storage identification comprises the call type and the IP address of the speaking right party of the target call.
The present invention also provides a recording apparatus, comprising:
the channel building module is used for building a transmission channel between the H-TCF and the audio and video recording equipment;
a creating and recording module, configured to receive an SIP call message sent by the H-TCF, create a call recording file corresponding to a target call according to the SIP call message, and return an SIP completion receipt indicating that the creation of the call recording file is completed to the H-TCF; the SIP calling message carries the calling type of the target call and the IP address of each calling party;
the storage data module is used for receiving backup audio and video data streams which are sent by the H-TCF through the transmission channel and carry a target identifier and a storage identifier, and writing the backup audio and video data streams into the call recording file corresponding to the target call according to the storage identifier;
the destination identifier comprises an IP address and a port number of the sound recording and video recording equipment; and the storage identification comprises the call type and the IP address of the speaking right party of the target call.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the program to realize the steps of the sound recording and video recording method.
The invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the sound recording method as any one of the above.
The invention provides a recording and videotaping method and a device, wherein an SIP calling message is sent to a recording and videotaping device through an H-TCF, the recording and videotaping device creates a calling recording file according to the SIP calling message, the H-TCF sends a backup audio and video data stream carrying a target identifier and a storage identifier to the recording and videotaping device through an established transmission channel, the recording and videotaping device writes the backup audio and video data stream into the corresponding calling recording file, on the premise of acquiring the recording and videotaping authority in advance, the recording and videotaping can be carried out on the calling of any user or group in a current time target networking, and a transmission channel can be established between the H-TCF and the recording and videotaping device, so that the user or the group does not need to establish an independent transmission channel with the recording and videotaping device, and the process of recording the calling can be simplified.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a flow chart of a recording method according to the present invention;
FIG. 2 is a second flowchart of the recording method according to the present invention;
FIG. 3 is a schematic structural diagram of an audio/video recording apparatus according to the present invention;
FIG. 4 is a second schematic structural diagram of an audio/video recording apparatus according to the present invention;
fig. 5 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In order to overcome the problems in the prior art, the invention provides a recording method and a device, and the invention has the conception that after a recording device creates a call recording file corresponding to a target call according to an SIP call message sent by an H-TCF, the H-TCF sends a backup audio and video data stream carrying a target identifier and a storage identifier to the recording device through a transmission channel between the H-TCF and the recording device, and the recording device writes the backup audio and video data stream into the corresponding call recording file, so that the recording can be carried out on the call of any user or group in the target networking at the current moment on the premise of acquiring the recording authority in advance.
Fig. 1 is a schematic flow chart of a recording method according to the present invention. The audio recording method of the present invention is described below with reference to fig. 1. As illustrated in fig. 1, the method comprises: 101. and establishing a transmission channel with the audio and video recording equipment.
It should be noted that the main execution body of the audio recording method provided in the embodiment of the present invention is a cluster Control Function (H-TCF).
It should be noted that, before executing the audio recording method provided by the embodiment of the present invention, authorization for each user (or group) in the target networking to record (or record) the call in which the user (or group) participates is obtained in advance, and the H-TCF and the audio recording device have an authority to record (or record) the calls of all users or groups in the target networking.
Specifically, the H-TCF may send an SIP (Session Initiation Protocol) request message to the audio recording device, requesting to establish a transmission channel between the H-TCF and the audio recording device.
The SIP request message may carry transmission channel information on the H-TCF side, including: the IP address of the H-TCF, the audio port number port1 allocated by the H-TCF, and the video port number port2 allocated by the H-TCF.
And after receiving the SIP request message sent by the H-TCF, the audio and video recording equipment returns an SIP agreement message to the H-TCF, and agrees to establish a transmission channel between the H-TCF and the audio and video recording equipment.
The SIP agreement message may carry transmission channel information of the audio and video recording device side, including: the IP address of the sound recording and video recording device, the audio port number 3 allocated by the sound recording and video recording device and the video port number 4 allocated by the sound recording and video recording device.
The H-TCF and the audio and video recording equipment can realize information interaction through SIP request information and SIP agreement information.
And after receiving the SIP agreement message sent by the sound recording and video recording equipment, the H-TCF sends an SIP confirmation message to the sound recording and video recording equipment. And after the sound recording and video recording equipment receives the SIP confirmation message, the completion of the establishment of the transmission channel between the H-TCF and the sound recording and video recording equipment is confirmed.
It should be noted that, in the embodiment of the present invention, the SIP request message sent by the H-TCF to the audio and video recording device and the SIP grant message sent by the audio and video recording device to the H-TCF may multiplex "7.6.1 call setup" and "successful response of 7.16.4 single call and group call setup" in the specification of "B-TrunC TS 02.008 based on LTE technology, broadband TrunC (B-TrunC) system (second stage) interface technology requirement core network to dispatch station interface V1.0_ 054757".
It can be understood that before the transmission channel between the H-TCF and the recording and playing device is established, the recording and playing device can be authenticated and registered, so that illegal access of the recording and playing device and information leakage are prevented.
And newly adding a value corresponding to the audio and video recording equipment in the virtual Terminal Type (Terminal Type). In the embodiment of the present invention, the value corresponding to the newly added audio/video recording device in the virtual terminal type may be 255.
The H-TCF may receive the SIP register message and the SIP authentication message sent by the audiotape recording device, and send the received SIP register message and the SIP authentication message to an eHSS (enhanced home subscriber server).
It should be noted that the SIP registration message carries values corresponding to the audio and video recording device in the virtual terminal type, for example: 255.
if the eHSS determines that the recording and video recording equipment is legal according to the SIP registration message and the SIP authentication information, the registration and authentication of the recording and video recording equipment in the eHSS are completed, and an SIP verification passing message which indicates that the recording and video recording equipment is registered and authenticated is returned to the H-TCF.
Note that the audio/video recording apparatus has contracted with the eHSS.
And after receiving the SIP verification passing message sent by the eHSS, the H-TCF returns an SIP verification completion message indicating that the recording and recording equipment completes registration and authentication to the recording and recording equipment.
After the H-TCF sends the SIP verification completion message to the sound recording and video recording equipment, the H-TCF can actively initiate a request to establish a transmission channel between the H-TCF and the sound recording and video recording equipment, and sends the SIP request message to the sound recording and video recording equipment.
102. If the target call is detected to start, the SIP call message is sent to the sound recording and video recording equipment, so that the sound recording and video recording equipment creates a call record file corresponding to the target call according to the SIP call message, and an SIP completion receipt indicating that the creation of the call record file is completed is returned.
The SIP call message carries the call type of the target call and the IP address of each calling party.
Specifically, if the user or the group establishes the call at the current time, the call may be used as the target call at the current time. The user or the call set up in the group at the present moment may be considered as the target call start.
The H-TCF may detect whether a call is established in the user or group at the current time. If the H-TCF detects that the target call starts, the H-TCF sends an SIP call message to the sound recording and video recording equipment, and the relevant information of the target call of the sound recording and video recording equipment can be informed through the SIP call message.
It should be noted that, when the H-TCF detects that a target call starts, the SIP call message sent to the audio and video recording device is the first SIP call message sent by the H-TCF to the audio and video recording device.
The message header field of the SIP call message carries an extended message header, and the extended message header can carry related information of a target call, including: the call type (callType) of the target call and the IP addresses (callerIP and calledIP) of the parties of the call.
It should be noted that the SIP call message in the embodiment of the present invention is an extended message SIP (message) based on B-trunk. The ptt-Extension header in the SIP call message may carry a service identity pttRecNotify without an Extension message body. The message is used to inform the user of the sound recording device or the relevant information of the group call.
After the audio and video recording equipment receives the SIP call message sent by the H-TCF, a new call recording file can be created, and the call type of the target call and the IP address of each calling party carried by the SIP call message are used as the identification marks of the call recording file. Each call log file may correspond to a target call based on the call type and the IP address of the calling party.
The call type of the target call may be used to indicate whether the target call is a single call or a group call.
If the calling type of the target call is single call, the callerIP is the IP address of the calling terminal and the callerdIP is the IP address of the called terminal in the IP addresses of all the calling parties of the target call.
If the calling type of the target call is group calling, the callerIP is the IP address of the terminal of the speaking right party and the callerIP is the multicast IP address in the IP addresses of all the parties of the target call.
It should be noted that, in the embodiment of the present invention, the call type of the target call may refer to a value of callType in section 8.6 in the standard "B-TrunC TS 02.008, based on the LTE technology, in the interface technology requirement core network to dispatch station interface V1.0_ 054757" in the broadband TrunC (B-TrunC) system (second stage) interface technology.
It should be noted that the relevant information of the target call carried by the SIP call message may further include: call events (events) of the target call, UDNs (telephone numbers, including callerUDN and calledUDN) of the calling parties, and start time (timeStamp) of the target call.
The call event (event) may be set to two setting values according to the user or the group setting up a call or releasing a call at the present time.
In the embodiment of the present invention, the setting value of the call event may be 00H, which indicates that the call is established in the user or the group at the current time and the target call starts. The audio and video recording device can judge whether to establish a new call recording file according to the set value of the call event carried by the SIP call message.
The UDN of the calling parties may be determined based on the call type of the target call.
And if the call type of the target call is single call, the callerUDN is the UDN of the calling terminal, and the calledUDN is the UDN of the called terminal.
If the call type of the target call is a group call, the callerUDN is the UDN of the terminal of the speaking right, and the calledUDN is the GDN (group number).
The start time of the target call refers to the time when the user or group establishes the call.
In the embodiment of the invention, the target call start time can comprise year, month, day, hour, minute and second information. The format of the target call start time may be 1900-01-01T00:00: 01.
The audio and video recording device can write the call event of the target call, the UDN of each calling party and the start time of the target call carried by the SIP call message into a call record file corresponding to the target call.
And after the audio and video recording equipment creates a call record file and writes the relevant information of the target call into the call record file corresponding to the target call, an SIP completion receipt which represents that the call record file is successfully created is returned to the H-TCF.
It should be noted that, when the call type of the target call is a group call, the speaking right party may be changed during the group call. If the H-TCF detects that the call right party is changed every time, the H-TCF can send the SIP call message carrying the callerrIP or the callerrIP and the callerUDN to the sound recording and video recording equipment again. Wherein, the said CALLErIP has been updated to the IP address of the terminal of the current speaking right party, and the said CALLErUDN has been updated to the UDN of the terminal of the current speaking right party.
103. After receiving the SIP finished receipt, according to the call type of the target call, the IP addresses of all calling parties, the IP address and the port number of the audio and video recording device, a backup audio and video data stream carrying a target identifier and a storage identifier is obtained, and the backup audio and video data stream is sent to the audio and video recording device through a transmission channel, so that after the audio and video recording device receives the backup audio and video data stream, the backup audio and video data stream is written into a call recording file corresponding to the target call according to the storage identifier.
The destination identifier includes an IP address and a port number of the audio/video recording device. An identification is stored including the call type and the floor IP address of the target call.
After receiving SIP completion receipt sent by the audio and video recording equipment, the H-TCF can write the calling type of a target call and the IP addresses of calling parties into an original audio and video data stream as storage identifiers; and the IP address and the port number of the recording and video recording equipment can be used as a target identifier and written into the original audio and video data stream to obtain a backup audio and video data stream carrying the target identifier and the storage identifier.
It should be noted that, in the embodiment of the present invention, the SIP completion receipt sent by the sound recording and video recording device to the H-TCF multiplexes "7.16.22 on-line call listening notification response" in the specification of the interface technical requirement core network to dispatcher station interface V1.0_054757 "of the broadband TrunC (B-TrunC) system (second stage) based on the LTE technology, B-TrunC TS 02.008.
According to the purpose identification carried by the backup audio and video data stream, the H-TCF can send the backup audio and video data stream to the audio and video recording equipment through the transmission channel.
After the audio and video recording equipment receives the backup audio and video data stream carrying the storage identifier, the call recording file of which the identification tag can correspond to the storage identifier can be searched in all call recording files according to the storage identifier, and the backup audio and video data stream is written into the searched call recording file.
It should be noted that there may be multiple users or groups to establish calls at the current time, that is, there may be multiple target calls in the target networking at the current time.
The H-TCF can detect the start of each target call at the current moment and can respectively send SIP call messages corresponding to each target call to the audio and video recording equipment. Wherein, each SIP call message carries the relevant information of each corresponding target call.
The sound recording and video recording device can respectively receive each SIP call message and respectively establish a plurality of new call recording files according to each SIP call message, and each call recording file has an identification mark.
After the recording and video recording equipment receives a plurality of backup audio and video data streams carrying storage identifiers, each backup audio and video data stream can be written into a call recording file of which the identification identifier can correspond to the storage identifier according to the storage identifiers, so that the recording and video recording of each target call can be realized.
The embodiment of the invention sends SIP calling information to the recording and video recording equipment through the H-TCF, the recording and video recording equipment creates a calling record file according to the SIP calling information, the H-TCF sends backup audio and video data streams carrying the target identification and the storage identification to the recording and video recording equipment through the established transmission channel, the recording and video recording equipment writes the backup audio and video data streams into the corresponding calling record file, and can record and record the calling of any user or group in the target networking at the current moment on the premise of acquiring the recording and video authority in advance, and a transmission channel can be established between the H-TCF and the recording and video recording equipment, so that the user or group does not need to establish an independent transmission channel with the recording and video recording equipment, and the process of recording and recording the calling can be simplified.
Based on the content of the above embodiments, after receiving the SIP receipt, according to the call type of the target call, the IP addresses of the calling parties, the IP address and the port number of the recording and video device, obtaining a backup audio and video data stream carrying the target identifier and the storage identifier, and sending the backup audio and video data stream to the recording and video device through the transmission channel, so that after the recording and video device receives the backup audio and video data stream, according to the storage identifier, the backup audio and video data stream is written into the call recording file corresponding to the target call, further comprising: and if the target call is detected to be ended, sending an SIP ending message to the audio and video recording equipment, so that the audio and video recording equipment acquires the call information of the target call according to the SIP ending message and establishes an index of a call recording file according to the call information.
Wherein, the call information includes: any number of start time, end time, duration of call, type of call, calling party IP address, and calling party UDN of the target call.
Specifically, the user or the group releasing the call at the current time may be regarded as the target call ending.
The H-TCF may detect that the target call is over at the current time. If the H-TCF detects that the target call is ended, the SIP ending message can be sent to the audio and video recording equipment. The end of the target call can be informed to the audio recording device through the SIP end message.
The message header field of the SIP end message carries an extended message header, where the extended message header may carry related information of the end of the target call, and the extended message header includes: the call type of the target call and the IP address of each party of the call.
It should be noted that, in the embodiment of the present invention, the SIP end message is an extended message based on B-TrunC, and indicates SIP (message) for call information notification. The ptt-Extension header in the SIP end message may carry a service identity pttRecNotify, without an Extension message body. The message is used to inform the user of the sound recording device or the relevant information of the group call.
After the audio and video recording device receives the SIP ending information sent by the H-TCF, it may search for a call record file whose identification tag may correspond to the call type of the target call and the IP address of each calling party carried by the SIP ending information according to the call type of the target call and the IP address of each calling party carried by the SIP ending information, and obtain the call record file carrying the call information of the target call, where the call information of the target call carried by the call record file includes: the call type of the target call and the IP address of each party of the call.
It should be noted that, in the embodiment of the present invention, the determination and value of the call type of the target call and the IP address of each calling party carried in the SIP end message may be the same as the determination and value of the call type of the target call and the IP address of each calling party carried in the first SIP call message sent by the H-TCF to the audio and video recording device, and details are not repeated in the embodiment of the present invention.
It should be noted that the ending information of the target call carried by the SIP ending message may further include: call events (events) of the target call, UDNs (callerUDN and calledUDN) of the calling parties, and the end time (timeStamp) of the target call.
In the embodiment of the present invention, the setting value of the call event may be 01H, which indicates that the user or the group releases the call at the current time, and the target call is ended. The audio and video recording device may determine the end time of the target call according to the time of receiving the call event with the carrying setting value of 01H.
According to the time of the target call ending and the time of the target call starting, the call duration of the target call can be calculated.
In the embodiment of the invention, the target call end time can comprise year, month, day, hour, minute and second information. The target call end time may be in the format 1900-01-01T00:00: 01.
The UDN of the calling parties may be determined based on the call type of the target call.
It should be noted that, in the embodiment of the present invention, the determination and value of the UDN of each party calling the target call, which is carried in the SIP end message, may be the same as the determination and value of the UDN of each party calling the target call, which is carried in the first SIP call message sent by the H-TCF to the audio and video recording device, and details are not described in the embodiment of the present invention.
The audio and video recording device can write the call event of the target call, the UDN of each calling party, the start time of the target call, the end time of the target call and the call duration of the target call, which are carried by the SIP call message and the SIP end message, into a call record file corresponding to the target call, so as to obtain the call record file carrying the call information of the target call. The call information of the target call carried by the call record file may include: the call type of the target call, the IP address of each party of the call, the call event and the UDN of each party of the call, as well as the target call start time, end time and call duration.
And taking the call information of the target call carried by each call record file as an index of each call record file. According to the plurality of calling information, a plurality of calling record files corresponding to the calling information can be searched and obtained, and the calling record file corresponding to any target calling can be checked or played back.
After the audio and video recording device obtains the call recording file carrying the call information of the target call, the audio and video recording device can send an SIP (session initiation protocol) ending receipt for completing the audio and video recording of the target call to the H-TCH to inform the H-TCF of completing the audio and video recording of the target call.
It should be noted that, in the embodiment of the present invention, the SIP end response sent by the sound recording and video recording device to the H-TCF multiplexes "7.16.22 on-line call listening notification response" in the specification of the broadband trunking communication (B-TrunC) system (second stage) interface technology requirement core network to dispatcher station interface V1.0_054757 based on the LTE technology "B-TrunC TS 02.008.
The embodiment of the invention sends SIP ending information to the audio and video recording equipment through the H-TCF, the audio and video recording equipment acquires the calling information of the target call according to the SIP ending information, acquires the calling record file carrying the calling information of the target call, takes the calling information of the target call as the index of the calling record file, can manage the calling record file in order, can return the calling record file meeting the retrieval condition according to the retrieval condition, and can check or play back the calling record file corresponding to any target call.
Based on the content of the above embodiments, according to the call type of the target call, the IP addresses of the parties of the call, and the IP addresses and port numbers of the audio and video recording devices, a backup audio and video data stream carrying the destination identifier and the storage identifier is obtained, which specifically includes: and modifying the IP head field and the UDP head field of the original audio and video data stream according to the call type of the target call, the IP addresses of all parties of the call and the IP addresses and port numbers of the audio and video recording equipment to obtain a backup audio and video data stream carrying the target identifier and the storage identifier.
Specifically, a target IP address in an IP header field of the original audio and video data stream is modified to be an IP address of the audio and video recording device, and the modified target IP address is used as one of target identifiers carried by the obtained backup audio and video data stream, so that the H-TCF can send the backup audio and video data stream to the audio and video recording device according to the target identifiers.
And modifying the destination port number in the original audio and video data stream UDP header field to be the audio port number port3 or the video port number port4 allocated by the audio and video recording equipment, and taking the modified port number as one of destination identifiers carried by the obtained backup audio and video data stream, so that the H-TCF can send the backup audio and video data stream to the audio port or the video port in the audio and video recording equipment according to the condition that the call is a voice call or a video call.
The DSCP value in the TOS field in the IP header field of the original audio-visual data stream is multiplexed. And setting a DSCP value according to the call type of the target call, and using the DSCP value as one of the storage identifiers carried by the obtained backup audio and video data stream, so that the call type of the obtained backup audio and video data stream can be determined according to the DSCP value.
The source IP address in the IP header field of the original audio-visual data stream is modified. If the calling type of the target call is single call, modifying the source IP address into the IP address of the speaker, wherein the source IP address can be a caller IP or a caller IP; if the calling type of the target call is the group call, the source IP address is modified into the IP address of the speaking right terminal. And taking the modified source IP address as one of the storage identifiers carried by the obtained backup audio and video data stream, so that the IP address of one party of the obtained backup audio and video data stream can be determined according to the source IP address.
It should be noted that, if the source IP address in the original audio and video data stream IP header field is not modified, the H-TCF sends the obtained backup audio and video data stream to the audio and video recording device through the transmission channel, and the source IP address defaults to the IP address of the H-TCF, so that the corresponding identification identifier cannot be found through the storage identifier, and the backup audio and video data stream cannot be written into the corresponding call recording file.
It should be noted that, during the target call, the speaker may change many times, and the source IP address in the IP header field of the original audio/video data stream is modified correspondingly each time the speaker changes. When a target call starts, in order to modify the source IP address in the IP header domain of the original audio and video data stream for the first time, the source IP address after the first modification is used as one of the obtained storage identifiers carried by the backup audio and video data stream.
The embodiment of the invention can obtain the backup audio and video data stream carrying the target identifier and the storage identifier by modifying the DSCP value, the target IP address and the source IP address in the IP head domain of the original audio and video data stream and modifying the port number in the UDP head domain of the original audio and video data stream, the H-TCF can send the obtained backup audio and video data stream to the recording and video equipment, the recording and video equipment can write the backup audio and video data stream into the corresponding call recording file, and the recording and video equipment can record and record the call of any user or group in the target networking at the current moment on the premise of pre-obtaining the recording and video authority.
Based on the content of the foregoing embodiments, if it is detected that the target call is started, sending an SIP call message to the audio recording device, specifically including: and if the target call is detected to start, acquiring the call type of the target call.
After the H-TCF detects that the target call starts, the call type of the target call can be acquired to be single call or group call.
And sending the SIP call message carrying the call type of the target call and the IP address of each calling party to the audio and video recording equipment.
The IP address of the terminal may be allocated by a Trunking Core Network (T-CN) when the terminal performs attach access. The multicast IP address may be assigned by the cluster core network when a group call is initiated.
The embodiment of the invention sends the SIP call message carrying the call type of the target call and the IP address of each calling party to the audio and video recording equipment through the H-TCF, the audio and video recording equipment can create the call recording file according to the SIP call message, can take the call type of the target call and the IP address of each calling party carried by the SIP call message as the identification label of the call recording file, can accurately write the backup audio and video data stream into the corresponding call recording file according to the identification label, and can avoid the data error caused by the non-correspondence of the call recording file and the target call.
Fig. 2 is a second flowchart of the recording method according to the present invention. The recording method of the present invention is described below with reference to fig. 2. As shown in fig. 2, the method includes: 201. and establishing a transmission channel between the H-TCF and the H-TCF to which the audio and video recording equipment belongs.
It should be noted that the execution subject of the audio recording method provided by the embodiment of the present invention is an audio recording device.
It should be noted that, before the audio recording method provided by the embodiment of the present invention is executed, the authority to record the audio of the call of all users or groups in the target networking is obtained in advance.
The sound recording and video recording equipment in the embodiment of the invention can record or record the target call.
Specifically, the audio recording device may receive an SIP request message sent by an H-TCF to which the audio recording device belongs. The SIP request information indicates that the H-TCF requests to establish a transmission channel between the audio and video recording equipment and the H-TCF to which the audio and video recording equipment belongs.
It should be noted that a plurality of audio/video recording devices may belong to one H-TCF.
And after receiving the SIP request message sent by the H-TCF, the audio and video recording equipment returns an SIP agreement message to the H-TCF, and agrees to establish a transmission channel between the H-TCF and the audio and video recording equipment.
The H-TCF and the audio and video recording equipment can realize information interaction through SIP request information and SIP agreement information.
And after receiving the SIP agreement message sent by the sound recording and video recording equipment, the H-TCF sends an SIP confirmation message to the sound recording and video recording equipment. And after the sound recording and video recording equipment receives the SIP confirmation message, the completion of the establishment of the transmission channel between the H-TCF and the sound recording and video recording equipment is confirmed.
It should be noted that before the transmission channel between the audio and video recording device and the H-TCF is established, the audio and video recording device may be authenticated and registered, so as to prevent illegal access of the audio and video recording device and information leakage.
202. Receiving SIP call information sent by the H-TCF, creating a call record file corresponding to the target call according to the SIP call information, and returning an SIP completion receipt indicating that the creation of the call record file is completed to the H-TCF.
The SIP call message carries the call type of the target call and the IP address of each calling party.
Specifically, if a call is established in a user or a group at the current time, the call may be used as a target call at the current time. The user or the call set up in the group at the present moment may be considered as the target call start.
The H-TCF may detect whether a call is established in the user or group at the current time. If the H-TCF detects that the target call starts, the H-TCF sends an SIP call message to the sound recording and video recording equipment, and the relevant information of the target call of the sound recording and video recording equipment can be informed through the SIP call message.
The message header field of the SIP call message carries an extended message header, and the extended message header can carry related information of a target call, including: the call type (callType) of the target call and the IP addresses (callerIP and calledIP) of the parties of the call.
After the audio and video recording equipment receives the SIP call message sent by the H-TCF, a new call recording file can be created, and the call type of the target call and the IP address of each calling party carried by the SIP call message are used as the identification marks of the call recording file. Each call log file may correspond to a target call based on the call type and the IP address of the calling party.
It should be noted that the relevant information of the target call carried by the SIP call message may further include: call events (events) for the target call, UDNs (callerUDN and calledUDN) for the calling parties, and target call start time (timeStamp).
The audio and video recording device can write the call event of the target call, the UDN of each calling party and the start time of the target call carried by the SIP call message into a call record file corresponding to the target call.
After the audio and video recording device creates a call record file and writes the relevant information of the target call into the call record file corresponding to the target call, an SIP completion receipt which indicates that the call record file is successfully created can be returned to the H-TCF.
It should be noted that, if the call type of the target call is a group call, and the right party is changed during the group call, the H-TCF may send the SIP call message carrying the callerrip or the callerrip and the callerUDN to the recording and video device again after each change of the right party. Wherein, the said CALLErIP has been updated to the IP address of the terminal of the current speaking right party, and the said CALLErUDN has been updated to the UDN of the terminal of the current speaking right party.
203. And receiving backup audio and video data streams which are transmitted by the H-TCF through a transmission channel and carry the target identifier and the storage identifier, and writing the backup audio and video data streams into a call recording file corresponding to the target call according to the storage identifier.
The destination identifier includes an IP address and a port number of the audio/video recording device. An identification is stored including the call type and the floor IP address of the target call.
After receiving SIP completion receipt sent by the audio and video recording equipment, the H-TCF can write the calling type of a target call and the IP addresses of calling parties into an original audio and video data stream as storage identifiers; and the IP address and the port number of the recording and video recording equipment can be used as a target identifier and written into the original audio and video data stream to obtain a backup audio and video data stream carrying the target identifier and the storage identifier.
According to the purpose identification carried by the backup audio and video data stream, the H-TCF can send the backup audio and video data stream to the audio and video recording equipment through the transmission channel.
After the audio and video recording equipment receives the backup audio and video data stream carrying the storage identifier, the call recording file of which the identification tag can correspond to the storage identifier can be searched in all call recording files according to the storage identifier, and the backup audio and video data stream is written into the searched call recording file.
It should be noted that there may be multiple users or groups to establish calls at the current time, that is, there may be multiple target calls in the target networking at the current time.
The H-TCF can detect the start of each target call at the current moment and can respectively send SIP call messages corresponding to each target call to the audio and video recording equipment. Wherein, each SIP call message carries the relevant information of each corresponding target call.
The sound recording and video recording device can respectively receive each SIP call message and respectively establish a plurality of new call recording files according to each SIP call message, and each call recording file has an identification mark.
After the recording and video recording equipment receives a plurality of backup audio and video data streams carrying storage identifiers, each backup audio and video data stream can be written into a call recording file of which the identification identifier can correspond to the storage identifier according to the storage identifiers, so that the recording and video recording of each target call can be realized.
The embodiment of the invention creates a call recording file according to SIP call information sent by H-TCF through the recording and video equipment, the H-TCF sends backup audio and video data streams carrying a target identifier and a storage identifier to the recording and video equipment through the established transmission channel, the recording and video equipment writes the backup audio and video data streams into the corresponding call recording file, and can record the call of any user or group in the target networking at the current moment on the premise of acquiring the recording and video authority in advance, and a transmission channel can be established between the H-TCF and the recording and video equipment, so that the user or group does not need to establish an independent transmission channel with the recording and video equipment, and the process of recording the call can be simplified.
Based on the content of the above embodiments, receiving a backup audio and video data stream carrying a destination identifier and a storage identifier sent by the H-TCF through the transmission channel, and writing the backup audio and video data stream into a corresponding call recording file according to the storage identifier, further includes: after receiving SIP end information sent by the H-TCF, acquiring the call information of the target call according to the SIP end information, and establishing an index of a call record file according to the call information.
Wherein, the call information includes: any number of start time, end time, duration of call, type of call, calling party IP address, and calling party UDN of the target call.
Specifically, the user or the call release in the group at the current time may be regarded as the target call end.
The H-TCF may detect that the target call is over at the current time. If the H-TCF detects that the target call is ended, the SIP ending message can be sent to the audio and video recording equipment. The end of the target call can be informed to the audio recording device through the SIP end message.
The message header field of the SIP end message carries an extended message header, where the extended message header may carry related information of the end of the target call, and the extended message header includes: the call type of the target call and the IP address of each party of the call.
After the audio and video recording device receives the SIP ending information sent by the H-TCF, it may search for a call record file whose identification tag may correspond to the call type of the target call and the IP address of each calling party carried by the SIP ending information according to the call type of the target call and the IP address of each calling party carried by the SIP ending information, and obtain the call record file carrying the call information of the target call, where the call information of the target call carried by the call record file includes: the call type of the target call and the IP address of each party of the call.
It should be noted that, in the embodiment of the present invention, the determination and value of the call type of the target call and the IP address of each calling party carried in the SIP end message may be the same as the determination and value of the call type of the target call and the IP address of each calling party carried in the first SIP call message sent by the H-TCF to the audio and video recording device, and details are not repeated in the embodiment of the present invention.
It should be noted that the information related to the termination of the target call carried in the SIP termination message may further include: call events (events) of the target call, UDNs (callerUDN and calledUDN) of the calling parties, and the end time (timeStamp) of the target call.
The audio and video recording device may determine the time when the target call ends according to the time when the call event with the carrying setting value of 01H is received. According to the time of the target call ending and the time of the target call starting, the call duration of the target call can be calculated.
The audio and video recording device can write the call event of the target call, the UDN of each calling party, the start time of the target call, the end time of the target call and the call duration of the target call carried by the SIP end message into a call record file corresponding to the target call, so as to obtain the call record file carrying the call information of the target call. The call information of the target call carried by the call record file may include: the call type of the target call and the IP address of each party calling, the call event, the UDN of each party calling, the target call start time, the target call end time, and the call duration of the target call.
And taking the call information of the target call carried by each call record file as an index of each call record file. According to the plurality of calling information, a plurality of calling record files corresponding to the calling information can be searched and obtained, and any calling record file can be checked or played back.
After the audio and video recording device obtains the call recording file carrying the call information of the target call, the audio and video recording device can send an SIP (session initiation protocol) ending receipt for completing the audio and video recording of the target call to the H-TCH to inform the H-TCF of completing the audio and video recording of the target call.
After the SIP ending message sent by the H-TCF is ended by the audio and video recording equipment, the call information of the target call is acquired according to the SIP ending message, the call recording file carrying the call information of the target call is acquired, the call information of the target call is used as the index of the call recording file, the call recording file can be managed in order, the call recording file meeting the retrieval condition can be returned according to the retrieval condition, and the call recording file corresponding to any target call can be checked or played back.
FIG. 3 is a schematic structural diagram of an audio/video recording apparatus according to the present invention. The following describes the recording apparatus provided by the present invention with reference to fig. 3, and the recording apparatus described below and the recording method described above can be referred to correspondingly. As shown in fig. 3, the apparatus includes: a creation module 301, a request module 302, and a send data module 303, wherein:
the creating module 301 is configured to create a transmission channel with a recording and video device.
A request module 302, configured to send an SIP call message to the audio recording device if it is detected that the target call is started, so that the audio recording device creates a call record file corresponding to the target call according to the SIP call message, and returns an SIP completion receipt indicating that the creation of the call record file is completed; the SIP call message carries the call type of the target call and the IP address of each calling party.
And the data sending module 303 is configured to, after receiving the SIP receipt, obtain a backup audio/video data stream carrying the destination identifier and the storage identifier according to the call type of the target call, the IP address of each calling party, the IP address of the audio/video recording device, and the port number, and send the backup audio/video data stream to the audio/video recording device through the transmission channel, so that after receiving the backup audio/video data stream, the audio/video recording device writes the backup audio/video data stream into a call recording file corresponding to the target call according to the storage identifier.
The destination identifier includes an IP address and a port number of the audio/video recording device. An identification is stored including the call type and the floor IP address of the target call.
It should be noted that the audio and video recording apparatus provided in the embodiment of the present invention is an H-TCF.
It should be noted that the audio recording and video recording apparatus provided in the embodiment of the present invention has previously acquired the authority to record and video record calls of all users or groups in the target networking.
Specifically, the creation module 301, the request module 302, and the send data module 303 are electrically connected.
The creating module 301 may be configured to send an SIP request message to the recording and video recording device to request to establish a transmission channel between the H-TCF and the recording and video recording device.
After receiving the SIP request message sent by the creating module 301, the recording and video equipment returns an SIP grant message to the creating module 301, and grants to establish a transmission channel between the H-TCF and the recording and video equipment.
The creating module 301 and the audio and video recording device can realize information interaction through the SIP request information and the SIP agreement message.
The creating module 301 sends an SIP acknowledgement message to the audio recording device after receiving the SIP grant message sent by the audio recording device. And after the sound recording and video recording equipment receives the SIP confirmation message, the completion of the establishment of the transmission channel between the H-TCF and the sound recording and video recording equipment is confirmed.
The request module 302 may detect whether a call is established for a user or group at the current time. If the request module 302 detects that the target call is started, the request module 302 sends an SIP call message to the audio recording device, and the SIP call message can inform the audio recording device of the relevant information of the target call.
After the sound recording and video recording device receives the SIP call message sent by the request module 302, a new call record file may be created, and the call type of the target call and the IP address of each calling party carried in the SIP call message may be used as the identification identifier of the call record file. Each call log file may correspond to a target call based on the call type and the IP address of the calling party.
After the audio recording device creates a call record file and writes the relevant information of the target call into the call record file corresponding to the target call, an SIP completion receipt indicating that the call record file is successfully created is returned to the request module 302.
After receiving the SIP completion receipt sent by the audio and video recording device, the sending data module 303 may write the call type of the target call and the IP addresses of each calling party into the original audio and video data stream as storage identifiers; and the IP address and the port number of the recording and video recording equipment can be used as a target identifier and written into the original audio and video data stream to obtain a backup audio and video data stream carrying the target identifier and the storage identifier.
According to the destination identifier carried by the backup audio/video data stream, the data sending module 303 may send the backup audio/video data stream to the audio/video recording device through the transmission channel.
It should be noted that, the embodiment of the present invention may further include an authentication module.
The authentication module can authenticate and register the audio and video recording equipment before establishing a transmission channel between the H-TCF and the audio and video recording equipment, so that illegal access of the audio and video recording equipment and information leakage are prevented.
The embodiment of the invention sends SIP calling information to the audio and video recording equipment through the H-TCF, the audio and video recording equipment creates a calling record file according to the SIP calling information, the H-TCF sends backup audio and video data streams carrying the target identification and the storage identification to the audio and video recording equipment through the established transmission channel, the audio and video recording equipment writes the backup audio and video data streams into the corresponding calling record file, under the premise of acquiring the recording and video recording authority in advance, the method can record and record the call of any user or group in the target network at the current moment, can establish a transmission channel between the H-TCF and the recording and video recording equipment, therefore, users or groups do not need to establish an independent transmission channel with the recording and video recording equipment, the process of recording and video recording the call can be simplified, and the recording of a video single call or a video group call can be supported.
Fig. 4 is a second schematic structural diagram of the audio and video recording apparatus according to the present invention. The following describes the recording apparatus provided by the present invention with reference to fig. 4, and the recording apparatus described below and the recording method described above can be referred to correspondingly. As shown in fig. 4, the apparatus includes: a build channel module 401, a create record module 402, and a store data module 403, wherein:
and a channel building module 401, configured to build a transmission channel with the H-TCF to which the audio and video recording device belongs.
A creating and recording module 402, configured to receive an SIP call message sent by the H-TCF, create a call recording file corresponding to a target call according to the SIP call message, and return an SIP completion receipt indicating that the creation of the call recording file is completed to the H-TCF; the SIP call message carries the call type of the target call and the IP address of each calling party.
And the storage data module 403 is configured to receive a backup audio and video data stream that is sent by the H-TCF through the transmission channel and carries the destination identifier and the storage identifier, and write the backup audio and video data stream into a call recording file corresponding to the target call according to the storage identifier.
The destination identifier comprises an IP address and a port number of the audio and video recording equipment; an identification is stored including the call type and the floor IP address of the target call.
It should be noted that the audio and video recording apparatus provided in the embodiment of the present invention is an audio and video recording device.
It should be noted that the audio recording and video recording apparatus provided in the embodiment of the present invention has previously acquired the authority to record and video record calls of all users or groups in the target networking.
Specifically, the build channel module 401, the create record module 402, and the store data module 403 are electrically connected.
The channel building module 401 may receive an SIP request message sent by an H-TCF to which the audio and video recording device belongs. The SIP request information indicates that the H-TCF requests to establish a transmission channel between the audio and video recording equipment and the H-TCF to which the audio and video recording equipment belongs.
It should be noted that a plurality of audio/video recording devices may belong to one H-TCF.
After receiving the SIP request message sent by the H-TCF, the channel construction module 401 returns an SIP grant message to the H-TCF, and grants to establish a transmission channel between the H-TCF and the audio and video recording device.
The H-TCF and channel building module 401 can realize information interaction through SIP request information and SIP grant information.
After receiving the SIP grant message sent by the build channel module 401, the H-TCF sends a SIP acknowledgement message to the build channel module 401. After receiving the SIP acknowledgement message, the channel construction module 401 confirms that the establishment of the transmission channel between the H-TCF and the audio and video recording device is completed.
After receiving the SIP call message sent by the H-TCF, the creating recording module 402 may create a new call recording file, and use the call type of the target call and the IP address of each calling party carried in the SIP call message as the identification of the call recording file. Each call log file may correspond to a target call based on the call type and the IP address of the calling party.
The creating record module 402 may write the call event of the target call, the UDN of each calling party, and the start time of the target call, which are carried in the SIP call message, into a call record file corresponding to the target call.
The creating and recording module 402 may return an SIP completion receipt indicating that the creating of the call record file is successful to the H-TCF after creating the call record file and writing the relevant information of the target call into the call record file corresponding to the target call.
After receiving the backup audio/video data stream carrying the storage identifier, the storage data module 403 may search, according to the storage identifier, for a call record file whose identification tag may correspond to the storage identifier in all call record files, and write the backup audio/video data stream into the searched call record file.
After receiving the backup audio and video data streams carrying the storage identifiers, the storage data module 403 may write each backup audio and video data stream into a call recording file whose identification identifier may correspond to the storage identifier according to the storage identifiers, thereby implementing recording of each target call.
It should be noted that, the embodiment of the present invention may further include a retrieval module.
And the retrieval module can be used for acquiring the call information of the target call according to the SIP ending message after receiving the SIP ending message sent by the H-TCF, and establishing an index of the call record file according to the call information.
The embodiment of the invention creates a call recording file according to SIP call information sent by H-TCF through the recording and recording equipment, the H-TCF sends backup audio and video data streams carrying a target identifier and a storage identifier to the recording and recording equipment through the established transmission channel, and the recording and recording equipment writes the backup audio and video data streams into the corresponding call recording file.
Fig. 5 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 5: a processor (processor)510, a communication interface (communication interface)520, a memory (memory)530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 communicate with each other via the communication bus 540. Processor 510 may invoke logic instructions in memory 530 to perform a method for sound recording, the method comprising: establishing a transmission channel with the audio and video recording equipment; if the target call is detected to start, SIP call information is sent to the sound recording and video recording equipment, so that the sound recording and video recording equipment creates a call record file corresponding to the target call according to the SIP call information, and an SIP completion receipt indicating that the creation of the call record file is completed is returned; the SIP calling message carries the calling type of the target call and the IP address of each calling party; after receiving SIP finished receipt, according to the call type of the target call, the IP addresses of all calling parties, the IP address and the port number of the audio and video recording equipment, obtaining a backup audio and video data stream carrying a target identifier and a storage identifier, and sending the backup audio and video data stream to the audio and video recording equipment through a transmission channel, so that after the audio and video recording equipment receives the backup audio and video data stream, the backup audio and video data stream is written into a call recording file corresponding to the target call according to the storage identifier; the destination identifier comprises an IP address and a port number of the audio and video recording equipment; an identification is stored including the call type and the floor IP address of the target call.
Furthermore, the logic instructions in the memory 530 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
In another aspect, the present invention also provides a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the sound recording method provided by the above methods, the method comprising: establishing a transmission channel with the audio and video recording equipment; if the target call is detected to start, SIP call information is sent to the sound recording and video recording equipment, so that the sound recording and video recording equipment creates a call record file corresponding to the target call according to the SIP call information, and an SIP completion receipt indicating that the creation of the call record file is completed is returned; the SIP calling message carries the calling type of the target call and the IP address of each calling party; after receiving SIP finished receipt, according to the call type of the target call, the IP addresses of all calling parties, the IP address and the port number of the audio and video recording equipment, obtaining a backup audio and video data stream carrying a target identifier and a storage identifier, and sending the backup audio and video data stream to the audio and video recording equipment through a transmission channel, so that after the audio and video recording equipment receives the backup audio and video data stream, the backup audio and video data stream is written into a call recording file corresponding to the target call according to the storage identifier; the destination identifier comprises an IP address and a port number of the audio and video recording equipment; an identification is stored including the call type and the floor IP address of the target call.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program, which when executed by a processor is implemented to perform the sound recording method provided above, the method comprising: establishing a transmission channel with the audio and video recording equipment; if the target call is detected to start, SIP call information is sent to the sound recording and video recording equipment, so that the sound recording and video recording equipment creates a call record file corresponding to the target call according to the SIP call information, and an SIP completion receipt indicating that the creation of the call record file is completed is returned; the SIP calling message carries the calling type of the target call and the IP address of each calling party; after receiving SIP finished receipt, according to the call type of the target call, the IP addresses of all calling parties, the IP address and the port number of the audio and video recording equipment, obtaining a backup audio and video data stream carrying a target identifier and a storage identifier, and sending the backup audio and video data stream to the audio and video recording equipment through a transmission channel, so that after the audio and video recording equipment receives the backup audio and video data stream, the backup audio and video data stream is written into a call recording file corresponding to the target call according to the storage identifier; the destination identifier comprises an IP address and a port number of the audio and video recording equipment; an identification is stored including the call type and the floor IP address of the target call.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for recording audio and video, comprising:
establishing a transmission channel with the audio and video recording equipment;
if the target call is detected to start, sending an SIP call message to the sound recording and video recording equipment, so that the sound recording and video recording equipment creates a call recording file corresponding to the target call according to the SIP call message, and returning an SIP completion receipt indicating that the creation of the call recording file is completed; the SIP calling message carries the calling type of the target call and the IP address of each calling party;
after receiving the SIP finished receipt, according to the call type of the target call, the IP addresses of all calling parties, the IP address and the port number of the sound recording and video recording equipment, obtaining a backup audio and video data stream carrying a target identifier and a storage identifier, and sending the backup audio and video data stream to the sound recording and video recording equipment through the transmission channel, so that after the sound recording and video recording equipment receives the backup audio and video data stream, according to the storage identifier, the backup audio and video data stream is written into a call recording file corresponding to the target call;
the destination identifier comprises an IP address and a port number of the sound recording and video recording equipment; and the storage identification comprises the call type and the IP address of the speaking right party of the target call.
2. The audio recording method according to claim 1, wherein after receiving the SIP receipt, obtaining a backup audio and video data stream carrying a destination identifier and a storage identifier according to the call type of the target call, the IP addresses of the calling parties, and the IP address and the port number of the audio recording device, and sending the backup audio and video data stream to the audio recording device through the transmission channel, so that after receiving the backup audio and video data stream, the audio recording device writes the backup audio and video data stream into a call recording file corresponding to the target call according to the storage identifier, further comprising:
if the target call is detected to be ended, sending an SIP (session initiation protocol) ending message to the sound recording and video recording equipment, so that the sound recording and video recording equipment acquires the call information of the target call according to the SIP ending message and establishes an index of the call recording file according to the call information;
wherein the call information includes: any number of start time, end time, duration of call, type of call, calling party IP address, and calling party UDN of the target call.
3. The audio recording method according to claim 1, wherein the obtaining of the backup audio and video data stream carrying the destination identifier and the storage identifier according to the call type of the target call, the IP addresses of the calling parties, and the IP address and the port number of the audio recording device specifically comprises:
and modifying the IP head field and the UDP head field of the original audio and video data stream according to the call type of the target call, the IP addresses of all the parties of the call and the IP addresses and port numbers of the audio and video recording equipment to obtain the backup audio and video data stream carrying the target identifier and the storage identifier.
4. The audio recording method according to any one of claims 1 to 3, wherein if it is detected that the target call is started, sending an SIP call message to the audio recording device, specifically comprising:
if the starting of the target call is detected, the call type of the target call is obtained;
and sending the SIP call message carrying the call type of the target call and the IP address of each calling party to the sound recording and video recording equipment.
5. A method for recording audio and video, comprising:
establishing a transmission channel between the H-TCF and the H-TCF, wherein the H-TCF is the H-TCF to which the audio and video recording equipment belongs, and the H-TCF is the short name of a cluster control function body;
receiving SIP call information sent by the H-TCF, creating a call record file corresponding to a target call according to the SIP call information, and returning an SIP completion receipt indicating that the creation of the call record file is completed to the H-TCF; the SIP calling message carries the calling type of the target call and the IP address of each calling party;
receiving backup audio and video data streams which are transmitted by the H-TCF through the transmission channel and carry a target identifier and a storage identifier, and writing the backup audio and video data streams into the call recording file corresponding to the target call according to the storage identifier;
the destination identifier comprises an IP address and a port number of the sound recording and video recording equipment; and the storage identification comprises the call type and the IP address of the speaking right party of the target call.
6. The audio recording method according to claim 5, wherein the receiving the backup audio and video data stream carrying a destination identifier and a storage identifier sent by the H-TCF through the transmission channel, and writing the backup audio and video data stream into the corresponding call recording file according to the storage identifier further comprises:
after receiving the SIP ending message sent by the H-TCF, acquiring the call information of the target call according to the SIP ending message, and establishing an index of the call record file according to the call information;
wherein the call information includes: any number of start time, end time, duration of call, type of call, calling party IP address, and calling party UDN of the target call.
7. An audio recording device, comprising:
the creating module is used for creating a transmission channel with the audio and video recording equipment;
the request module is used for sending an SIP call message to the sound recording and video recording equipment if the target call is detected to start, so that the sound recording and video recording equipment creates a call recording file corresponding to the target call according to the SIP call message and returns an SIP completion receipt indicating that the creation of the call recording file is completed; the SIP calling message carries the calling type of the target call and the IP address of each calling party;
a data sending module, configured to receive the SIP receipt, obtain a backup audio and video data stream carrying a destination identifier and a storage identifier according to the call type of the target call, the IP addresses of the calling parties, and the IP address and port number of the audio and video recording device, and send the backup audio and video data stream to the audio and video recording device through the transmission channel, so that after the audio and video recording device receives the backup audio and video data stream, the backup audio and video data stream is written into a call recording file corresponding to the target call according to the storage identifier;
the destination identifier comprises an IP address and a port number of the sound recording and video recording equipment; and the storage identification comprises the call type and the IP address of the speaking right party of the target call.
8. An audio recording device, comprising:
the method comprises the steps of constructing a channel module for establishing a transmission channel between the H-TCF and the H-TCF, wherein the H-TCF is an H-TCF to which a sound recording and video recording device belongs, and the H-TCF is a short name of a cluster control function body;
a creating and recording module, configured to receive an SIP call message sent by the H-TCF, create a call recording file corresponding to a target call according to the SIP call message, and return an SIP completion receipt indicating that the creation of the call recording file is completed to the H-TCF; the SIP calling message carries the calling type of the target call and the IP address of each calling party;
the storage data module is used for receiving backup audio and video data streams which are sent by the H-TCF through the transmission channel and carry a target identifier and a storage identifier, and writing the backup audio and video data streams into the call recording file corresponding to the target call according to the storage identifier;
the destination identifier comprises an IP address and a port number of the sound recording and video recording equipment; and the storage identification comprises the call type and the IP address of the speaking right party of the target call.
9. An electronic device comprising a memory, a processor and a computer program stored on said memory and executable on said processor, wherein said processor when executing said program performs the steps of the method of sound recording according to any one of claims 1 to 6.
10. A non-transitory computer readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the sound recording method according to any one of claims 1 to 6.
CN202011463642.7A 2020-12-11 2020-12-11 Recording method and device Active CN112769751B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011463642.7A CN112769751B (en) 2020-12-11 2020-12-11 Recording method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011463642.7A CN112769751B (en) 2020-12-11 2020-12-11 Recording method and device

Publications (2)

Publication Number Publication Date
CN112769751A CN112769751A (en) 2021-05-07
CN112769751B true CN112769751B (en) 2022-04-19

Family

ID=75693800

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011463642.7A Active CN112769751B (en) 2020-12-11 2020-12-11 Recording method and device

Country Status (1)

Country Link
CN (1) CN112769751B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141707B (en) * 2007-03-29 2011-08-10 中兴通讯股份有限公司 Digital cluster system and cluster call establishment and release method
CN101959143B (en) * 2010-10-28 2012-10-10 哈尔滨工业大学 Method for selectively recording during group calling of dispatching desk in digital trunking system
CN104901922A (en) * 2014-03-04 2015-09-09 中兴通讯股份有限公司 Data service processing method and device based on session initiation protocol (SIP)
CN105828351B (en) * 2015-01-06 2019-04-26 普天信息技术有限公司 The method and system that a kind of pair of terminal or group are monitored
CN107734470A (en) * 2016-08-12 2018-02-23 北京信威通信技术股份有限公司 The media recording method and device of cluster communication
CN109120873B (en) * 2017-06-23 2021-01-15 普天信息技术有限公司 Video recording method for video scheduling in broadband cluster system

Also Published As

Publication number Publication date
CN112769751A (en) 2021-05-07

Similar Documents

Publication Publication Date Title
CN101605184B (en) Method and device for VoIP recording
KR100971609B1 (en) Method and system for improving performance of connection to receiver
CN106162574A (en) Group system is applied universal retrieval method, server and terminal
US7466812B1 (en) Connecting an endpoint to a conference call
JP6522159B2 (en) Voice communication processing method and system, electronic device, and storage medium
US9124706B2 (en) Method and system for interoperation between multiple conference systems
JP6974688B2 (en) Communication methods, terminals, telecommunications company servers and smart devices
US8903905B2 (en) Method and system for automatically storing a communication session
WO2020024775A1 (en) Data transmission control method and related apparatus
CN104219401B (en) The distribution method of a kind of phone number, Apparatus and system
CN102893573A (en) Conference reservation method and system
CN104796408B (en) Single-point live login method and single-point live login device
CN103327374A (en) Monitoring method and network television set top box
EP1883256A1 (en) A method, system and device for realizing the record of the speech data in semi-duplex talking
EP3038299A1 (en) Method for recording session information and recording server
CN101610455B (en) Method for realizing member management in wireless video conference and system thereof
CN112769751B (en) Recording method and device
CN104883460B (en) Access the processing method and processing device of IP-based videoconference
CN101729995A (en) Method and device for controlling speaking right in cluster calling
US20200137129A1 (en) Video conference implementation method, server and computer readable storage medium
CN103812844A (en) Method and device for security access of conference
CN108337244B (en) SIP protocol-based intercom communication method, server, medium and equipment
CN106162563A (en) Group system user management method and server
JP4787072B2 (en) server
CN112261490B (en) Video sharing method and device, application function entity and dialing software 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