WO2020010718A1 - Sip-based log time correction method and device, and storage medium - Google Patents

Sip-based log time correction method and device, and storage medium Download PDF

Info

Publication number
WO2020010718A1
WO2020010718A1 PCT/CN2018/108086 CN2018108086W WO2020010718A1 WO 2020010718 A1 WO2020010718 A1 WO 2020010718A1 CN 2018108086 W CN2018108086 W CN 2018108086W WO 2020010718 A1 WO2020010718 A1 WO 2020010718A1
Authority
WO
WIPO (PCT)
Prior art keywords
communication
log
terminal
information
time
Prior art date
Application number
PCT/CN2018/108086
Other languages
French (fr)
Chinese (zh)
Inventor
张秀凯
乔磊
刘广伟
郭勤勤
尤禹昇
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2020010718A1 publication Critical patent/WO2020010718A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • 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]

Definitions

  • the present application relates to the field of communication technologies, and in particular, to a log time correction method, device, and computer-readable storage medium based on the SIP protocol.
  • the time sent or accepted by the PAPHONE end and the time received or issued by the peer server The time may be different in milliseconds or even seconds.
  • the inventor found that the integrated display of sip messages and analysis of the problem will lead to the confusion of audio and / or video call sip message trajectory display, and it will not be able to correctly analyze the sound and / Or the problem of the sip message during the whole video call makes the analysis of the problem more error.
  • the inventor also realized that the interactive information sent or received by the same id will pass through different components, and each component's recording of the information point in time will have a large time difference, and directly perform audio and / or according to the component recording time.
  • Video presentations can confuse interactive presentations.
  • An embodiment of the present application provides a log time correction method based on the SIP protocol, which includes: a log server receives a terminal communication log of a current terminal, extracts key information in the terminal communication log, and determines a communication peer end according to the key information. Peer communication information corresponding to the terminal communication log; acquiring a first communication time of the peer communication information and a second communication time of any piece of communication information adjacent to the peer communication information time; based on An average value of the first communication time and the second communication time corrects a terminal communication information time corresponding to the terminal communication log on the current terminal.
  • An embodiment of the present application further provides a log time correction device based on the SIP protocol, including: an extraction module, used by a log server to receive a terminal communication log of a current terminal, and extract key information in the terminal communication log; a determining module, Determining the peer communication information corresponding to the terminal communication log among the communication peers according to the key information; an acquisition module, configured to acquire a first communication time of the peer communication information and communication information with the peer A second communication time of any piece of communication information that is adjacent in time; a correction module, configured to correct, on the current terminal, the corresponding communication log of the terminal according to the average value of the first communication time and the second communication time; Terminal communication information time.
  • an extraction module used by a log server to receive a terminal communication log of a current terminal, and extract key information in the terminal communication log
  • a determining module Determining the peer communication information corresponding to the terminal communication log among the communication peers according to the key information
  • an acquisition module configured to acquire a first communication time of the peer communication information and communication information with
  • An embodiment of the present application further provides a computer-readable non-volatile storage medium storing a computer program, which when executed, implements the following operations of the log time correction method based on the SIP protocol: the log server receives terminal communication of the current terminal Log, extract key information in the communication log of the terminal; determine the corresponding communication information of the communication peer corresponding to the communication log of the terminal according to the key information; obtain the first communication time and A second communication time of any piece of communication information that is temporally adjacent to the peer communication information; and correcting the corresponding terminal communication on the current terminal according to an average of the first communication time and the second communication time The terminal communication information time of the log.
  • An embodiment of the present application further provides a server including: one or more processors; a memory; and one or more application programs, wherein the one or more application programs are stored in the memory and configured to be provided by The one or more processors execute, the one or more applications are configured to perform the following operations of the log time correction method based on the SIP protocol: the log server receives the terminal communication log of the current terminal, and extracts the terminal communication log Key information in the system; determining the peer communication information corresponding to the terminal communication log among the communication peers according to the key information; obtaining a first communication time of the peer communication information and a time of communication information with the peer The second communication time of any one piece of communication information adjacent to each other; and correcting the terminal communication information time corresponding to the terminal communication log on the current terminal according to the average value of the first communication time and the second communication time.
  • the embodiment of the present application provides a method for correcting log time based on the SIP protocol.
  • the time of the sip message on the paphone end is adjusted by the time of the peer (server), so that the sip message on the paphone end can be displayed smoothly and interactively on the analysis platform
  • To display the messages on the paphone side it is convenient to analyze the problem according to the correct message interaction sequence, reduce the query manpower and time of the sip problem, and improve the operation and maintenance efficiency of multimedia information.
  • query the peer sip messages through key fields to query the paphone side and the peer side. Sip messages can be consistent and unique.
  • FIG. 1 is a schematic flowchart of an implementation manner in a typical embodiment of a log time correction method based on the SIP protocol of this application;
  • FIG. 2 is a schematic flowchart of another implementation manner in a typical embodiment of a log time correction method based on the SIP protocol of this application;
  • FIG. 3 is a schematic structural diagram of a typical embodiment of a log time correction device based on the SIP protocol of the present application
  • FIG. 4 is a schematic structural diagram of an embodiment of a server of the present application.
  • a method for correcting log time based on the SIP protocol provided in the embodiments of the present application is mainly applied to multimedia audio and video calls based on the SIP protocol.
  • SIP Session Initialization Protocol
  • IETF Internet Engineering Task Force
  • It is a text-based application-layer control protocol for creating, modifying, and releasing sessions for one or more participants.
  • CS Circuit Switched, Circuit Switched
  • NGN Next Generation Network, Next Generation Network
  • IMS IP Multimedia Subsystem, IP Multimedia Subsystem
  • Services can also be applied to featured services such as presence (presence) and instant messaging (instant messaging).
  • our audio and video calls are established through the SIP protocol.
  • the same message sent or received by the peer is located through the key information of the log uploaded to the server by the current terminal, and the current terminal is based on the message.
  • the time of the current message is corrected, so that the audio and video can smoothly and smoothly show the entire flow of audio and video calls.
  • the peer end in the embodiment of the present application is the server end, and the key fields are explanations of key information, which indicate the same content in the sip message.
  • the embodiment of the present application provides a log time correction method based on the SIP protocol.
  • the method includes S100 to S400.
  • the log server receives a terminal communication log of the current terminal, and extracts key information in the terminal communication log.
  • the receiving of the terminal communication log of the current terminal by the log server includes:
  • the log server receives the communication logs uploaded by the current terminal and the communication peer.
  • the current terminal uploads the logs as terminal communication logs and the communication uploads the logs as peer communication logs. There are one or more peers communicating with the current terminal.
  • the current communication terminal is paphone. Because in the SIP-based multimedia communication, it has specific key information, which is mainly a key field.
  • the From field contains a display name (such as: Alice) and a SIP or SIPS URI (sip: alice @ atlanta. com), where the URI is used to identify the original originator of the request.
  • the From field must contain a new "tag" parameter generated by UAC.
  • the TO domain contains the display name and a SIP or SIPS URI.
  • the request will be transmitted to this URI first.
  • the address in this domain may or may not be the ultimate recipient of the request.
  • Call-id Contains a global unique identifier that uniquely identifies this call. It is generated by mixing a random string with the softphone's own name or IP address. All requests of any UA in the conversation are consistent with the Call-id of all responses.
  • CSeq or Command Sequence used to distinguish and use as the order of transactions, including an integer and a request name, the CSeq number is sequentially increasing.
  • Via It is used to describe the path that the request is currently experiencing and marks the path that the response should go through.
  • the branch ID parameter in the Via header field provides a flag for the transaction and is used by the proxy to check the cyclic route.
  • the device When the device reaches the next node (hop), it needs to include the Via domain in the header domain.
  • UAC When UAC creates a request, it must add a Via domain in the header domain. If there is more than one Via header field value in the response, the UAC should discard the message.
  • Contact Provides the contact method for accessing the specific UA instance for subsequent requests.
  • Max-Forwards The maximum number of forwards limits the number of forwards in the communication. It consists of an integer, and each time it is forwarded, the integer is decremented by one.
  • Route Used to force a request to go through a list of proxy routes.
  • Route header field used for stateless transaction routing. Inbound server to switch traffic, etc.
  • the key information includes one or more of a communication identifier (Call-id), a command sequence (Cseq), and a flow (Inbound).
  • a communication identifier Call-id
  • a command sequence Cseq
  • a flow Inbound
  • S200 Determine, according to the key information, the communication information of the peer end corresponding to the communication log of the terminal among the communication peer ends.
  • At least one key information is extracted from the terminal communication log, where the key information is a preset field, and the same key information is found in the peer communication log based on the key information extracted from the terminal communication log. .
  • the key information can be used to determine whether the communication message corresponding to the peer communication log and the message corresponding to the terminal communication log are the same message. That is, when the same key information is found in the peer communication log, it means that the communication message corresponding to the peer communication log is the same as the message corresponding to the terminal communication log.
  • the communication message corresponding to the peer communication log is called peer communication information, the communication message corresponding to the terminal communication log becomes a terminal communication message, and both the peer communication information and the terminal communication information are sip messages.
  • the communication message corresponding to the terminal communication log is a sip message.
  • the sip message is composed of a start line, a message header, a blank line indicating the end of the message header, and an optional message body.
  • the start line of a SIP message is divided into two types: a request-line and a status-line.
  • the request line is the start line of the request message
  • the status line is the start line of the response message. It can be seen that the request message includes a request line, a message header, a blank line, and a message body;
  • the response message includes a status line, a message header, a blank line, and a message body.
  • the key field is actually the content in the sip message. All logs are automatically uploaded to the log processing server by paphone.
  • the logs will record the sip messages. Multiple key fields are in the sip message.
  • the key fields of the sip message in the logs of the same call peer and the paphone end are the same.
  • server When locating the same sip message in the peer (server), multiple key fields used for positioning need to be satisfied at the same time and the same key fields exist in the peer and the paphone to ensure that the positioning information is accurate, thereby ensuring sip The uniqueness of the information.
  • S300 Acquire a first communication time of the peer communication information and a second communication time of any piece of communication information that is adjacent to the peer communication information in time.
  • the time of the sip message in the peer is obtained, and another peer in the peer is The time when the sip message is adjacent to the sip message.
  • the adjacent sip message is the time immediately preceding or following the sip message.
  • the time of the sip information on the peer end is used as the time of the neighboring sip information.
  • the paphone end requests the peer end again.
  • the sip information sent on the paphone end is the target sip information.
  • the time of the sip information is also the time that needs to be adjusted.
  • the time when the peer end receives the sip information is the time when the peer end has the same sip information. You can locate the required sip information through step 1, and you can obtain the time of the same sip information on the peer and the time of an adjacent piece of information on the peer. Specifically, the time of the obtained sip information is the sip information time of the paphone end without adjustment, and the time of the sip message of the opposite end is adjusted by the unified time server. Therefore, the time of the opposite end is used as the reference standard, so The time of the same piece of sip information and the time of adjacent sip information on the opposite end can ensure the timeliness.
  • S400 Correct the terminal communication information time corresponding to the terminal communication log on the current terminal according to an average of the first communication time and the second communication time.
  • the time average is a custom standard, which is helpful for interactive display of the entire process of audio and video calls on the analysis platform.
  • the time on the sip message that the paphone is currently correcting is 10 : 11.
  • the current communication terminal corresponding to the terminal communication log on the current terminal is corrected according to an average value of the first communication time and the second communication time.
  • S500 to S600 are also included.
  • S500 Determine a sending node that the terminal communication information sends to the current terminal according to the terminal communication information time;
  • S600 Send the terminal communication information to the current terminal according to the sending node.
  • the sip message After the correction of the terminal communication information time, based on the time before and after the terminal communicates the message, determine the display trajectory of the terminal communication information before the analysis platform displays it, that is, determine the sending node of each terminal communication information to the analysis platform for display. In this way, the terminal communication information of the current terminal can be smoothly displayed on the analysis platform at the corresponding node.
  • the sip message After the time of the sip message is determined, the sip message is placed at a position corresponding to the time. For example, the time of the sip message is 10:11 minutes.
  • the sip message that has been sorted out it has been included 10:10 and 10:12 sip messages, then adjust the message between 10:10 and 10:12 sip messages to make the sip message flow between 10:10 and 10:12 complete
  • adjust the sip display trajectory After adjusting the adjusted message, adjust the sip display trajectory.
  • send the adjusted sip message to the display terminal (paphone end), so that the entire process of graphical display is smoothly performed on the terminal, and the order of the displayed interactive information is Correct and complete.
  • the node that completes the message at 10:10 is the sending node of the sip message.
  • the communication information of the peer end corresponding to the communication log of the terminal in the communication peer end determined according to the key information includes:
  • the log information is the same and consistent information as the key information in the peer communication log.
  • the log information corresponds to the sip message, and the same and consistent information as the key message is stored in the sip message. Therefore, the peer communication information corresponding to the communication log of the terminal in the communication peer can be determined through the log information, and the log information corresponds to the peer communication information.
  • the method includes:
  • the peer communication log is stored in an index structure.
  • the sip message includes multiple key information
  • the key information in the sip message is extracted and extracted.
  • the index structure is stored, which facilitates step-by-step query.
  • An embodiment of the present application further provides a log time correction device based on the SIP protocol.
  • the method includes:
  • the extraction module 100 is configured for the log server to receive a terminal communication log of a current terminal, and extract key information in the terminal communication log;
  • a determining module 200 configured to determine, according to the key information, the communication information of the peer end corresponding to the communication log of the terminal among the communication peer ends;
  • the obtaining module 300 is configured to obtain a first communication time of the peer communication information and a second communication time of any piece of communication information adjacent to the peer communication information in time;
  • the correction module 400 is configured to correct a terminal communication information time corresponding to the terminal communication log on the current terminal according to an average value of the first communication time and the second communication time.
  • a log time correction device based on the SIP protocol provided in the embodiment of the present application further includes a sending node determination module 500 for determining the terminal communication according to the terminal communication information time.
  • the receiving unit 101 is configured to receive a peer communication log uploaded by a communication peer.
  • a log information determining unit 201 is configured to obtain log information corresponding to the key information in the peer communication log according to the key information; a peer communication information determining unit 202 is configured to determine the log information according to the log information The peer communication information corresponding to the communication log of the terminal in the communication peer end, and the log information corresponds to the peer communication information.
  • the key information includes one or more of a communication identifier, a command sequence, and a traffic.
  • the storage unit 102 is configured to store the peer communication log in an index structure.
  • a log time correction device based on the SIP protocol provided in the embodiment of the present application can implement the foregoing embodiment of the log time correction method based on the SIP protocol.
  • a computer-readable storage medium provided in the embodiment of the present application.
  • the computer-readable storage medium stores a computer program, and when the program is executed by a processor, the log time correction based on the SIP protocol according to any one of the technical solutions is implemented. method.
  • the computer-readable storage medium includes, but is not limited to, any type of disk (including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks), ROM (Read-Only Memory, read-only memory), and RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or Rays card.
  • the storage device includes any medium that stores or transmits information in a readable form by a device (for example, a computer, a mobile phone), and may be a read-only memory, a magnetic disk, or an optical disk.
  • a computer-readable non-volatile storage medium provided in the embodiment of the present application can adjust the time of the sip message on the paphone end by the time of the peer (server), so as to smoothly and smoothly display the message on the paphone end.
  • a method for correcting log time based on the SIP protocol includes: the log server receives a terminal communication log of the current terminal, and extracts key information in the terminal communication log; The peer communication information corresponding to the terminal communication log; acquiring a first communication time of the peer communication information and a second communication time of any piece of communication information adjacent to the peer communication information time; according to the The average value of the first communication time and the second communication time corrects the terminal communication information time corresponding to the terminal communication log on the current terminal.
  • the SIP protocol-based log time correction method makes the sip message trace display of the entire process of SIP audio and video calls more orderly and complete.
  • the adjusted sip message can be more intuitive on the analysis platform. Show the sip information interaction of the call.
  • positioning the peer sip message through preset key fields greatly reduces the manpower and time of querying sip problems, and improves the efficiency of audio and video operation and maintenance.
  • the computer-readable non-volatile storage medium provided in the embodiments of the present application can implement the foregoing embodiment of the log time correction method based on the SIP protocol.
  • the present application further provides a server.
  • the server processor 503, the memory 505, the input unit 507, and the display unit 509 are devices.
  • the memory 505 may be used to store an application program 501 and various functional modules, and the processor 503 runs the application program 501 stored in the memory 505 so as to execute various functional applications and data processing of the device.
  • the memory 505 may be an internal memory or an external memory, or include both an internal memory and an external memory.
  • the internal memory may include a read-only memory (ROM), a programmable ROM (PROM), an electrically programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), a flash memory, or a random access memory.
  • ROM read-only memory
  • PROM programmable ROM
  • EPROM electrically programmable ROM
  • EEPROM electrically erasable programmable ROM
  • flash memory or a random access memory.
  • External storage can include hard disks, floppy disks, ZIP disks, U disks, magnetic tapes, and so on.
  • the memory disclosed in this application includes, but is not limited to, these types of memory.
  • the memory 505 disclosed in this application is only an example and not a limitation.
  • the input unit 507 is used to receive input of signals, and key fields input by the user and operation instructions of the user to perform query retrieval.
  • the input unit 507 may include a touch panel and other input devices.
  • the touch panel can collect the touch operations of the customer on or near it (such as the operation of the customer on the touch panel or near the touch panel using any suitable object or accessory such as a finger or a stylus), and according to the preset
  • the program drives the corresponding connection device; other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as playback control keys, switch keys, etc.), a trackball, a mouse, and an joystick.
  • the display unit 509 may be used to display information input by the customer or information provided to the customer and various menus of the computer device.
  • the display unit 509 may take the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the processor 503 is the control center of the computer equipment. It uses various interfaces and lines to connect various parts of the entire computer. It runs or executes the software programs and / or modules stored in the memory 503, and calls the data stored in the memory to execute Various functions and processing data.
  • the one or more processors 503 shown in FIG. 4 can execute and implement the functions of the extraction module 100, the function of the determination module 200, the function of the acquisition module 300, the function of the correction module 400, and the sending node determination shown in FIG. Functions of the module 500, functions of the sending module 600, functions of the receiving unit 101, functions of the log information determination unit 201, functions of the peer communication information determination unit 202, and functions of the storage unit 102.
  • the server includes one or more processors 503, and one or more memories 505, one or more applications 501, wherein the one or more applications 501 are stored in the memory 505 And is configured to be executed by the one or more processors 503, and the one or more application programs 301 are configured to execute the log time correction method based on the SIP protocol described in the above embodiment.
  • a server provided in the embodiment of the present application adjusts the time of the sip message on the paphone end by the time of the peer (server), so that the message on the paphone end can be smoothly and smoothly displayed; in the embodiment of the present application, a method based on SIP is also provided.
  • a protocol log time correction method includes: a log server receives a terminal communication log of a current terminal, extracts key information in the terminal communication log, and determines a corresponding pair of communication peers corresponding to the terminal communication log according to the key information.
  • Terminal communication information acquiring a first communication time of the peer communication information and a second communication time of any piece of communication information adjacent to the peer communication information in time; according to the first communication time and the first communication time
  • the average value of the two communication times corrects the terminal communication information time corresponding to the terminal communication log on the current terminal.
  • sip questions query manpower and time to improve the operation and maintenance efficiency of multimedia information.
  • the key fields are in the sip message
  • all logs are automatically uploaded to the log processing server by paphone, and no manual intervention is required, so we What is obtained is the log uploaded locally on the paphone end.
  • the log will record the sip message, and many key fields are in the sip message.
  • the key fields of the sip message in the logs of the same call peer and the paphone end are the same.
  • server When locating the same sip message in the peer (server), multiple key fields used for positioning need to be satisfied at the same time and the same key fields exist in the peer and the paphone to ensure that the positioning information is accurate, thereby ensuring sip Consistency and uniqueness of information in the paphone and peer.
  • the SIP protocol-based log time correction method provided in the embodiments of the present application makes the sip message trace display of the entire process of SIP audio and video calls more orderly and complete.
  • the adjusted sip message can be more intuitive on the analysis platform. Show the sip information interaction of the call.
  • locating the peer sip message through preset key fields greatly reduces the manpower and time for querying sip problems, and improves the efficiency of audio and video operation and maintenance.
  • the server provided in this embodiment of the present application can implement the embodiment of the log time correction method based on the SIP protocol provided above.
  • SIP protocol the protocol for which the server provided in this embodiment of the present application can implement the embodiment of the log time correction method based on the SIP protocol provided above.

