CN112468456B - Monitoring method based on SIP terminals and terminals - Google Patents

Monitoring method based on SIP terminals and terminals Download PDF

Info

Publication number
CN112468456B
CN112468456B CN202011257918.6A CN202011257918A CN112468456B CN 112468456 B CN112468456 B CN 112468456B CN 202011257918 A CN202011257918 A CN 202011257918A CN 112468456 B CN112468456 B CN 112468456B
Authority
CN
China
Prior art keywords
terminal
monitoring
sip
terminals
sip address
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
CN202011257918.6A
Other languages
Chinese (zh)
Other versions
CN112468456A (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.)
Guangdong Baolun Electronics Co ltd
Original Assignee
Guangzhou Baolun Electronics 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 Guangzhou Baolun Electronics Co Ltd filed Critical Guangzhou Baolun Electronics Co Ltd
Priority to CN202011257918.6A priority Critical patent/CN112468456B/en
Publication of CN112468456A publication Critical patent/CN112468456A/en
Application granted granted Critical
Publication of CN112468456B publication Critical patent/CN112468456B/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/1101Session protocols
    • H04L65/1104Session initiation protocol [SIP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/30Network architectures or network communication protocols for network security for supporting lawful interception, monitoring or retaining of communications or communication related information
    • H04L63/306Network architectures or network communication protocols for network security for supporting lawful interception, monitoring or retaining of communications or communication related information intercepting packet switched data communications, e.g. Web, Internet or IMS communications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/30Network architectures or network communication protocols for network security for supporting lawful interception, monitoring or retaining of communications or communication related information
    • H04L63/308Network architectures or network communication protocols for network security for supporting lawful interception, monitoring or retaining of communications or communication related information retaining data, e.g. retaining successful, unsuccessful communication attempts, internet access, or e-mail, internet telephony, intercept related information or call content
    • 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
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/22Arrangements for supervision, monitoring or testing
    • H04M3/2281Call monitoring, e.g. for law enforcement purposes; Call tracing; Detection or prevention of malicious calls

Abstract

The invention relates to a monitoring method and a terminal based on SIP terminals, wherein the method comprises the following steps: step 1, two terminals (A, B) of a call are found out, and a request is sent to the terminal A; step 2: receiving a response returned by the terminal A, if receiving the monitoring request, continuing, otherwise, ending the processing; and step 3: establishing a conversation with the terminal A, analyzing an SIP address of the terminal B, and sending a request to the terminal B; and 4, step 4: receiving a response returned by the terminal B, if the monitoring request is accepted, continuing to execute the step 5, otherwise, ending the processing; and 5: establishing a conversation with a terminal B, and analyzing an SIP address of the terminal B; step 6: and comparing the analyzed SIP address of the terminal A with the SIP address of the terminal A obtained in advance, if the analyzed SIP address of the terminal A is consistent with the SIP address of the terminal A, successfully monitoring, and otherwise, failing to monitor. The invention does not need to monitor and negotiate through a server, and meets the requirements of more application scenes.

Description

Monitoring method based on SIP terminals and terminals
Technical Field
The invention relates to the technical field of call monitoring among terminals, in particular to a monitoring method and a terminal based on SIP terminals.
Background
The SIP (Session Initiation Protocol) is a multimedia communication Protocol established by IETF (Internet Engineering Task Force), is a text-based application layer control Protocol for creating, modifying and releasing sessions of one or more participants, is an Internet-derived IP voice and video Session control Protocol, and has the characteristics of flexibility, easy implementation, convenient expansion and the like.
The call monitoring is an important application function of a traditional telephone and a novel Internet telephone, and an upper level has authority to acquire bidirectional audio and video data in a lower level call in real time.
At present, the SIP is adopted for call monitoring, the data of a monitored terminal is generally sent to the monitoring terminal in a SIP server negotiation mode, and once the SIP server fails or completely lacks the SIP server, the call monitoring can not be carried out any more. In an actual application scenario, there is an application requirement that a terminal directly performs point-to-point communication with the terminal and is not connected with an SIP server. In such application scenarios, the server negotiation interception manner is naturally invalid, and therefore, it is necessary to provide a solution for call interception between SIP-based terminals.
Disclosure of Invention
Aiming at the defects of the prior art, one of the purposes of the invention is to provide a monitoring method based on SIP terminals, which can solve the problem of monitoring conversation between terminals;
the second purpose of the present invention is to provide a monitoring terminal based on SIP terminals, which can solve the problem of monitoring the call between the terminals.
The technical scheme for realizing one purpose of the invention is as follows: a monitoring method based on SIP terminals includes the following steps:
step 1: finding out two terminals which are currently talking with each other, respectively recording the two terminals as a terminal A and a terminal B, acquiring an SIP address of the terminal A in advance, and sending an INVITE request to the terminal A;
step 2: receiving a response returned by the terminal A, wherein the returned response comprises the SIP address of the terminal B, if the response returned by the terminal A is the monitoring receiving request, continuing to execute the step 3, otherwise, directly ending the processing;
and step 3: establishing a conversation with the terminal A, analyzing the SIP address of the terminal B according to the response returned by the terminal A, and sending an INVITE request to the terminal B according to the SIP address of the terminal B;
and 4, step 4: receiving a response returned by the terminal B, wherein the returned response comprises the SIP address of the terminal A, if the response returned by the terminal B is to receive the monitoring request, continuing to execute the step 5, otherwise, directly ending the processing;
and 5: establishing a conversation with the terminal B, and analyzing the SIP address of the terminal B according to the response returned by the terminal B;
step 6: and resolving the SIP address of the terminal A according to the response returned by the terminal B, comparing the resolved SIP address of the terminal A with the SIP address of the terminal A obtained in advance, if the two are consistent, the monitoring is successful, otherwise, the monitoring is failed.
Further, after the monitoring is successful, the method also comprises the steps of receiving audio and video data of the terminal A and the terminal B, decoding and playing the audio and video data, and informing a user of successful monitoring.
Further, after the monitoring fails, the method also includes hanging up the call between the terminal a and the terminal B, and notifying the user that the monitoring fails.
Further, the specific implementation process of the monitoring terminal receiving the response returned by the terminal B includes,
after receiving the INVITE request sent by the monitoring terminal, the terminal a accepts the monitoring request and returns a response if the terminal a is currently in a call, and refuses to accept the monitoring request and returns an empty response if the terminal a is not in a call.
Further, the monitoring terminal establishes a one-way call with the terminal a: only the audio data of the terminal a can be received and the audio data on the listening terminal is prohibited from being transmitted to the terminal a.
Further, the monitoring terminal establishes a one-way call with the terminal B: only the audio data of terminal B can be received and the audio data on the listening terminal is prohibited from being transmitted to terminal B.
Further, the INVITE request is accompanied by a listen command.
The second technical scheme for realizing the aim of the invention is as follows: a listening terminal comprises a memory for storing program instructions;
and the processor is used for operating the program instruction so as to execute the steps of the monitoring method based on the SIP terminals.
The invention has the beneficial effects that: the invention forms a self-defined extension SIP protocol, the monitoring terminal and the monitored terminal are mutually matched, and monitoring negotiation is not required to be carried out through a server, thus meeting the requirements of more application scenes and being convenient for practical popularization and application.
Drawings
FIG. 1 is a schematic flow chart of the present invention.
Detailed description of the preferred embodiments
The invention will be further described with reference to the accompanying drawings and specific embodiments:
as shown in fig. 1, a monitoring method based on SIP terminals includes the following steps:
step 1: and setting a monitoring terminal, wherein the monitoring terminal has the authority to inquire and monitor other terminals. The terminal set as the monitoring terminal can inquire the state (whether communication is in progress) of any other terminal and monitor the conversation between the terminals, including monitoring audio and video conversation. The invention can also be applied to the monitoring terminal.
Step 2: the monitoring terminal finds out two terminals currently talking with each other, which are respectively marked as a terminal a and a terminal B, and the monitoring terminal obtains the SIP address of the terminal a (certainly, the monitoring terminal may also be the terminal B, that is, any one of the two talking terminals may be used). Subsequently, the listening terminal sends an INVITE request (i.e. session invitation in SIP protocol) to terminal a, where the INVITE request is accompanied by a listening command, and the listening command may be in a custom or existing generic listening command format. The monitoring of the terminal can be realized through the monitoring command.
And step 3: and the monitoring terminal receives the response returned by the terminal A, the returned response comprises the SIP address of the terminal B, if the response returned by the terminal A is the monitoring receiving request, the step 4 is continuously executed, otherwise, the processing is directly finished, namely, the processing is carried out according to the monitoring failure. After receiving the INVITE request sent by the monitoring terminal, the terminal a responds to the request and responds. Generally, if the terminal a is currently in a call, the terminal a will accept its monitoring request, and if the terminal a is not in a call, the terminal a will not accept its monitoring request, that is, will not return a response or return an empty response. Of course, the adjustment can be carried out according to the actual situation.
And 4, step 4: the monitoring terminal establishes a call with the terminal A, at the moment, the monitoring terminal and the terminal A are in one-way call, only the audio data of the terminal A can be received, and the audio data on the monitoring terminal is forbidden to be sent to the terminal A. And resolving the SIP address of the terminal B according to the response returned by the terminal A, and sending an INVITE request to the terminal B according to the SIP address of the terminal B, wherein the INVITE request is also accompanied with a monitoring command.
And 5: and the monitoring terminal receives the response returned by the terminal B, the returned response comprises the SIP address of the terminal A, if the response returned by the terminal B is to receive the monitoring request, the step 6 is continuously executed, otherwise, the processing is directly finished, namely, the processing is carried out according to the monitoring failure. Similarly, after receiving the INVITE request sent by the monitoring terminal, the terminal B will respond to the INVITE request and respond. Normally, if the terminal B is currently in a call, the monitoring request will be received, and if the terminal B is not in a call, the monitoring request will not be received, which of course may be adjusted according to actual situations.
Step 6: the monitoring terminal establishes a call with the terminal B, at the moment, the monitoring terminal and the terminal B are in one-way call, only the audio data of the terminal B can be received, the audio data on the monitoring terminal is forbidden to be sent to the terminal B, and the SIP address of the terminal B is analyzed according to the response returned by the terminal B.
And 7: the monitoring terminal analyzes the SIP address of the terminal A according to the response returned by the terminal B, compares the analyzed SIP address of the terminal A with the SIP address of the terminal A obtained in advance, receives the audio and video data of the terminal A and the terminal B and decodes and plays the audio and video data if the two are consistent, informs a user of successful monitoring, and hangs up the call between the terminal A and the terminal B if the two are inconsistent, and informs the user of failed monitoring. Therefore, the audio and video call can be monitored in the server-free environment.
Through the processing of the steps, the monitoring negotiation work is put on the terminal to form a self-defined extended SIP protocol, the monitoring terminal and the monitored terminal are matched with each other, the monitoring negotiation does not need to be carried out through a server, the method can be applied to the SIP visual talkback environment without the server, the call monitoring function is realized, the requirements of more application scenes are met, and the method is convenient to popularize and apply practically.
The invention also relates to a listening terminal comprising,
a memory for storing program instructions;
and the processor is used for operating the program instruction so as to execute the steps of the monitoring method based on the SIP terminals.
The embodiments disclosed in this description are only an exemplification of the single-sided characteristics of the invention, and the scope of protection of the invention is not limited to these embodiments, and any other functionally equivalent embodiments fall within the scope of protection of the invention. Various other changes and modifications to the above-described embodiments and concepts will become apparent to those skilled in the art from the above description, and all such changes and modifications are intended to be included within the scope of the present invention as defined in the appended claims.

Claims (8)

1. A monitoring method based on SIP terminals is applied to monitoring terminals and is characterized by comprising the following steps:
step 1: finding out two terminals which are currently talking with each other, respectively recording the two terminals as a terminal A and a terminal B, acquiring an SIP address of the terminal A in advance, and sending an INVITE request to the terminal A;
step 2: receiving a response returned by the terminal A, wherein the returned response comprises the SIP address of the terminal B, if the response returned by the terminal A is the monitoring receiving request, continuing to execute the step 3, otherwise, directly ending the processing;
and step 3: establishing a conversation with the terminal A, analyzing the SIP address of the terminal B according to the response returned by the terminal A, and sending an INVITE request to the terminal B according to the SIP address of the terminal B;
and 4, step 4: receiving a response returned by the terminal B, wherein the returned response comprises the SIP address of the terminal A, if the response returned by the terminal B is to receive the monitoring request, continuing to execute the step 5, otherwise, directly ending the processing;
and 5: establishing a conversation with the terminal B, and analyzing the SIP address of the terminal B according to the response returned by the terminal B;
step 6: and resolving the SIP address of the terminal A according to the response returned by the terminal B, comparing the resolved SIP address of the terminal A with the SIP address of the terminal A obtained in advance, if the two are consistent, the monitoring is successful, otherwise, the monitoring is failed.
2. The monitoring method based on the SIP terminals as claimed in claim 1, further comprising receiving audio and video data of the terminal A and the terminal B and decoding and playing the audio and video data after the monitoring is successful, and informing a user of successful monitoring.
3. The method according to claim 1, further comprising suspending the call between the terminal a and the terminal B after the monitoring fails, and notifying the user of the monitoring failure.
4. The method according to claim 1, wherein the specific implementation procedure of the listening terminal receiving the response returned by terminal B comprises,
after receiving the INVITE request sent by the monitoring terminal, the terminal a accepts the monitoring request and returns a response if the terminal a is currently in a call, and refuses to accept the monitoring request and returns an empty response if the terminal a is not in a call.
5. The monitoring method based on the SIP terminal as claimed in claim 1, wherein the monitoring terminal establishes the one-way call with the terminal A: only the audio data of the terminal a can be received and the audio data on the listening terminal is prohibited from being transmitted to the terminal a.
6. The monitoring method based on the SIP terminal according to claim 1, wherein the monitoring terminal establishes the one-way call with the terminal B: only the audio data of terminal B can be received and the audio data on the listening terminal is prohibited from being transmitted to terminal B.
7. The listening method between SIP terminals according to claim 1, wherein the INVITE request is accompanied by a listening command.
8. A listening terminal, comprising,
a memory for storing program instructions;
a processor for executing said program instructions to perform the steps of the SIP inter-terminal based listening method according to any of claims 1-7.
CN202011257918.6A 2020-11-11 2020-11-11 Monitoring method based on SIP terminals and terminals Active CN112468456B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011257918.6A CN112468456B (en) 2020-11-11 2020-11-11 Monitoring method based on SIP terminals and terminals

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011257918.6A CN112468456B (en) 2020-11-11 2020-11-11 Monitoring method based on SIP terminals and terminals

Publications (2)

Publication Number Publication Date
CN112468456A CN112468456A (en) 2021-03-09
CN112468456B true CN112468456B (en) 2022-04-26

Family

ID=74825573

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011257918.6A Active CN112468456B (en) 2020-11-11 2020-11-11 Monitoring method based on SIP terminals and terminals

Country Status (1)

Country Link
CN (1) CN112468456B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1997069A (en) * 2006-11-23 2007-07-11 华为技术有限公司 A method and terminal for special service
WO2009003334A1 (en) * 2007-06-29 2009-01-08 Zte Corporation Method and system for realizing monitoring of calling center system by sip soft-terminal
CN102546678A (en) * 2010-12-09 2012-07-04 中国科学院沈阳计算技术研究所有限公司 IP (internet protocol)-based coal mine dispatching communication system and control method thereof
CN105306755A (en) * 2014-07-29 2016-02-03 杭州华为企业通信技术有限公司 Quality detection method and device for contact centre

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101035036B (en) * 2007-04-19 2011-03-02 中兴通讯股份有限公司 Legal monitoring system and method
FR3091404A1 (en) * 2018-12-28 2020-07-03 Orange Method for processing voice messages, method for deactivating DTMF coding and method for processing a request for deactivation of DTMF coding.

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1997069A (en) * 2006-11-23 2007-07-11 华为技术有限公司 A method and terminal for special service
WO2009003334A1 (en) * 2007-06-29 2009-01-08 Zte Corporation Method and system for realizing monitoring of calling center system by sip soft-terminal
CN102546678A (en) * 2010-12-09 2012-07-04 中国科学院沈阳计算技术研究所有限公司 IP (internet protocol)-based coal mine dispatching communication system and control method thereof
CN105306755A (en) * 2014-07-29 2016-02-03 杭州华为企业通信技术有限公司 Quality detection method and device for contact centre

Also Published As

Publication number Publication date
CN112468456A (en) 2021-03-09

Similar Documents

Publication Publication Date Title
US10341443B2 (en) Multimodal conversation transfer
US7127487B1 (en) System and method for sidebar functionality in a regular conference system
US9602553B2 (en) Method, apparatus, and system for implementing VOIP call in cloud computing environment
US20080013447A1 (en) Method and Apparatus for Survivable Failover in Communication System
US20040037406A1 (en) Method and system for exchanging instant messages in a multi-party conference call
US9787732B2 (en) System and method for integrating VoIP client for conferencing
AU2016201286B2 (en) Method and apparatus for seamlessly implementing transferring dual-party call into conference
US8250147B2 (en) Remote call control and conferencing using paired devices
JP4979274B2 (en) Method, system and apparatus for debugging live calls
CN112468456B (en) Monitoring method based on SIP terminals and terminals
KR101387193B1 (en) System for controlling execution of application in mobile communication apparatus and controlling method thereof
US9398254B2 (en) Method for implementing telepresence technology and telepresence device
CN109067659B (en) Session establishing method, router and session system
US11785058B2 (en) Music playing method and device
CN108337244B (en) SIP protocol-based intercom communication method, server, medium and equipment
JP2002157175A (en) Server, client, gateway, and communication starting method
KR100695391B1 (en) System and method for providing the additional multimedia contents during communication in SIP
CN111865651B (en) VoIP mobile equipment dynamic simulation debugging method, device and system
CN107360116B (en) IMS multi-party session separation method and device
US7565434B1 (en) Method and system for canceling setup of a packet-based real-time media conference session
WO2017032108A1 (en) Video communication method, network device, terminal and system
WO2023273369A1 (en) Conference call method and apparatus, and storage medium and electronic device
CN109450947B (en) Method for carrying out Voip audio and video communication by bypassing udp to penetrate Nat
JP2006013916A (en) Real time communication system, real time communication method and real time communication program
CN113572623A (en) Conference control system and method

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
CP03 Change of name, title or address

Address after: No. 56 Nanli East Road, Shiqi Town, Panyu District, Guangzhou City, Guangdong Province, 510000

Patentee after: Guangdong Baolun Electronics Co.,Ltd.

Address before: 510000 Building 1, industrial zone B, Zhongcun street, Panyu District, Guangzhou City, Guangdong Province

Patentee before: GUANGZHOU ITC ELECTRONIC TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address