Landscapes

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

Abstract

The present application relates to the field of communications technologies, and in particular, to an SIP-based log time correction method provided in the embodiments of the present application, the method comprising: a log server receiving a terminal communication log of the current terminal, and extracting key information from the terminal communication log; determining, according to the key information, opposite-terminal communication information in a communication opposite-terminal corresponding to the terminal communication log; acquiring a first communication time of the opposite-terminal communication information and a second communication time of any piece of communication information that is temporally adjacent to the opposite-terminal communication information; and correcting the terminal communication information time corresponding to the terminal communication log on the current terminal according to the average of the first communication time and the second communication time. The present invention adjusts the time of a sip message of a paphone end by means of the time of an opposite-terminal (server), so that the message of the paphone end can be displayed smoothly when the sip message of the paphone end is displayed, in an interactive manner, on an analysis platform, thereby facilitating analyzing issues according to a correct message interaction order, reducing the manpower and time taken to query sip problems, improving the operation and maintenance efficiency of sip information.

Description

基于SIP协议的日志时间校正方法、装置及存储介质Log time correction method, device and storage medium based on SIP protocol
本申请要求于2018年7月9日提交中国专利局、申请号为201810747202.0,发明名称为“基于SIP协议的日志时间校正方法、装置及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on July 9, 2018, with an application number of 201810747202.0, and the invention name is "SIP Protocol-based Log Time Correction Method, Device, and Storage Medium." Citations are incorporated in this application.
技术领域Technical field
本申请涉及通信技术领域,具体涉及一种基于SIP协议的日志时间校正方法、装置及计算机可读存储介质。The present application relates to the field of communication technologies, and in particular, to a log time correction method, device, and computer-readable storage medium based on the SIP protocol.
背景技术Background technique
基于SIP协议的多媒体音和/或视频全流程通话中,PAPHONE端时间和对端服务器时间由于不是同一时间服务器,对于同一条sip信息,PAPHONE端发出或接受的时间和对端服务器接受或发出的时间会存在毫秒甚至秒级的差别,发明人发现将sip消息整合展示,进行问题分析时,会导致音和/或视频全流程通话sip消息轨迹展示混乱,进而不能够正确的分析出音和/或视频全流程通话sip消息出现的问题,使得问题分析存在较大误差。另外,发明人还意识到同一个id发送或者收到的交互信息会经过不同的组件,每个组件对信息时间点的记录会有时间差较大的情况,根据组件记录时间直接进行音和/或视频展示会使交互展示混乱。In the full-flow multimedia audio and / or video call based on the SIP protocol, since the PAPHONE end time and the peer server time are not the same time server, for the same sip message, the time sent or accepted by the PAPHONE end and the time received or issued by the peer server The time may be different in milliseconds or even seconds. The inventor found that the integrated display of sip messages and analysis of the problem will lead to the confusion of audio and / or video call sip message trajectory display, and it will not be able to correctly analyze the sound and / Or the problem of the sip message during the whole video call makes the analysis of the problem more error. In addition, the inventor also realized that the interactive information sent or received by the same id will pass through different components, and each component's recording of the information point in time will have a large time difference, and directly perform audio and / or according to the component recording time. Video presentations can confuse interactive presentations.
发明内容Summary of the invention
为克服以上技术问题,特别是PAPHONE端发出或接受的时间和对端服务器接受或发出的时间会存在毫秒甚至秒级的差别的问题,特提出以下技术方案:In order to overcome the above technical problems, especially the problem that the time sent or accepted by the PAPHONE end and the time received or sent by the peer server may be different in milliseconds or even seconds, the following technical solutions are proposed:
本申请实施例提供的一种基于SIP协议的日志时间校正方法,包括:日志服务器接收当前终端的终端通信日志,提取所述终端通信日志中的关键信息;依据所述关键信息确定通信对端中与所述终端通信日志相对应的对端通信信息;获取所述对端通信信息的第一通信时间和与所述对端通信信息时间上相邻的任一条通信信息的第二通信时间;依据所述第一通信时间和所述第二通信时间的平均值校正所述当前终端上对应所述终端通信 日志的终端通信信息时间。An embodiment of the present application provides a log time correction method based on the SIP protocol, which includes: a log server receives a terminal communication log of a current terminal, extracts key information in the terminal communication log, and determines a communication peer end according to the key information. Peer communication information corresponding to the terminal communication log; acquiring a first communication time of the peer communication information and a second communication time of any piece of communication information adjacent to the peer communication information time; based on An average value of the first communication time and the second communication time corrects a terminal communication information time corresponding to the terminal communication log on the current terminal.
本申请实施例还提供了一种基于SIP协议的日志时间校正装置,包括:提取模块,用于日志服务器接收当前终端的终端通信日志,提取所述终端通信日志中的关键信息;确定模块,用于依据所述关键信息确定通信对端中与所述终端通信日志相对应的对端通信信息;获取模块,用于获取所述对端通信信息的第一通信时间和与所述对端通信信息时间上相邻的任一条通信信息的第二通信时间;校正模块,用于依据所述第一通信时间和所述第二通信时间的平均值校正所述当前终端上对应所述终端通信日志的终端通信信息时间。An embodiment of the present application further provides a log time correction device based on the SIP protocol, including: an extraction module, used by a log server to receive a terminal communication log of a current terminal, and extract key information in the terminal communication log; a determining module, Determining the peer communication information corresponding to the terminal communication log among the communication peers according to the key information; an acquisition module, configured to acquire a first communication time of the peer communication information and communication information with the peer A second communication time of any piece of communication information that is adjacent in time; a correction module, configured to correct, on the current terminal, the corresponding communication log of the terminal according to the average value of the first communication time and the second communication time; Terminal communication information time.
本申请实施例还提供了一种计算机可读非易失性存储介质,存储有计算机程序,该计算机程序执行时实现基于SIP协议的日志时间校正方法的以下操作:日志服务器接收当前终端的终端通信日志,提取所述终端通信日志中的关键信息;依据所述关键信息确定通信对端中与所述终端通信日志相对应的对端通信信息;获取所述对端通信信息的第一通信时间和与所述对端通信信息时间上相邻的任一条通信信息的第二通信时间;依据所述第一通信时间和所述第二通信时间的平均值校正所述当前终端上对应所述终端通信日志的终端通信信息时间。An embodiment of the present application further provides a computer-readable non-volatile storage medium storing a computer program, which when executed, implements the following operations of the log time correction method based on the SIP protocol: the log server receives terminal communication of the current terminal Log, extract key information in the communication log of the terminal; determine the corresponding communication information of the communication peer corresponding to the communication log of the terminal according to the key information; obtain the first communication time and A second communication time of any piece of communication information that is temporally adjacent to the peer communication information; and correcting the corresponding terminal communication on the current terminal according to an average of the first communication time and the second communication time The terminal communication information time of the log.
本申请实施例还提供了一种服务器,包括:一个或多个处理器;存储器;一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个应用程序配置用于执行基于SIP协议的日志时间校正方法的以下操作:日志服务器接收当前终端的终端通信日志,提取所述终端通信日志中的关键信息;依据所述关键信息确定通信对端中与所述终端通信日志相对应的对端通信信息;获取所述对端通信信息的第一通信时间和与所述对端通信信息时间上相邻的任一条通信信息的第二通信时间;依据所述第一通信时间和所述第二通信时间的平均值校正所述当前终端上对应所述终端通信日志的终端通信信息时间。An embodiment of the present application further provides a server including: one or more processors; a memory; and one or more application programs, wherein the one or more application programs are stored in the memory and configured to be provided by The one or more processors execute, the one or more applications are configured to perform the following operations of the log time correction method based on the SIP protocol: the log server receives the terminal communication log of the current terminal, and extracts the terminal communication log Key information in the system; determining the peer communication information corresponding to the terminal communication log among the communication peers according to the key information; obtaining a first communication time of the peer communication information and a time of communication information with the peer The second communication time of any one piece of communication information adjacent to each other; and correcting the terminal communication information time corresponding to the terminal communication log on the current terminal according to the average value of the first communication time and the second communication time.
本申请实施例提供的一种基于SIP协议的日志时间校正方法,通过对端(服务器)的时间来调整paphone端sip消息的时间,使得paphone端 sip消息在分析平台进行交互展示时,能够顺利流畅地展示paphone端的消息,便于根据正确的消息交互顺序分析问题,降低sip问题查询人力和时间,提高多媒体信息的运维效率;另外通过关键字段查询定位对端的sip消息,使得paphone端和对端的sip消息能够保持一致性和唯一性。The embodiment of the present application provides a method for correcting log time based on the SIP protocol. The time of the sip message on the paphone end is adjusted by the time of the peer (server), so that the sip message on the paphone end can be displayed smoothly and interactively on the analysis platform To display the messages on the paphone side, it is convenient to analyze the problem according to the correct message interaction sequence, reduce the query manpower and time of the sip problem, and improve the operation and maintenance efficiency of multimedia information. In addition, query the peer sip messages through key fields to query the paphone side and the peer side. Sip messages can be consistent and unique.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为本申请基于SIP协议的日志时间校正方法的典型实施例中一种实施方式的流程示意图;FIG. 1 is a schematic flowchart of an implementation manner in a typical embodiment of a log time correction method based on the SIP protocol of this application;
图2为本申请基于SIP协议的日志时间校正方法的典型实施例中又一种实施方式的流程示意图;FIG. 2 is a schematic flowchart of another implementation manner in a typical embodiment of a log time correction method based on the SIP protocol of this application; FIG.
图3为本申请基于SIP协议的日志时间校正装置的典型实施例的结构示意图;3 is a schematic structural diagram of a typical embodiment of a log time correction device based on the SIP protocol of the present application;
图4为本申请服务器的一实施例结构示意图。FIG. 4 is a schematic structural diagram of an embodiment of a server of the present application.
具体实施方式detailed description
本申请实施例中提供的一种基于SIP协议的日志时间校正方法,主要应用于基于SIP协议的多媒体音视频通话中,SIP(Session Initiation Protocol,会话初始协议)是由IETF(Internet Engineering Task Force,因特网工程任务组)制定的多媒体通信协议。它是一个基于文本的应用层控制协议,用于创建、修改和释放一个或多个参与者的会话。广泛应用于CS(Circuit Switched,电路交换)、NGN(Next Generation Network,下一代网络)以及IMS(IP Multimedia Subsystem,IP多媒体子系统)的网络中,可以支持并应用于语音、视频、数据等多媒体业务,同时也可以应用于Presence(呈现)、Instant Message(即时消息)等特色业务。我们的音视频通话就是通过SIP协议建立的。通过本申请实施例中提供的基于SIP协议的日志时间校正方法,通过当前终端上载到服务器中的日志的关键信息,定位到对端中发送或者接受的同一条消息,基于该条消息对当前终端上当前消息的时间进行校正,进而使得音视频能够顺利流畅地展示音视频通话全流程。需要说明的是,本申请实施例中的对端为服务器端,关键字段为关键信息的解释说明,其表示的是sip消息中相同内容。A method for correcting log time based on the SIP protocol provided in the embodiments of the present application is mainly applied to multimedia audio and video calls based on the SIP protocol. SIP (Session Initialization Protocol) is implemented by the Internet Engineering Task Force (IETF). Internet Engineering Task Force). It is a text-based application-layer control protocol for creating, modifying, and releasing sessions for one or more participants. Widely used in CS (Circuit Switched, Circuit Switched), NGN (Next Generation Network, Next Generation Network) and IMS (IP Multimedia Subsystem, IP Multimedia Subsystem) networks, which can support and be used for multimedia such as voice, video, data, etc. Services can also be applied to featured services such as presence (presence) and instant messaging (instant messaging). Our audio and video calls are established through the SIP protocol. According to the log time correction method based on the SIP protocol provided in the embodiment of the present application, the same message sent or received by the peer is located through the key information of the log uploaded to the server by the current terminal, and the current terminal is based on the message. The time of the current message is corrected, so that the audio and video can smoothly and smoothly show the entire flow of audio and video calls. It should be noted that the peer end in the embodiment of the present application is the server end, and the key fields are explanations of key information, which indicate the same content in the sip message.
本申请实施例提供一种基于SIP协议的日志时间校正方法,在其中一 种实施方式中,如图1所示,包括:S100至S400。The embodiment of the present application provides a log time correction method based on the SIP protocol. In one embodiment, as shown in FIG. 1, the method includes S100 to S400.
S100:日志服务器接收当前终端的终端通信日志,提取所述终端通信日志中的关键信息。S100: The log server receives a terminal communication log of the current terminal, and extracts key information in the terminal communication log.
进一步地,在所述日志服务器接收当前终端的终端通信日志之中,包括:Further, the receiving of the terminal communication log of the current terminal by the log server includes:
接收通信对端上载的对端通信日志。Receive the peer communication log uploaded by the peer.
日志服务器接收当前终端和通信对端上载的通信日志,其中当前终端上载日志为终端通信日志,通信对端上载的日志为对端通信日志。与当前终端进行通信的对端具有一个或者多个。当前通信终端为paphone端。由于基于SIP协议的多媒体通信中,其具有特定的关键信息,其主要为关键字段,具体如:From域包含一个显示姓名(如:Alice)和一个SIP或者SIPS URI(sip:alice@atlanta.com),其中URI用来标志请求的原始发起者。From域必须包含一个由UAC产生的新的”tag”参数。TO域包含了显示姓名和一个SIP或者SIPS URI,请求将首先传输到这个URI中,这个域内的地址可以是也可以不是请求的最终接收者。Call-id:包含一个全局的唯一标志,用来唯一标志这个呼叫,通过随机字串和softphone的自己名字或者IP地址混和产生的。在对话中的任一UA的所有请求和所有应答的Call-id一致。Cseq或者Command Sequence:用来区分和作为事务的顺序使用的,包含了一个整数和一个请求名字,Cseq数字是顺序递增的。Via:用来描述请求当前经历的路径的,并且标志了应答所应当经过的路径,Via头域的branch ID参数提供了事务的标志,并且用于proxy来检查循环路由,只有当需要通过选择传输设备到达下一个节点(hop)的时候,才需要在头域中包含Via域,当UAC创建一个请求,它必须在头域中添加一个Via域。如果在应答中,有不只一个Via头域值存在,那么UAC应该丢弃这个消息。Contact:提供了访问后续请求的特定UA实例的联系方法。Max-Forwards:最大转发数量限制了通讯中转发的数量。它是由一个整数组成,每转发一次,整数减一。Route:用于强制一个请求经过一个proxy路由列表。Route头域:用于无状态的事务路由。Inbound服务器到交换机的流量等。通过前述关键信息中的内容可以在终端通信日志和对端通信日志 查找到相同的日志。优选地,所述关键信息包括通信标识(Call-id)、命令序列(Cseq)、流量(Inbound)中的一种或者多种。The log server receives the communication logs uploaded by the current terminal and the communication peer. The current terminal uploads the logs as terminal communication logs and the communication uploads the logs as peer communication logs. There are one or more peers communicating with the current terminal. The current communication terminal is paphone. Because in the SIP-based multimedia communication, it has specific key information, which is mainly a key field. For example, the From field contains a display name (such as: Alice) and a SIP or SIPS URI (sip: alice @ atlanta. com), where the URI is used to identify the original originator of the request. The From field must contain a new "tag" parameter generated by UAC. The TO domain contains the display name and a SIP or SIPS URI. The request will be transmitted to this URI first. The address in this domain may or may not be the ultimate recipient of the request. Call-id: Contains a global unique identifier that uniquely identifies this call. It is generated by mixing a random string with the softphone's own name or IP address. All requests of any UA in the conversation are consistent with the Call-id of all responses. CSeq or Command Sequence: used to distinguish and use as the order of transactions, including an integer and a request name, the CSeq number is sequentially increasing. Via: It is used to describe the path that the request is currently experiencing and marks the path that the response should go through. The branch ID parameter in the Via header field provides a flag for the transaction and is used by the proxy to check the cyclic route. When the device reaches the next node (hop), it needs to include the Via domain in the header domain. When UAC creates a request, it must add a Via domain in the header domain. If there is more than one Via header field value in the response, the UAC should discard the message. Contact: Provides the contact method for accessing the specific UA instance for subsequent requests. Max-Forwards: The maximum number of forwards limits the number of forwards in the communication. It consists of an integer, and each time it is forwarded, the integer is decremented by one. Route: Used to force a request to go through a list of proxy routes. Route header field: used for stateless transaction routing. Inbound server to switch traffic, etc. You can find the same log in the terminal communication log and the peer communication log through the contents of the foregoing key information. Preferably, the key information includes one or more of a communication identifier (Call-id), a command sequence (Cseq), and a flow (Inbound).
S200:依据所述关键信息确定通信对端中与所述终端通信日志相对应的对端通信信息。S200: Determine, according to the key information, the communication information of the peer end corresponding to the communication log of the terminal among the communication peer ends.
基于前述的过程,从终端通信日志中提取至少一个关键信息,其中,该关键信息为预设置的字段,基于将终端通信日志中提取出来的关键信息,在对端通信日志中查找相同的关键信息。通过关键信息可以确定对端通信日志所对应的通信消息和终端通信日志所对应的消息是否为同一条消息。即在对端通信日志中查找到相同的关键信息时,则说明该对端通信日志所对应的通信消息与终端通信日志所对应的消息相同。其中对端通信日志所对应的通信消息称为对端通信信息,终端通信日志所对应的通信消息成为终端通信消息,且对端通信信息和终端通信信息均为sip消息。Based on the foregoing process, at least one key information is extracted from the terminal communication log, where the key information is a preset field, and the same key information is found in the peer communication log based on the key information extracted from the terminal communication log. . The key information can be used to determine whether the communication message corresponding to the peer communication log and the message corresponding to the terminal communication log are the same message. That is, when the same key information is found in the peer communication log, it means that the communication message corresponding to the peer communication log is the same as the message corresponding to the terminal communication log. The communication message corresponding to the peer communication log is called peer communication information, the communication message corresponding to the terminal communication log becomes a terminal communication message, and both the peer communication information and the terminal communication information are sip messages.
具体的,终端通信日志对应的通信消息为sip消息,sip消息由一个起始行、消息头、一个标志消息头结束的空行及作为可选项的消息体组成。SIP消息的起始行分为请求行(Request-Line)和状态行(Status-Line)两种。其中,请求行是请求消息的起始行,状态行是响应消息的起始行。可见,请求消息包含请求行、消息头、空行和消息体;响应消息包括状态行、消息头、空行和消息体。关键字段其实是在sip消息里的内容,所有的日志都是paphone自动上载到日志处理服务器的,不需要人工干涉,因此我们获取的是paphone端本地自动上载的日志,日志中会记录sip消息,多个关键字段都在sip消息中。同一笔通话对端和paphone端的日志中sip消息的关键字段是相同的。在对端(服务器)中定位相同的sip消息时,用于定位的多个关键字段需要同时满足且对端与paphone端存在相同的关键字段,以保证定位的信息准确,进而保证了sip信息的唯一性。Specifically, the communication message corresponding to the terminal communication log is a sip message. The sip message is composed of a start line, a message header, a blank line indicating the end of the message header, and an optional message body. The start line of a SIP message is divided into two types: a request-line and a status-line. The request line is the start line of the request message, and the status line is the start line of the response message. It can be seen that the request message includes a request line, a message header, a blank line, and a message body; the response message includes a status line, a message header, a blank line, and a message body. The key field is actually the content in the sip message. All logs are automatically uploaded to the log processing server by paphone. No manual intervention is required. Therefore, we obtain the logs uploaded locally on the paphone. The logs will record the sip messages. Multiple key fields are in the sip message. The key fields of the sip message in the logs of the same call peer and the paphone end are the same. When locating the same sip message in the peer (server), multiple key fields used for positioning need to be satisfied at the same time and the same key fields exist in the peer and the paphone to ensure that the positioning information is accurate, thereby ensuring sip The uniqueness of the information.
S300:获取所述对端通信信息的第一通信时间和与所述对端通信信息时间上相邻的任一条通信信息的第二通信时间。S300: Acquire a first communication time of the peer communication information and a second communication time of any piece of communication information that is adjacent to the peer communication information in time.
通过前述的方法,确定对端通信中与终端通信日志相对应的对端通信消息(sip消息)后,则获取该条sip消息在对端中的时间,同时获取对端中另一条与该条sip消息相邻sip消息的时间,相邻sip消息为紧接该条sip 消息的上一条或者下一条时间。在对端回复paphone时,对端上该条sip信息时间作为相邻sip信息的时间,paphone端收到回复后再次请求到对端,此时paphone端上发送的sip信息为目标sip信息,该条sip信息时间也就是需要调整的时间,对端上收到该条sip信息的时间为对端相同sip信息的时间。通过步骤1可以定位需要的sip信息,就可以获取对端上相同sip信息的时间和对端上相邻一条信息的时间。具体的,获取的该条sip信息时间是未做调整的paphone端sip信息时间,对端sip消息的时间是由统一的时间服务器调整的,因此以对端时间作为参考标准,这样在对端上相同一条sip信息的时间和对端上相邻sip信息时间是可以保证及时性的。Through the foregoing method, after determining the peer communication message (sip message) corresponding to the terminal communication log in the peer communication, the time of the sip message in the peer is obtained, and another peer in the peer is The time when the sip message is adjacent to the sip message. The adjacent sip message is the time immediately preceding or following the sip message. When the peer end responds to the paphone, the time of the sip information on the peer end is used as the time of the neighboring sip information. After receiving the reply, the paphone end requests the peer end again. At this time, the sip information sent on the paphone end is the target sip information. The time of the sip information is also the time that needs to be adjusted. The time when the peer end receives the sip information is the time when the peer end has the same sip information. You can locate the required sip information through step 1, and you can obtain the time of the same sip information on the peer and the time of an adjacent piece of information on the peer. Specifically, the time of the obtained sip information is the sip information time of the paphone end without adjustment, and the time of the sip message of the opposite end is adjusted by the unified time server. Therefore, the time of the opposite end is used as the reference standard, so The time of the same piece of sip information and the time of adjacent sip information on the opposite end can ensure the timeliness.
S400:依据所述第一通信时间和所述第二通信时间的平均值校正所述当前终端上对应所述终端通信日志的终端通信信息时间。S400: Correct the terminal communication information time corresponding to the terminal communication log on the current terminal according to an average of the first communication time and the second communication time.
在前述的基础上,获取到第一通信时间和第二通信时间后,对第一通信时间和第二通信时间求平均值,该平均值则作为当前终端(paphone端)sip消息的时间,因此根据该平均值校正所述当前终端上对应所述终端通信日志的终端通信信息时间。即将paphone端日志对应sip消息的时间校正为该平均值。其中,时间平均值为自定义标准,有助于在分析平台进行音视频通话全流程的交互展示。例如,通过关键消息定位到对端与paphone端相同sip消息时间为10:10分,对端中相邻另一条sip的时间10:12,则paphone端当前正在校正时间的sip消息的时间为10:11。Based on the foregoing, after obtaining the first communication time and the second communication time, average the first communication time and the second communication time, and the average value is used as the time of the current terminal (paphone end) sip message, so Correct the terminal communication information time corresponding to the terminal communication log on the current terminal according to the average value. That is, the time corresponding to the sip message corresponding to the log on the paphone end is corrected to the average value. Among them, the time average is a custom standard, which is helpful for interactive display of the entire process of audio and video calls on the analysis platform. For example, using key messages to locate the same sip message time on the peer and the paphone is 10:10, and the time on the other sip adjacent to the peer is 10:12, then the time on the sip message that the paphone is currently correcting is 10 : 11.
进一步地,在其中一种实施方式中,如图2所示,在所述依据所述第一通信时间和所述第二通信时间的平均值校正所述当前终端上对应所述终端通信日志的终端通信信息时间之后,还包括S500至S600。Further, in one of the implementation manners, as shown in FIG. 2, the current communication terminal corresponding to the terminal communication log on the current terminal is corrected according to an average value of the first communication time and the second communication time. After the terminal communication information time, S500 to S600 are also included.
S500:依据所述终端通信信息时间确定所述终端通信信息向所述当前终端发送的发送节点;S500: Determine a sending node that the terminal communication information sends to the current terminal according to the terminal communication information time;
S600:依据发送节点向所述当前终端发送所述终端通信信息。S600: Send the terminal communication information to the current terminal according to the sending node.
在校正完成终端通信信息时间后,通过终端前后通信消息的时间,在分析平台进行展示前,确定终端通信信息的展示轨迹,即确定每一条终端通信信息发送到分析平台进行展示的发送节点,以使得在对应的节点将当 前终端的终端通信信息在分析平台能够顺利刘场地进行展示。在该条sip信息的时间确定后,就将该条sip消息放置于时间与其相对应的位置,例如,该条sip消息时间为10:11分,在已经整理出的sip消息中,已经包括了10:10分和10:12分的sip消息,则将该条消息调整10:10分和10:12分两sip消息之间,使得10:10分到10:12之间的sip消息流程完整,将调整好后的消息调整sip展示轨迹,调整完成后,向显示终端(paphone端)发送调整后的sip消息,使得在终端流畅的进行图形展示全流程,使得展示出的交互信息的顺序是正确且完整的。其中,在10:10分消息完成的节点为该条sip消息的发送节点。After the correction of the terminal communication information time, based on the time before and after the terminal communicates the message, determine the display trajectory of the terminal communication information before the analysis platform displays it, that is, determine the sending node of each terminal communication information to the analysis platform for display. In this way, the terminal communication information of the current terminal can be smoothly displayed on the analysis platform at the corresponding node. After the time of the sip message is determined, the sip message is placed at a position corresponding to the time. For example, the time of the sip message is 10:11 minutes. In the sip message that has been sorted out, it has been included 10:10 and 10:12 sip messages, then adjust the message between 10:10 and 10:12 sip messages to make the sip message flow between 10:10 and 10:12 complete After adjusting the adjusted message, adjust the sip display trajectory. After the adjustment is completed, send the adjusted sip message to the display terminal (paphone end), so that the entire process of graphical display is smoothly performed on the terminal, and the order of the displayed interactive information is Correct and complete. Among them, the node that completes the message at 10:10 is the sending node of the sip message.
进一步地,在所述依据所述关键信息确定通信对端中与所述终端通信日志相对应的对端通信信息之中,包括:Further, among the communication information of the peer end corresponding to the communication log of the terminal in the communication peer end determined according to the key information, includes:
依据所述关键信息获取所述对端通信日志中与所述关键信息相对应的日志信息;Obtaining log information corresponding to the key information in the peer communication log according to the key information;
依据所述日志信息确定所述通信对端中和所述终端通信日志相对应的所述对端通信信息,所述日志信息和所述对端通信信息相对应。Determining, according to the log information, the peer communication information corresponding to the communication log of the terminal in the communication peer, and the log information corresponds to the peer communication information.
结合前文的描述,该日志信息即为对端通信日志中和关键信息相同且一致的信息。该日志信息与sip消息相对应,且sip消息中存储在和关键消息相同且一致的信息。因此,能够通过日志信息确定所述通信对端中和所述终端通信日志相对应的所述对端通信信息,所述日志信息和所述对端通信信息相对应。Combined with the previous description, the log information is the same and consistent information as the key information in the peer communication log. The log information corresponds to the sip message, and the same and consistent information as the key message is stored in the sip message. Therefore, the peer communication information corresponding to the communication log of the terminal in the communication peer can be determined through the log information, and the log information corresponds to the peer communication information.
优选地,在接收通信对端上载的对端通信日志之后,包括:Preferably, after receiving the peer communication log uploaded by the communication peer, the method includes:
以索引结构存储所述对端通信日志。如前文所述,由于sip消息中包括了多个关键信息,在提取到的关键信息有一个或者多个时,为了便于查询,提高查询的效率,将sip消息中的关键信息提取提取出来,通过索引结构进行存储,进而便于通过一步步地查询,通过关键信息在某一日志中进行查询时,若某一关键信息不一致时,则不再查询该日志中的其他关键信息是否一致,节约查询的时间。The peer communication log is stored in an index structure. As mentioned above, because the sip message includes multiple key information, when there is one or more key information extracted, in order to facilitate the query and improve the efficiency of the query, the key information in the sip message is extracted and extracted. The index structure is stored, which facilitates step-by-step query. When key information is searched in a certain log, if a certain key information is inconsistent, it is not necessary to query whether other key information in the log is consistent, which saves query time. time.
本申请实施例中还提供了一种基于SIP协议的日志时间校正装置,在其中一种实施方式中,如图3所示,包括:An embodiment of the present application further provides a log time correction device based on the SIP protocol. In one embodiment, as shown in FIG. 3, the method includes:
提取模块100,用于日志服务器接收当前终端的终端通信日志,提取所述终端通信日志中的关键信息;The extraction module 100 is configured for the log server to receive a terminal communication log of a current terminal, and extract key information in the terminal communication log;
确定模块200,用于依据所述关键信息确定通信对端中与所述终端通信日志相对应的对端通信信息;A determining module 200, configured to determine, according to the key information, the communication information of the peer end corresponding to the communication log of the terminal among the communication peer ends;
获取模块300,用于获取所述对端通信信息的第一通信时间和与所述对端通信信息时间上相邻的任一条通信信息的第二通信时间;The obtaining module 300 is configured to obtain a first communication time of the peer communication information and a second communication time of any piece of communication information adjacent to the peer communication information in time;
校正模块400,用于依据所述第一通信时间和所述第二通信时间的平均值校正所述当前终端上对应所述终端通信日志的终端通信信息时间。The correction module 400 is configured to correct a terminal communication information time corresponding to the terminal communication log on the current terminal according to an average value of the first communication time and the second communication time.
进一步地,如图3所示,本申请实施例中提供的一种基于SIP协议的日志时间校正装置,还包括:发送节点确定模块500,用于依据所述终端通信信息时间确定所述终端通信信息向所述当前终端发送的发送节点;发送模块600,用于依据发送节点向所述当前终端发送所述终端通信信息。接收单元101,用于接收通信对端上载的对端通信日志。日志信息确定单元201,用于依据所述关键信息获取所述对端通信日志中与所述关键信息相对应的日志信息;对端通信信息确定单元202,用于依据所述日志信息确定所述通信对端中和所述终端通信日志相对应的所述对端通信信息,所述日志信息和所述对端通信信息相对应。优选地,所述关键信息包括通信标识、命令序列、流量中的一种或者多种。存储单元102,用于以索引结构存储所述对端通信日志。Further, as shown in FIG. 3, a log time correction device based on the SIP protocol provided in the embodiment of the present application further includes a sending node determination module 500 for determining the terminal communication according to the terminal communication information time. A sending node that sends information to the current terminal; a sending module 600, configured to send the terminal communication information to the current terminal according to the sending node. The receiving unit 101 is configured to receive a peer communication log uploaded by a communication peer. A log information determining unit 201 is configured to obtain log information corresponding to the key information in the peer communication log according to the key information; a peer communication information determining unit 202 is configured to determine the log information according to the log information The peer communication information corresponding to the communication log of the terminal in the communication peer end, and the log information corresponds to the peer communication information. Preferably, the key information includes one or more of a communication identifier, a command sequence, and a traffic. The storage unit 102 is configured to store the peer communication log in an index structure.
本申请实施例提供的一种基于SIP协议的日志时间校正装置可以实现上述基于SIP协议的日志时间校正方法的实施例,具体功能实现请参见方法实施例中的说明,在此不再赘述。A log time correction device based on the SIP protocol provided in the embodiment of the present application can implement the foregoing embodiment of the log time correction method based on the SIP protocol. For specific function implementation, refer to the description in the method embodiment, and details are not described herein again.
本申请实施例提供的一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,该程序被处理器执行时实现任一项技术方案所述的基于SIP协议的日志时间校正方法。其中,所述计算机可读存储介质包括但不限于任何类型的盘(包括软盘、硬盘、光盘、CD-ROM、和磁光盘)、ROM(Read-Only Memory,只读存储器)、RAM(Random Access Memory,随即存储器)、EPROM(Erasable Programmable Read-Only Memory,可擦写可编程只读存储器)、EEPROM(Electrically Erasable  Programmable Read-Only Memory,电可擦可编程只读存储器)、闪存、磁性卡片或光线卡片。也就是,存储设备包括由设备(例如,计算机、手机)以能够读的形式存储或传输信息的任何介质,可以是只读存储器,磁盘或光盘等。A computer-readable storage medium provided in the embodiment of the present application. The computer-readable storage medium stores a computer program, and when the program is executed by a processor, the log time correction based on the SIP protocol according to any one of the technical solutions is implemented. method. The computer-readable storage medium includes, but is not limited to, any type of disk (including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks), ROM (Read-Only Memory, read-only memory), and RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or Rays card. That is, the storage device includes any medium that stores or transmits information in a readable form by a device (for example, a computer, a mobile phone), and may be a read-only memory, a magnetic disk, or an optical disk.
本申请实施例提供的一种计算机可读非易失性存储介质,通过对端(服务器)的时间来调整paphone端sip消息的时间,进而能够顺利流畅地展示paphone端的消息;本申请实施例中还提拱了一种基于SIP协议的日志时间校正方法,包括:日志服务器接收当前终端的终端通信日志,提取所述终端通信日志中的关键信息;依据所述关键信息确定通信对端中与所述终端通信日志相对应的对端通信信息;获取所述对端通信信息的第一通信时间和与所述对端通信信息时间上相邻的任一条通信信息的第二通信时间;依据所述第一通信时间和所述第二通信时间的平均值校正所述当前终端上对应所述终端通信日志的终端通信信息时间。通过对端(服务器)的时间来调整paphone端sip消息的时间,使得paphone端sip消息在分析平台进行交互展示时,能够顺利流畅地展示paphone端的消息,便于根据正确的消息交互顺序分析问题,降低sip问题查询人力和时间,提高多媒体信息的运维效率;另外,由于关键字段是在sip消息里的内容,所有的日志都是paphone自动上载到日志处理服务器的,不需要人工干涉,因此我们获取的是paphone端本地自动上载的日志,日志中会记录sip消息,多个关键字段都在sip消息中。同一笔通话对端和paphone端的日志中sip消息的关键字段是相同的。在对端(服务器)中定位相同的sip消息时,用于定位的多个关键字段需要同时满足且对端与paphone端存在相同的关键字段,以保证定位的信息准确,进而保证了sip信息在paphone端和对端中的一致性和唯一性。进一步地,通过本申请实施例中提供的基于SIP协议的日志时间校正方法让SIP音视频通话全流程的sip消息轨迹展示更加有序完整,调整时间后的sip消息,能够更加直观的在分析平台展示通话的sip信息交互。另外,通过预设的关键字段定位对端sip消息,大大降低sip问题查询人力、时间,提高音视频运维效率。A computer-readable non-volatile storage medium provided in the embodiment of the present application can adjust the time of the sip message on the paphone end by the time of the peer (server), so as to smoothly and smoothly display the message on the paphone end. In the embodiment of the present application, A method for correcting log time based on the SIP protocol is also provided. The method includes: the log server receives a terminal communication log of the current terminal, and extracts key information in the terminal communication log; The peer communication information corresponding to the terminal communication log; acquiring a first communication time of the peer communication information and a second communication time of any piece of communication information adjacent to the peer communication information time; according to the The average value of the first communication time and the second communication time corrects the terminal communication information time corresponding to the terminal communication log on the current terminal. Adjust the time of the sip message on the paphone by the time of the peer (server), so that the sip message on the paphone can be displayed smoothly and smoothly when the sip message is interactively displayed on the analysis platform. sip questions query manpower and time to improve the operation and maintenance efficiency of multimedia information. In addition, because the key fields are in the sip message, all logs are automatically uploaded to the log processing server by paphone, and no manual intervention is required, so we What is obtained is the log uploaded locally on the paphone end. The log will record the sip message, and many key fields are in the sip message. The key fields of the sip message in the logs of the same call peer and the paphone end are the same. When locating the same sip message in the peer (server), multiple key fields used for positioning need to be satisfied at the same time and the same key fields exist in the peer and the paphone to ensure that the positioning information is accurate, thereby ensuring sip Consistency and uniqueness of information in the paphone and peer. Further, the SIP protocol-based log time correction method provided in the embodiments of the present application makes the sip message trace display of the entire process of SIP audio and video calls more orderly and complete. The adjusted sip message can be more intuitive on the analysis platform. Show the sip information interaction of the call. In addition, positioning the peer sip message through preset key fields greatly reduces the manpower and time of querying sip problems, and improves the efficiency of audio and video operation and maintenance.
本申请实施例提供的计算机可读非易失性存储介质可以实现上述基 于SIP协议的日志时间校正方法的实施例,具体功能实现请参见方法实施例中的说明,在此不再赘述。The computer-readable non-volatile storage medium provided in the embodiments of the present application can implement the foregoing embodiment of the log time correction method based on the SIP protocol. For specific function implementation, refer to the description in the method embodiment, and details are not described herein.
此外,在又一种实施例中,本申请还提供一种服务器,如图4所示,所述服务器处理器503、存储器505、输入单元507以及显示单元509等器件。本领域技术人员可以理解,图4示出的结构器件并不构成对所有服务器的限定,可以包括比图示更多或更少的部件,或者组合某些部件。存储器505可用于存储应用程序501以及各功能模块,处理器503运行存储在存储器505的应用程序501,从而执行设备的各种功能应用以及数据处理。存储器505可以是内存储器或外存储器,或者包括内存储器和外存储器两者。内存储器可以包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦写可编程ROM(EEPROM)、快闪存储器、或者随机存储器。外存储器可以包括硬盘、软盘、ZIP盘、U盘、磁带等。本申请所公开的存储器包括但不限于这些类型的存储器。本申请所公开的存储器505只作为例子而非作为限定。In addition, in another embodiment, the present application further provides a server. As shown in FIG. 4, the server processor 503, the memory 505, the input unit 507, and the display unit 509 are devices. Those skilled in the art can understand that the structural device shown in FIG. 4 does not constitute a limitation on all servers, and may include more or fewer components than shown in the figure, or combine some components. The memory 505 may be used to store an application program 501 and various functional modules, and the processor 503 runs the application program 501 stored in the memory 505 so as to execute various functional applications and data processing of the device. The memory 505 may be an internal memory or an external memory, or include both an internal memory and an external memory. The internal memory may include a read-only memory (ROM), a programmable ROM (PROM), an electrically programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), a flash memory, or a random access memory. External storage can include hard disks, floppy disks, ZIP disks, U disks, magnetic tapes, and so on. The memory disclosed in this application includes, but is not limited to, these types of memory. The memory 505 disclosed in this application is only an example and not a limitation.
输入单元507用于接收信号的输入,以及用户输入关键字段和用户输入执行查询检索的操作指令。输入单元507可包括触控面板以及其它输入设备。触控面板可收集客户在其上或附近的触摸操作(比如客户使用手指、触笔等任何适合的物体或附件在触控面板上或在触控面板附近的操作),并根据预先设定的程序驱动相应的连接装置;其它输入设备可以包括但不限于物理键盘、功能键(比如播放控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。显示单元509可用于显示客户输入的信息或提供给客户的信息以及计算机设备的各种菜单。显示单元509可采用液晶显示器、有机发光二极管等形式。处理器503是计算机设备的控制中心,利用各种接口和线路连接整个电脑的各个部分,通过运行或执行存储在存储器503内的软件程序和/或模块,以及调用存储在存储器内的数据,执行各种功能和处理数据。图4中所示的一个或多个处理器503能够执行、实现图3中所示的提取模块100的功能、确定模块200的功能、获取模块300的功能、校正模块400的功能、发送节点确定模块500的功能、发送模块600的功能、接收单元101的功能、日志信息确定单元201的功能、 对端通信信息确定单元202的功能、存储单元102的功能。The input unit 507 is used to receive input of signals, and key fields input by the user and operation instructions of the user to perform query retrieval. The input unit 507 may include a touch panel and other input devices. The touch panel can collect the touch operations of the customer on or near it (such as the operation of the customer on the touch panel or near the touch panel using any suitable object or accessory such as a finger or a stylus), and according to the preset The program drives the corresponding connection device; other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as playback control keys, switch keys, etc.), a trackball, a mouse, and an joystick. The display unit 509 may be used to display information input by the customer or information provided to the customer and various menus of the computer device. The display unit 509 may take the form of a liquid crystal display, an organic light emitting diode, or the like. The processor 503 is the control center of the computer equipment. It uses various interfaces and lines to connect various parts of the entire computer. It runs or executes the software programs and / or modules stored in the memory 503, and calls the data stored in the memory to execute Various functions and processing data. The one or more processors 503 shown in FIG. 4 can execute and implement the functions of the extraction module 100, the function of the determination module 200, the function of the acquisition module 300, the function of the correction module 400, and the sending node determination shown in FIG. Functions of the module 500, functions of the sending module 600, functions of the receiving unit 101, functions of the log information determination unit 201, functions of the peer communication information determination unit 202, and functions of the storage unit 102.
在一种实施方式中,所述服务器包括一个或多个处理器503,以及一个或多个存储器505,一个或多个应用程序501,其中所述一个或多个应用程序501被存储在存储器505中并被配置为由所述一个或多个处理器503执行,所述一个或多个应用程序301配置用于执行以上实施例所述的基于SIP协议的日志时间校正方法。In one embodiment, the server includes one or more processors 503, and one or more memories 505, one or more applications 501, wherein the one or more applications 501 are stored in the memory 505 And is configured to be executed by the one or more processors 503, and the one or more application programs 301 are configured to execute the log time correction method based on the SIP protocol described in the above embodiment.
本申请实施例提供的一种服务器,通过对端(服务器)的时间来调整paphone端sip消息的时间,进而能够顺利流畅地展示paphone端的消息;本申请实施例中还提拱了一种基于SIP协议的日志时间校正方法,包括:日志服务器接收当前终端的终端通信日志,提取所述终端通信日志中的关键信息;依据所述关键信息确定通信对端中与所述终端通信日志相对应的对端通信信息;获取所述对端通信信息的第一通信时间和与所述对端通信信息时间上相邻的任一条通信信息的第二通信时间;依据所述第一通信时间和所述第二通信时间的平均值校正所述当前终端上对应所述终端通信日志的终端通信信息时间。通过对端(服务器)的时间来调整paphone端sip消息的时间,使得paphone端sip消息在分析平台进行交互展示时,能够顺利流畅地展示paphone端的消息,便于根据正确的消息交互顺序分析问题,降低sip问题查询人力和时间,提高多媒体信息的运维效率;另外,由于关键字段是在sip消息里的内容,所有的日志都是paphone自动上载到日志处理服务器的,不需要人工干涉,因此我们获取的是paphone端本地自动上载的日志,日志中会记录sip消息,多个关键字段都在sip消息中。同一笔通话对端和paphone端的日志中sip消息的关键字段是相同的。在对端(服务器)中定位相同的sip消息时,用于定位的多个关键字段需要同时满足且对端与paphone端存在相同的关键字段,以保证定位的信息准确,进而保证了sip信息在paphone端和对端中的一致性和唯一性。进一步地,通过本申请实施例中提供的基于SIP协议的日志时间校正方法让SIP音视频通话全流程的sip消息轨迹展示更加有序完整,调整时间后的sip消息,能够更加直观的在分析平台展示通话的sip信息交互。另外,通过预设的关键字段定位对端sip消息,大大降低sip问题查询人力、时间, 提高音视频运维效率。A server provided in the embodiment of the present application adjusts the time of the sip message on the paphone end by the time of the peer (server), so that the message on the paphone end can be smoothly and smoothly displayed; in the embodiment of the present application, a method based on SIP is also provided. A protocol log time correction method includes: a log server receives a terminal communication log of a current terminal, extracts key information in the terminal communication log, and determines a corresponding pair of communication peers corresponding to the terminal communication log according to the key information. Terminal communication information; acquiring a first communication time of the peer communication information and a second communication time of any piece of communication information adjacent to the peer communication information in time; according to the first communication time and the first communication time The average value of the two communication times corrects the terminal communication information time corresponding to the terminal communication log on the current terminal. Adjust the time of the sip message on the paphone by the time of the peer (server), so that the sip message on the paphone can be displayed smoothly and smoothly when the sip message is interactively displayed on the analysis platform. sip questions query manpower and time to improve the operation and maintenance efficiency of multimedia information. In addition, because the key fields are in the sip message, all logs are automatically uploaded to the log processing server by paphone, and no manual intervention is required, so we What is obtained is the log uploaded locally on the paphone end. The log will record the sip message, and many key fields are in the sip message. The key fields of the sip message in the logs of the same call peer and the paphone end are the same. When locating the same sip message in the peer (server), multiple key fields used for positioning need to be satisfied at the same time and the same key fields exist in the peer and the paphone to ensure that the positioning information is accurate, thereby ensuring sip Consistency and uniqueness of information in the paphone and peer. Further, the SIP protocol-based log time correction method provided in the embodiments of the present application makes the sip message trace display of the entire process of SIP audio and video calls more orderly and complete. The adjusted sip message can be more intuitive on the analysis platform. Show the sip information interaction of the call. In addition, locating the peer sip message through preset key fields greatly reduces the manpower and time for querying sip problems, and improves the efficiency of audio and video operation and maintenance.
本申请实施例提供的服务器可以实现上述提供的基于SIP协议的日志时间校正方法的实施例,具体功能实现请参见方法实施例中的说明,在此不再赘述。The server provided in this embodiment of the present application can implement the embodiment of the log time correction method based on the SIP protocol provided above. For specific function implementation, refer to the description in the method embodiment, and details are not described herein again.

Claims (20)

  1. 一种基于SIP协议的日志时间校正方法,包括:A log time correction method based on the SIP protocol includes:
    日志服务器接收当前终端的终端通信日志,提取所述终端通信日志中的关键信息;The log server receives a terminal communication log of the current terminal, and extracts key information in the terminal communication log;
    依据所述关键信息确定通信对端中与所述终端通信日志相对应的对端通信信息;Determining, according to the key information, communication information of a peer end corresponding to the communication log of the terminal among the communication peers;
    获取所述对端通信信息的第一通信时间和与所述对端通信信息时间上相邻的任一条通信信息的第二通信时间;Acquiring a first communication time of the peer communication information and a second communication time of any piece of communication information that is adjacent to the peer communication information in time;
    依据所述第一通信时间和所述第二通信时间的平均值校正所述当前终端上对应所述终端通信日志的终端通信信息时间。Correcting the terminal communication information time corresponding to the terminal communication log on the current terminal according to an average of the first communication time and the second communication time.
  2. 根据权利要求1所述的基于SIP协议的日志时间校正方法,在所述依据所述第一通信时间和所述第二通信时间的平均值校正所述当前终端上对应所述终端通信日志的终端通信信息时间之后,还包括:The log time correction method based on the SIP protocol according to claim 1, correcting a terminal corresponding to the terminal communication log on the current terminal according to an average of the first communication time and the second communication time. After the communication time, it also includes:
    依据所述终端通信信息时间确定所述终端通信信息向所述当前终端发送的发送节点;Determining a sending node that the terminal communication information sends to the current terminal according to the terminal communication information time;
    依据发送节点向所述当前终端发送所述终端通信信息。Sending the terminal communication information to the current terminal according to a sending node.
  3. 根据权利要求1所述的基于SIP协议的日志时间校正方法,在所述日志服务器接收当前终端的终端通信日志之中,具体包括:The method for correcting log time based on the SIP protocol according to claim 1, wherein the receiving of the terminal communication log of the current terminal by the log server specifically comprises:
    接收所述通信对端上载的对端通信日志。Receiving a peer communication log uploaded by the communication peer.
  4. 根据权利要求3所述的基于SIP协议的日志时间校正方法,在所述依据所述关键信息确定通信对端中与所述终端通信日志相对应的对端通信信息之中,具体包括:The method for correcting log time based on the SIP protocol according to claim 3, wherein among the peer communication information corresponding to the communication log of the terminal among the communication peers determined according to the key information, specifically comprises:
    依据所述关键信息获取所述对端通信日志中与所述关键信息相对应的日志信息;Obtaining log information corresponding to the key information in the peer communication log according to the key information;
    依据所述日志信息确定所述通信对端中和所述终端通信日志相对应的所述对端通信信息,所述日志信息和所述对端通信信息相对应。Determining, according to the log information, the peer communication information corresponding to the communication log of the terminal in the communication peer, and the log information corresponds to the peer communication information.
  5. 根据权利要求1所述的基于SIP协议的日志时间校正方法,所述关键信息包括通信标识、命令序列、流量中的一种或者多种。The method for correcting log time based on the SIP protocol according to claim 1, wherein the key information includes one or more of a communication identifier, a command sequence, and a flow.
  6. 根据权利要求3所述的基于SIP协议的日志时间校正方法,在接收所述通信对端上载的对端通信日志之后,还包括:The method for correcting log time based on the SIP protocol according to claim 3, after receiving the peer communication log uploaded by the communication peer, further comprising:
    以索引结构存储所述对端通信日志。The peer communication log is stored in an index structure.
  7. 一种基于SIP协议的日志时间校正装置,包括:A log time correction device based on the SIP protocol includes:
    提取模块,用于日志服务器接收当前终端的终端通信日志,提取所述终端通信日志中的关键信息;An extraction module, configured to receive, by a log server, a terminal communication log of a current terminal and extract key information in the terminal communication log;
    确定模块,用于依据所述关键信息确定通信对端中与所述终端通信日志相对应的对端通信信息;A determining module, configured to determine, according to the key information, the communication information of the peer end corresponding to the communication log of the terminal among the communication peer ends;
    获取模块,用于获取所述对端通信信息的第一通信时间和与所述对端通信信息时间上相邻的任一条通信信息的第二通信时间;An acquiring module, configured to acquire a first communication time of the peer communication information and a second communication time of any piece of communication information adjacent to the peer communication information in time;
    校正模块,用于依据所述第一通信时间和所述第二通信时间的平均值校正所述当前终端上对应所述终端通信日志的终端通信信息时间。The correction module is configured to correct a terminal communication information time corresponding to the terminal communication log on the current terminal according to an average value of the first communication time and the second communication time.
  8. 根据权利要求7所述的基于SIP协议的日志时间校正装置,还包括:The log time correction device based on the SIP protocol according to claim 7, further comprising:
    发送节点确定模块,用于依据所述终端通信信息时间确定所述终端通信信息向所述当前终端发送的发送节点;A sending node determining module, configured to determine a sending node that sends the terminal communication information to the current terminal according to the terminal communication information time;
    发送模块,用于依据发送节点向所述当前终端发送所述终端通信信息。The sending module is configured to send the terminal communication information to the current terminal according to a sending node.
  9. 一种计算机可读非易失性存储介质,存储有计算机程序,该计算机程序执行时实现基于SIP协议的日志时间校正方法的以下操作:A computer-readable non-volatile storage medium stores a computer program that, when executed, implements the following operations of the log time correction method based on the SIP protocol:
    日志服务器接收当前终端的终端通信日志,提取所述终端通信日志中的关键信息;The log server receives a terminal communication log of the current terminal, and extracts key information in the terminal communication log;
    依据所述关键信息确定通信对端中与所述终端通信日志相对应的对端通信信息;Determining, according to the key information, communication information of a peer end corresponding to the communication log of the terminal among the communication peers;
    获取所述对端通信信息的第一通信时间和与所述对端通信信息时间上相邻的任一条通信信息的第二通信时间;Acquiring a first communication time of the peer communication information and a second communication time of any piece of communication information that is adjacent to the peer communication information in time;
    依据所述第一通信时间和所述第二通信时间的平均值校正所述当前终端上对应所述终端通信日志的终端通信信息时间。Correcting the terminal communication information time corresponding to the terminal communication log on the current terminal according to an average of the first communication time and the second communication time.
  10. 根据权利要求9所述的非易失性存储介质,在所述依据所述第一 通信时间和所述第二通信时间的平均值校正所述当前终端上对应所述终端通信日志的终端通信信息时间的操作之后,还包括:The non-volatile storage medium according to claim 9, wherein the terminal communication information corresponding to the terminal communication log on the current terminal is corrected based on an average of the first communication time and the second communication time. After the operation of time, it also includes:
    依据所述终端通信信息时间确定所述终端通信信息向所述当前终端发送的发送节点;Determining a sending node that the terminal communication information sends to the current terminal according to the terminal communication information time;
    依据发送节点向所述当前终端发送所述终端通信信息。Sending the terminal communication information to the current terminal according to a sending node.
  11. 根据权利要求9所述的非易失性存储介质,在所述日志服务器接收当前终端的终端通信日志的操作之中,具体包括:The non-volatile storage medium according to claim 9, wherein the operation of the log server receiving the terminal communication log of the current terminal specifically comprises:
    接收所述通信对端上载的对端通信日志。Receiving a peer communication log uploaded by the communication peer.
  12. 根据权利要求11所述的非易失性存储介质,在所述依据所述关键信息确定通信对端中与所述终端通信日志相对应的对端通信信息的操作之中,具体包括:The non-volatile storage medium according to claim 11, wherein the operation of determining the communication information of the peer end corresponding to the communication log of the terminal among the communication peer ends according to the key information specifically comprises:
    依据所述关键信息获取所述对端通信日志中与所述关键信息相对应的日志信息;Obtaining log information corresponding to the key information in the peer communication log according to the key information;
    依据所述日志信息确定所述通信对端中和所述终端通信日志相对应的所述对端通信信息,所述日志信息和所述对端通信信息相对应。Determining, according to the log information, the peer communication information corresponding to the communication log of the terminal in the communication peer, and the log information corresponds to the peer communication information.
  13. 根据权利要求9所述的非易失性存储介质,所述关键信息包括通信标识、命令序列、流量中的一种或者多种。The non-volatile storage medium according to claim 9, wherein the key information comprises one or more of a communication identifier, a command sequence, and a flow.
  14. 根据权利要求13所述的非易失性存储介质,在接收所述通信对端上载的对端通信日志的操作之后,还包括:The non-volatile storage medium according to claim 13, after receiving the operation of the peer communication log uploaded by the peer, further comprising:
    以索引结构存储所述对端通信日志。The peer communication log is stored in an index structure.
  15. 一种服务器,包括:A server including:
    一个或多个处理器;One or more processors;
    存储器;Memory
    一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个应用程序配置用于执行基于SIP协议的日志时间校正方法的以下操作:One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications are configured to execute The following operations of the log time correction method based on the SIP protocol:
    日志服务器接收当前终端的终端通信日志,提取所述终端通信日志中的关键信息;The log server receives a terminal communication log of the current terminal, and extracts key information in the terminal communication log;
    依据所述关键信息确定通信对端中与所述终端通信日志相对应的对 端通信信息;Determining, according to the key information, peer communication information corresponding to the communication log of the terminal among the communication peers;
    获取所述对端通信信息的第一通信时间和与所述对端通信信息时间上相邻的任一条通信信息的第二通信时间;Acquiring a first communication time of the peer communication information and a second communication time of any piece of communication information that is adjacent to the peer communication information in time;
    依据所述第一通信时间和所述第二通信时间的平均值校正所述当前终端上对应所述终端通信日志的终端通信信息时间。Correcting the terminal communication information time corresponding to the terminal communication log on the current terminal according to an average of the first communication time and the second communication time.
  16. 根据权利要求15所述的服务器,在所述依据所述第一通信时间和所述第二通信时间的平均值校正所述当前终端上对应所述终端通信日志的终端通信信息时间的操作之后,还包括:The server according to claim 15, after the operation of correcting terminal communication information time corresponding to the terminal communication log on the current terminal according to an average of the first communication time and the second communication time, Also includes:
    依据所述终端通信信息时间确定所述终端通信信息向所述当前终端发送的发送节点;Determining a sending node that the terminal communication information sends to the current terminal according to the terminal communication information time;
    依据发送节点向所述当前终端发送所述终端通信信息。Sending the terminal communication information to the current terminal according to a sending node.
  17. 根据权利要求15所述的服务器,在所述日志服务器接收当前终端的终端通信日志的操作之中,具体包括:The server according to claim 15, wherein the operation of the log server receiving the terminal communication log of the current terminal specifically comprises:
    接收所述通信对端上载的对端通信日志。Receiving a peer communication log uploaded by the communication peer.
  18. 根据权利要求17所述的服务器,在所述依据所述关键信息确定通信对端中与所述终端通信日志相对应的对端通信信息的操作之中,具体包括:The server according to claim 17, wherein the operation of determining the communication information of the peer end corresponding to the communication log of the terminal among the communication peer ends based on the key information specifically includes:
    依据所述关键信息获取所述对端通信日志中与所述关键信息相对应的日志信息;Obtaining log information corresponding to the key information in the peer communication log according to the key information;
    依据所述日志信息确定所述通信对端中和所述终端通信日志相对应的所述对端通信信息,所述日志信息和所述对端通信信息相对应。Determining, according to the log information, the peer communication information corresponding to the communication log of the terminal in the communication peer, and the log information corresponds to the peer communication information.
  19. 根据权利要求15所述的服务器,所述关键信息包括通信标识、命令序列、流量中的一种或者多种。The server according to claim 15, wherein the key information includes one or more of a communication identifier, a command sequence, and a flow.
  20. 根据权利要求19所述的服务器,在接收所述通信对端上载的对端通信日志的操作之后,还包括:The server according to claim 19, after receiving the operation of the peer communication log uploaded by the peer, further comprising:
    以索引结构存储所述对端通信日志。The peer communication log is stored in an index structure.
PCT/CN2018/108086 2018-07-09 2018-09-27 Sip-based log time correction method and device, and storage medium WO2020010718A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810747202.0 2018-07-09
CN201810747202.0A CN109120366B (en) 2018-07-09 2018-07-09 Log time correction method, device and storage medium based on SIP protocol

Publications (1)

Publication Number Publication Date
WO2020010718A1 true WO2020010718A1 (en) 2020-01-16

Family

ID=64862047

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/108086 WO2020010718A1 (en) 2018-07-09 2018-09-27 Sip-based log time correction method and device, and storage medium

Country Status (2)

Country Link
CN (1) CN109120366B (en)
WO (1) WO2020010718A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117093406A (en) * 2023-10-18 2023-11-21 浙江印象软件有限公司 Log center maintenance method and system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1885987A (en) * 2005-06-22 2006-12-27 上海华为技术有限公司 Method for inspecting clock stability between wireless network controller and base station
JP2009069892A (en) * 2007-09-10 2009-04-02 Ricoh Co Ltd Log time adjustment method, server and information processing system
CN102340429A (en) * 2011-10-12 2012-02-01 北京锐安科技有限公司 Automatic Internet protocol recovery detection method
WO2012163395A1 (en) * 2011-05-30 2012-12-06 Napatech A/S An apparatus and a method of parallel receipt, forwarding and time stamping data packets using synchronized clocks
CN103560906A (en) * 2013-10-22 2014-02-05 珠海多玩信息技术有限公司 Data replication method and device
CN104601349A (en) * 2013-10-30 2015-05-06 北京思博途信息技术有限公司 Method and device for correcting time of network behavior log
CN104935465A (en) * 2015-06-17 2015-09-23 北京京东尚科信息技术有限公司 Log generating method and log generating device of client application program, and server
WO2017143936A1 (en) * 2016-02-24 2017-08-31 华为技术有限公司 Web log time alignment method and apparatus, and host
CN108075876A (en) * 2016-11-18 2018-05-25 腾讯科技(深圳)有限公司 A kind of time calibrating method, apparatus and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090067408A1 (en) * 2007-09-12 2009-03-12 Nokia Corporation Centralized call log and method thereof
CN101964886A (en) * 2010-09-03 2011-02-02 深圳创维数字技术股份有限公司 EPG calibration system based on user operation log and method
CN107040748A (en) * 2016-02-03 2017-08-11 北京机电工程研究所 One kind monitoring and video conference application integration platform and method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1885987A (en) * 2005-06-22 2006-12-27 上海华为技术有限公司 Method for inspecting clock stability between wireless network controller and base station
JP2009069892A (en) * 2007-09-10 2009-04-02 Ricoh Co Ltd Log time adjustment method, server and information processing system
WO2012163395A1 (en) * 2011-05-30 2012-12-06 Napatech A/S An apparatus and a method of parallel receipt, forwarding and time stamping data packets using synchronized clocks
CN102340429A (en) * 2011-10-12 2012-02-01 北京锐安科技有限公司 Automatic Internet protocol recovery detection method
CN103560906A (en) * 2013-10-22 2014-02-05 珠海多玩信息技术有限公司 Data replication method and device
CN104601349A (en) * 2013-10-30 2015-05-06 北京思博途信息技术有限公司 Method and device for correcting time of network behavior log
CN104935465A (en) * 2015-06-17 2015-09-23 北京京东尚科信息技术有限公司 Log generating method and log generating device of client application program, and server
WO2017143936A1 (en) * 2016-02-24 2017-08-31 华为技术有限公司 Web log time alignment method and apparatus, and host
CN108075876A (en) * 2016-11-18 2018-05-25 腾讯科技(深圳)有限公司 A kind of time calibrating method, apparatus and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117093406A (en) * 2023-10-18 2023-11-21 浙江印象软件有限公司 Log center maintenance method and system
CN117093406B (en) * 2023-10-18 2024-02-09 浙江印象软件有限公司 Log center maintenance method and system

Also Published As

Publication number Publication date
CN109120366A (en) 2019-01-01
CN109120366B (en) 2021-10-29

Similar Documents

Publication Publication Date Title
Rosenberg et al. SIP: session initiation protocol
US7519052B2 (en) Apparatus and method to provide current location information services in a network
US9602634B2 (en) Global session identifier
US7480723B2 (en) Method and system for providing directory based services
US11848866B2 (en) Dynamic loop detection and suppression
CN110933180B (en) Communication establishment method, device, load equipment and storage medium
US8938545B2 (en) SIP transfer in a back-to-back user agent (B2BUA) environment
US20040114744A1 (en) Dynamic user state dependent processing
US8296447B2 (en) Method for copying session information, call control server for executing the same, and computer product
US20080304495A1 (en) System for communicating with an internet protocol multimedia subsystem network
US20020073203A1 (en) Providing calling party information in a request to establish a call session
KR20060092859A (en) Reducing storage requirement for route information
WO2008040614A2 (en) Markers for communication systems comprising a plurality of sip servers
US10721318B2 (en) Methods and apparatus for generating, aggregating and/or distributing presence information
US8027445B2 (en) Method and system to provision emergency contact services in a communication network
US20110040833A1 (en) Methods and Arrangements for Interactive Caller Information Services in a Communication Network
GB2417639A (en) Assigning participant identifying data to network transmission events.
EP2924942A2 (en) Method, device and system for achieving multi-service server distribution of session initiation protocol
US20130219070A1 (en) Resolving device specific identifiers to a user identifier to initiate a dialog establishment with devices of a user
EP2816778B1 (en) Establishing a communication between a Web application and a terminal
WO2020010718A1 (en) Sip-based log time correction method and device, and storage medium
US20040160985A1 (en) System and method for network address translation and session management
US9762621B2 (en) Call routing for IP multimedia subsystem users
US8868759B2 (en) Communication system and server
CN108989221B (en) SIP message transmission method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18926059

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 20/04/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18926059

Country of ref document: EP

Kind code of ref document: A1