CN109981527A - Method, apparatus, electronic equipment and the storage medium of association process - Google Patents
Method, apparatus, electronic equipment and the storage medium of association process Download PDFInfo
- Publication number
- CN109981527A CN109981527A CN201711448964.2A CN201711448964A CN109981527A CN 109981527 A CN109981527 A CN 109981527A CN 201711448964 A CN201711448964 A CN 201711448964A CN 109981527 A CN109981527 A CN 109981527A
- Authority
- CN
- China
- Prior art keywords
- time period
- calling
- address
- media stream
- invite message
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 120
- 230000008569 process Effects 0.000 title claims description 37
- 238000012545 processing Methods 0.000 claims abstract description 28
- 238000013441 quality evaluation Methods 0.000 claims abstract description 12
- 238000004590 computer program Methods 0.000 claims description 11
- 230000000977 initiatory effect Effects 0.000 abstract description 4
- 230000000875 corresponding effect Effects 0.000 description 20
- 230000011664 signaling Effects 0.000 description 18
- 238000001303 quality assessment method Methods 0.000 description 12
- 238000010586 diagram Methods 0.000 description 10
- 238000011156 evaluation Methods 0.000 description 5
- 238000012937 correction Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 230000002596 correlated effect Effects 0.000 description 3
- 238000007405 data analysis Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 239000000872 buffer Substances 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000011867 re-evaluation Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
- H04L65/1069—Session establishment or de-establishment
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
- H04L65/1101—Session protocols
- H04L65/1104—Session initiation protocol [SIP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/80—Responding to QoS
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Telephonic Communication Services (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明实施例提供一种关联处理的方法、装置、电子设备和存储介质。所述方法包括获取第一时间段内至少一个第一媒体流的主叫网络之间互连的协议IP地址/端口号,第一媒体流是无法关联到第一时间段的邀请INVITE消息的媒体流,并获取第二时间段内至少一个会话初始化协议SIP呼叫流程的INVITE消息的主叫身份标识ID和主叫IP地址/端口号,第二时间段在第一时间段之前且与第一时间相邻;若第一媒体流的主叫IP地址/端口号与第二时间段的INVITE消息的主叫IP地址/端口号关联一致,则将第二时间段的INVITE消息的主叫ID回填至第一媒体流。所述方法通过在INVITE消息与媒体流关联失败后,进行二次关联,在不改变协议的情况下,简单经济的实现语音质量评估。
Embodiments of the present invention provide a method, apparatus, electronic device, and storage medium for association processing. The method includes acquiring the protocol IP address/port number of the interconnection between the calling networks of at least one first media stream in the first time period, where the first media stream is the media that cannot be associated with the invitation INVITE message of the first time period flow, and obtain the caller identity ID and the caller IP address/port number of the INVITE message of at least one session initiation protocol SIP call flow in the second time period, the second time period is before the first time period and is the same as the first time period Adjacent; if the calling IP address/port number of the first media stream is consistent with the calling IP address/port number of the INVITE message in the second time period, then backfill the calling ID of the INVITE message in the second time period to first media stream. In the method, after the association between the INVITE message and the media stream fails, the secondary association is performed, and the voice quality evaluation is simply and economically realized without changing the protocol.
Description
技术领域technical field
本发明实施例涉及通信技术领域,特别是一种关联处理的方法、装置、电子设备和存储介质。The embodiments of the present invention relate to the field of communication technologies, and in particular, to a method, an apparatus, an electronic device, and a storage medium for association processing.
背景技术Background technique
随着VoLTE(Voice Over LTE,基于LTE网络的语音业务)网络的大规模商用,VoLTE高清语音通话越来越受到用户的喜爱,保证语音会话流畅、不掉线是非常重要的。With the large-scale commercial use of VoLTE (Voice Over LTE, voice service based on LTE network) network, VoLTE high-definition voice calls are more and more popular among users. It is very important to ensure smooth voice conversations and no dropped calls.
为进一步监测和提升VoLTE语音业务质量,需对语音业务质量进行评估。In order to further monitor and improve the VoLTE voice service quality, it is necessary to evaluate the voice service quality.
在一路会话过程中,在时序上是先进行信令面的SIP(Session InitiationProtocol,会话初始化协议)流程,然后进行媒体面的媒体流的流程,信令面的流程的时间包括了所有媒体面的流程的时间。In the process of one session, the SIP (Session Initiation Protocol) process on the signaling plane is performed first, and then the media stream process on the media plane is performed. The time of the signaling plane process includes all media planes. process time.
SIP呼叫流程包括多个SIP消息,自INVITE(邀请)消息开始,表示主叫邀请被叫进行语音通话,INVITE消息中包括标识信息:主叫ID(Identification,身份标识)。The SIP call flow includes multiple SIP messages, starting with an INVITE (invite) message, indicating that the calling party invites the called party to make a voice call, and the INVITE message includes identification information: the calling party ID (Identification).
媒体流承载RTP(Real-time Transport Protocol,实时传输协议)和RTCP(Real-time Control Protocol,实时传输控制协议),媒体流包括多个数据包,数据包属于IP(Internet Protocol,网络之间互连的协议)包。The media stream carries RTP (Real-time Transport Protocol, real-time transport protocol) and RTCP (Real-time Control Protocol, real-time transmission control protocol). The media stream includes multiple data packets. connection protocol) package.
SIP呼叫流程和媒体流承载不同的协议,经过不同的接口,在进行语音质量评估时,首先需将SIP呼叫流程和媒体流关联起来,得到一路会话的信令面和媒体面信息,才能进行语音评估。The SIP call flow and the media stream carry different protocols, and through different interfaces, when evaluating the voice quality, it is necessary to first associate the SIP call flow with the media stream, and obtain the signaling and media plane information of a session before voice quality can be performed. Evaluate.
而由于数据包中不包括主叫ID,将SIP呼叫流程和媒体流关联比较困难。However, since the caller ID is not included in the data packet, it is difficult to associate the SIP call flow with the media flow.
现有技术中将SIP呼叫流程和媒体流关联的方式为:In the prior art, the method of associating the SIP call flow with the media stream is:
终端在进行会话时,在媒体面的数据包中填充SIP标志,使得进行语音评估时,能够通过包中的SIP标志迅速与该数据包所属的SIP流程进行匹配关联。When the terminal is in a session, the SIP flag is filled in the data packet on the media plane, so that when performing voice evaluation, the SIP flag in the packet can be quickly matched and associated with the SIP process to which the data packet belongs.
现有技术的缺陷在于:The disadvantages of the prior art are:
需要特定终端才能支持完成,需要改变数据包结构,需要更改当前使用的协议标准,实现比较困难且成本很高。It requires a specific terminal to support the completion, the data packet structure needs to be changed, and the currently used protocol standard needs to be changed, which is difficult and costly to implement.
发明内容SUMMARY OF THE INVENTION
针对现有技术的缺陷,本发明实施例提供一种关联处理的方法、装置、电子设备和存储介质。In view of the defects of the prior art, embodiments of the present invention provide a method, an apparatus, an electronic device, and a storage medium for association processing.
一方面,本发明实施例提供一种关联处理的方法,所述方法包括:On the one hand, an embodiment of the present invention provides a method for association processing, the method includes:
获取第一时间段内至少一个第一媒体流的主叫网络之间互连的协议IP地址/端口号,所述第一媒体流是无法关联到第一时间段的邀请INVITE消息的媒体流,并获取第二时间段内至少一个会话初始化协议SIP呼叫流程的INVITE消息的主叫身份标识ID和主叫IP地址/端口号,所述第二时间段在第一时间段之前且与第一时间相邻;obtaining the protocol IP address/port number of the interconnection between the calling networks of at least one first media stream in the first time period, where the first media stream is a media stream that cannot be associated with the INVITE message of the first time period, and obtain the calling identity ID and calling IP address/port number of the INVITE message of at least one session initialization protocol SIP call flow in the second time period, the second time period is before the first time period and is the same as the first time period. adjacent;
若第一媒体流的主叫IP地址/端口号与第二时间段的INVITE消息的主叫IP地址/端口号关联一致,则将第二时间段的INVITE消息的主叫ID回填至第一媒体流。If the calling IP address/port number of the first media stream is consistent with the calling IP address/port number of the INVITE message of the second time period, the calling ID of the INVITE message of the second time period is backfilled to the first media flow.
另一方面,本发明实施例提供一种关联处理的装置,所述装置包括:On the other hand, an embodiment of the present invention provides an apparatus for association processing, and the apparatus includes:
获取模块,用于获取第一时间段内至少一个第一媒体流的IP地址/端口号,所述第一媒体流是无法关联到第一时间段的INVITE消息的媒体流,并获取第二时间段内至少一个SIP呼叫流程的INVITE消息的主叫身份标识ID和主叫IP地址/端口号,所述第二时间段在第一时间段之前且与第一时间相邻;The obtaining module is used to obtain the IP address/port number of at least one first media stream in the first time period, the first media stream is a media stream that cannot be associated with the INVITE message of the first time period, and obtains the second time The caller identity ID and the caller IP address/port number of the INVITE message of at least one SIP call flow in the segment, the second time period is before the first time period and adjacent to the first time;
回填模块,用于若第一媒体流的主叫IP地址/端口号与第二时间段的INVITE消息的主叫IP地址/端口号关联一致,则将第二时间段的INVITE消息的主叫ID回填至第一媒体流。The backfilling module is used for, if the calling IP address/port number of the first media stream is consistent with the calling IP address/port number of the INVITE message of the second time period, then the calling ID of the INVITE message of the second time period Backfill to the first media stream.
另一方面,本发明实施例还提供一种电子设备,包括存储器、处理器、总线以及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现以上方法的步骤。On the other hand, an embodiment of the present invention also provides an electronic device, including a memory, a processor, a bus, and a computer program stored in the memory and running on the processor, where the processor implements the above method when executing the program A step of.
另一方面,本发明实施例还提供一种存储介质,其上存储有计算机程序,所述程序被处理器执行时实现如上方法的步骤。On the other hand, an embodiment of the present invention further provides a storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the above method are implemented.
由上述技术方案可知,本发明实施例提供的关联处理的方法、装置、电子设备和存储介质,所述方法通过在INVITE消息与媒体流关联失败后,还进行二次关联,可以提高关联的成功率,在不改变协议的情况下,可准确的进行语音质量评估,从而可简单经济的实现语音质量评估。It can be seen from the above technical solutions that the method, apparatus, electronic device and storage medium for association processing provided by the embodiments of the present invention can improve the success of association by performing secondary association after the association between the INVITE message and the media stream fails. In the case of not changing the protocol, the voice quality assessment can be performed accurately, so that the voice quality assessment can be implemented simply and economically.
附图说明Description of drawings
图1为本发明实施例提供的一种关联处理的方法的流程示意图;1 is a schematic flowchart of a method for association processing provided by an embodiment of the present invention;
图2为本发明又一实施例提供的RTP数据库示意图;2 is a schematic diagram of an RTP database provided by another embodiment of the present invention;
图3为本发明又一实施例提供的SIP数据库示意图;3 is a schematic diagram of a SIP database provided by another embodiment of the present invention;
图4为本发明又一实施例提供的关联处理的方法的流程示意图;4 is a schematic flowchart of a method for association processing provided by another embodiment of the present invention;
图5为本发明又一实施例提供的数据关联的示意图;5 is a schematic diagram of data association provided by another embodiment of the present invention;
图6为本发明又一实施例提供的一种关联处理的装置的结构示意图;6 is a schematic structural diagram of an apparatus for association processing provided by another embodiment of the present invention;
图7为本发明又一实施例提供的一种电子设备的结构示意图。FIG. 7 is a schematic structural diagram of an electronic device according to another embodiment of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本发明实施例一部分实施例,而不是全部的实施例。In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly described below with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are the Inventive Embodiments are some of the embodiments, but not all of the embodiments.
一路会话的呼叫建立流程为:The call establishment process of a session is as follows:
信令面的流程:VoLTE使用SIP建立、修改和删除会话,主叫向网络侧发起SIP消息INVITE,自此开始SIP呼叫信令流程,主被叫完成协商。Process on the signaling plane: VoLTE uses SIP to establish, modify and delete sessions, the calling party sends a SIP message INVITE to the network side, and the SIP call signaling process begins, and the calling party and the called party complete the negotiation.
媒体面流程:主被叫完成协商后,主被叫建立媒体流,进行通讯交流,通讯交流的方式为交换RTP和RTCP的数据包。Media plane process: After the calling party and the called party complete the negotiation, the calling party and the called party establish a media stream and conduct communication exchange. The communication exchange method is to exchange RTP and RTCP data packets.
呼叫释放流程为:The call release process is:
信令面的流程:一方发送BYE(挂机)消息。Process on the signaling plane: one party sends a BYE (on-hook) message.
媒体面流程:不再交换数据包。Media plane process: no longer exchange packets.
SIP呼叫流程包括多个SIP消息,自INVITE消息开始,经过100trying(应答)、180ring(振铃信息)、200ok(成功指示)和ACK(确定消息)后停止,其中INVITE消息中包括标识信息,具体为:主叫ID(Identification,身份识别)、主叫IP地址/端口号。The SIP call process includes multiple SIP messages. It starts from the INVITE message and stops after 100trying (response), 180ring (ringing information), 200ok (success indication) and ACK (determination message). The INVITE message includes identification information. It is: caller ID (Identification, identification), caller IP address/port number.
媒体流包括多个数据包,数据包属于IP包,数据包中包括标识信息,具体为:主叫IP地址/端口号,一路会话的媒体流中数据包的标识信息相同。The media stream includes multiple data packets, the data packets belong to IP packets, and the data packets include identification information, specifically: the calling IP address/port number, and the identification information of the data packets in the media streams of one session is the same.
媒体流包括实时传输协议RTP流和实时传输控制协议RTCP流。Media streams include real-time transport protocol RTP streams and real-time transport control protocol RTCP streams.
相应地,数据包包括RTP包和RTCP包,RTCP是与RTP一起配合使用的协议,当启动一路会话的媒体面时,将同时占用两个端口,分别供RTP和RTCP使用。Correspondingly, the data packets include RTP packets and RTCP packets. RTCP is a protocol used together with RTP. When the media plane of a session is started, two ports will be occupied at the same time, which are used by RTP and RTCP respectively.
主叫与被叫周期性交换RTP包和RTCP包,RTP包和RTCP包占用的资源大小、发送的周期可不相同,其中,RTP包封装语音数据,也就是主被叫的通话语音,RTCP包封装网络状况数据,提供会话质量或者性能质量的信息,例如RTP包的总数、丢失的RTP包的数量和RTP包的抖动等情况。The calling party and the called party periodically exchange RTP packets and RTCP packets. The size of the resources occupied by the RTP packets and the RTCP packets and the sending period may be different. Among them, the RTP packets encapsulate the voice data, that is, the calling voice of the calling party and the called party, and the RTCP packets encapsulate the voice data. Network status data, providing information about session quality or performance quality, such as the total number of RTP packets, the number of lost RTP packets, and the jitter of RTP packets.
由于数据包中不包括主叫ID,本发明实施例中使用主叫IP地址/端口号为共同点进行关联。Since the data packet does not include the calling ID, in the embodiment of the present invention, the calling IP address/port number is used as a common point for association.
若INVITE消息与媒体流属于同一路会话,则INVITE消息中的主叫IP地址与数据包中的主叫IP地址是一致的,且INVITE消息中的主叫端口号与数据包中的主叫端口号也是一致的。If the INVITE message and the media stream belong to the same session, the calling IP address in the INVITE message is the same as the calling IP address in the data packet, and the calling port number in the INVITE message is the same as the calling port in the data packet. The numbers are also the same.
可选地,主叫ID是终端签约入网时的唯一标识,不会随着时间而改变,可选地,主叫IP地址和端口号是终端附着在IMS网络,由IMS网络为终端分配的IP地址和端口号,若发生脱网,则重新分配主叫IP地址和端口号。Optionally, the calling ID is the unique identifier of the terminal when the terminal subscribes to the network, and will not change over time. Optionally, the calling IP address and port number are the IP address assigned by the IMS network to the terminal when the terminal is attached to the IMS network IP address and port number. If disconnection occurs, the calling IP address and port number will be reassigned.
端口号是用于区分业务的逻辑端口的唯一标识,与IP地址是一一对应的,主叫IP地址或端口号都可以识别当前的主叫的身份。The port number is a unique identifier of a logical port used to distinguish services, and is in one-to-one correspondence with an IP address. Either the calling IP address or the port number can identify the identity of the current calling party.
也就是说,若INVITE消息中的主叫IP地址/端口号与数据包中的主叫IP地址/端口号是一致的,则可以将INVITE消息中的主叫ID回填至数据包中,从而将数据包与主被叫关联起来,对这一路会话进行评估。That is to say, if the calling IP address/port number in the INVITE message is the same as the calling IP address/port number in the data packet, the calling ID in the INVITE message can be backfilled into the data packet, so that the The data packet is associated with the calling party and the called party, and the session is evaluated.
根据RTP流或RTCP流,都可进行语音质量评估。当然,也可以结合RTP流或RTCP流进行语音评估。Voice quality assessment can be performed on either the RTP stream or the RTCP stream. Of course, voice evaluation can also be performed in combination with RTP streams or RTCP streams.
实际应用中,在采集SIP呼叫流程的步骤中,有可能丢失了INVITE消息,则数据包的IP地址关联不到INVITE消息,从而数据包得不到回填,因此该数据包被抛弃,相当于媒体面部分数据包没有进行语音业务质量的评估,从整体上来看,影响了语音业务质量评估的准确性,应用本发明实施例的方法可避免出现这种问题。In practical applications, in the step of collecting the SIP call flow, the INVITE message may be lost, and the IP address of the data packet cannot be associated with the INVITE message, so the data packet cannot be backfilled, so the data packet is discarded, which is equivalent to the media. The voice service quality is not evaluated for some data packets on the face, which affects the accuracy of the voice service quality evaluation as a whole. This problem can be avoided by applying the method of the embodiment of the present invention.
图1示出了本发明实施例提供的一种关联处理的方法的流程示意图。FIG. 1 shows a schematic flowchart of a method for association processing provided by an embodiment of the present invention.
如图1所示,本发明实施例提供的方法具体包括以下步骤:As shown in Figure 1, the method provided by the embodiment of the present invention specifically includes the following steps:
步骤11、获取第一时间段内至少一个第一媒体流的主叫网络之间互连的协议IP地址/端口号,所述第一媒体流是无法关联到第一时间段的邀请INVITE消息的媒体流,并获取第二时间段内至少一个会话初始化协议SIP呼叫流程的INVITE消息的主叫身份标识ID和主叫IP地址/端口号,所述第二时间段在第一时间段之前且与第一时间相邻;Step 11. Obtain the protocol IP address/port number of the interconnection between the calling networks of at least one first media stream in the first time period. The first media stream cannot be associated with the INVITE message of the first time period. media stream, and obtain the caller identity ID and the caller IP address/port number of the INVITE message of at least one session initiation protocol SIP call flow in the second time period, the second time period is before the first time period and is the same as first time adjacent;
在本步骤之前,在信令面所述第二时间段以及所述第一时间段,采集的SIP呼叫流程,并将采集的SIP呼叫流程的INVITE消息进行缓存,以供所述第二时间段以及所述第一时间段的媒体流进行关联。Before this step, collect the SIP call flow in the second time period and the first time period on the signaling plane, and cache the collected INVITE message of the SIP call flow for the second time period and the media streams of the first time period are associated.
对每一时间段的媒体流与SIP呼叫流程都进行关联,在本发明实施例中,以对第一时间段内的媒体流与SIP呼叫流程进行关联为例进行说明。The media stream in each time period is associated with the SIP call flow. In the embodiment of the present invention, the association between the media stream in the first time period and the SIP call flow is taken as an example for description.
可选地,通过该INVITE消息与数据包关联,从而将SIP呼叫流程与媒体流关联起来。Optionally, the INVITE message is associated with the data packet, thereby associating the SIP call flow with the media stream.
可选地,关联是指查找第一时间段内的媒体流的主叫IP地址是否与第一时间段内INVITE消息的主叫IP地址一致,或者查找第一时间段内的媒体流的主叫端口号是否与第一时间段内INVITE消息的端口号一致。Optionally, the association refers to finding out whether the calling IP address of the media stream within the first time period is consistent with the calling IP address of the INVITE message within the first time period, or finding the calling party of the media stream within the first time period. Whether the port number is the same as the port number of the INVITE message in the first time period.
主叫IP地址和端口号任一项查找一致,均可认为关联成功,本发明实施例以主叫IP地址为例进行说明。If any one of the calling IP address and the port number is found to be consistent, it can be considered that the association is successful. The embodiment of the present invention takes the calling IP address as an example for description.
若第一时间段内的媒体流的主叫IP地址与INVITE消息的主叫IP地址一致,认为关联成功,将该INVITE消息的主叫ID回填至该媒体流的各个数据包。If the calling IP address of the media stream in the first time period is consistent with the calling IP address of the INVITE message, it is considered that the association is successful, and the calling ID of the INVITE message is backfilled into each data packet of the media stream.
若不一致,认为第一时间段内没有采集到一致的INVITE消息,因此无法将INVITE消息与该媒体流关联,得到第一媒体流。If they are inconsistent, it is considered that no consistent INVITE message is collected within the first time period, so the INVITE message cannot be associated with the media stream to obtain the first media stream.
可选地,第一时间段和第二时间段可根据实际情况设置,例如,第一时间段为(9点-9点30分】这30分钟,第二时间段为(8点30分到9点】这30分钟。Optionally, the first time period and the second time period can be set according to the actual situation. For example, the first time period is (9:00-9:30) for 30 minutes, and the second time period is (8:30-9:30). 9:00] These 30 minutes.
可选地,根据第一时间段内的每一第一媒体流,分别与第二时间段内SIP呼叫流程进行关联。Optionally, each first media stream in the first time period is associated with the SIP call flow in the second time period, respectively.
在第一时间段内的媒体流与SIP呼叫流程关联失败的情况下,还尝试与其他的时间,第二时间段中SIP呼叫流程进行关联。In the case that the association between the media stream in the first time period and the SIP call flow fails, an attempt is also made to associate with the SIP call flow in the second time period at another time.
可选地,根据每一第一媒体流的主叫IP地址,查找第二时间段的INVITE消息的主叫IP地址。Optionally, searching for the calling IP address of the INVITE message in the second time period according to the calling IP address of each first media stream.
如果主叫在第一时间段和第二时间段之间,没有发生关机、离开归属地和打开飞行模式等脱网行为,主叫IP地址/端口号通常是不变的,可认为主叫IP地址/端口号相同,则确实为同一主叫。If the caller does not turn off the network, leave the home, or turn on the airplane mode, etc., between the first time period and the second time period, the calling IP address/port number is usually unchanged, and it can be considered that the calling IP If the address/port number is the same, it is indeed the same caller.
由于第一时间段内不存在与媒体流关联的INVITE消息,可在第二时间段内继续查找同一主叫是否发起会话。Since there is no INVITE message associated with the media stream in the first time period, it can continue to find out whether the same caller initiates a session in the second time period.
步骤12、若第一媒体流的主叫IP地址/端口号与第二时间段的INVITE消息的主叫IP地址/端口号关联一致,则将第二时间段的INVITE消息的主叫ID回填至第一媒体流。Step 12: If the calling IP address/port number of the first media stream is consistent with the calling IP address/port number of the INVITE message in the second time period, backfill the calling ID of the INVITE message in the second time period to first media stream.
如果第二时间段存在与第一时间段的第一媒体流的IP地址匹配一致的INVITE消息,表示在第一时间段之前,同一主叫在第二时间段内还发起过另一个会话,第二时间段对应的会话的INVITE消息采集到了,第一时间段对应的会话的INVITE消息采集丢失。If there is an INVITE message in the second time period that matches the IP address of the first media stream in the first time period, it means that before the first time period, the same caller has initiated another session in the second time period. The INVITE message of the session corresponding to the second time period has been collected, and the collection of the INVITE message of the session corresponding to the first time period has been lost.
可选地,语音质量跟时间和地点有很大关系,由于时间相邻,即使是不同的两路会话,可认为主叫没有移动,这两路会话的语音质量相近似,将第二时间段的INVITE消息的主叫ID回填至第一媒体流的数据包。Optionally, the voice quality has a lot to do with time and location. Since the time is adjacent, even if the two sessions are different, it can be considered that the caller has not moved. The voice quality of the two sessions is similar. The caller ID of the INVITE message is backfilled into the data packet of the first media stream.
根据所述INVITE消息对应的SIP呼叫流程以及第一媒体流进行语音质量评估。The voice quality evaluation is performed according to the SIP call flow corresponding to the INVITE message and the first media stream.
所述INVITE消息对应的SIP呼叫流程以及第一媒体流关联起来相当于一路完整的会话,针对完整的会话进行语音质量评估。The SIP call flow corresponding to the INVITE message and the first media stream are correlated to correspond to a complete session, and voice quality evaluation is performed for the complete session.
如果第一时间段的第一媒体流和第二时间段的INVITE消息的IP地址匹配不一致,则认为该第一媒体流无法关联,结束流程。If the IP addresses of the first media stream in the first time period and the INVITE message in the second time period do not match the IP addresses, it is considered that the first media stream cannot be associated, and the process ends.
在本发明实施例中,在首次(第一媒体流与第一时间段的INVITE消息)关联失败的时候,还进行二次(将第一媒体流与第二时间段的INVITE消息)关联,可以提高关联的成功率。In this embodiment of the present invention, when the association fails for the first time (the first media stream and the INVITE message of the first time period), a second association (the first media stream and the INVITE message of the second time period) is also performed. Improve the success rate of associations.
若二次关联成功,将INVITE消息的主叫ID回填至第一媒体流,再对INVITE消息对应的SIP呼叫流程,以及第一媒体流进行语音业务质量的评估,减少抛弃第一媒体流的情况,从整体上提高语音质量评估准确性。If the secondary association is successful, the caller ID of the INVITE message is backfilled to the first media stream, and then the SIP call process corresponding to the INVITE message and the first media stream are evaluated for the quality of the voice service to reduce the situation of discarding the first media stream. , to improve the overall accuracy of speech quality assessment.
本实施例提供的关联处理的方法,通过在INVITE消息与媒体流关联失败后,还进行二次关联,可以提高关联的成功率,在不改变协议的情况下,可准确的进行语音质量评估,从而可简单经济的实现语音质量评估。The method for association processing provided in this embodiment can improve the success rate of association by performing a secondary association after the association between the INVITE message and the media stream fails, and can accurately evaluate the voice quality without changing the protocol. Therefore, voice quality evaluation can be implemented simply and economically.
在上述实施例的基础上,本发明又一实施例提供的关联处理的方法,获取第一时间段内至少一个第一媒体流的IP地址的步骤之前,所述方法包括:On the basis of the above embodiment, in the method for association processing provided by another embodiment of the present invention, before the step of acquiring the IP address of at least one first media stream in the first time period, the method includes:
采集第一时间段内多个第二媒体流;collecting multiple second media streams within the first time period;
获取每一第二媒体流的主叫IP地址/端口号;Obtain the calling IP address/port number of each second media stream;
根据每一第二媒体流的主叫IP地址/端口号,查找第一时间段内是否存在一致的INVITE消息;According to the calling IP address/port number of each second media stream, find out whether there is a consistent INVITE message within the first time period;
若不存在,将所述第二媒体流记为第一媒体流,将所述第一媒体流的主叫IP地址/端口号存入RTP数据库;If it does not exist, the second media stream is recorded as the first media stream, and the calling IP address/port number of the first media stream is stored in the RTP database;
相应地,获取第一时间段内至少一个第一媒体流的主叫IP地址/端口号的步骤具体为:Correspondingly, the step of acquiring the calling IP address/port number of at least one first media stream in the first time period is as follows:
从所述RTP数据库提取至少一个第一媒体流的主叫IP地址/端口号。The calling IP address/port number of at least one first media stream is extracted from the RTP database.
可选地,从Mb接口采集第二媒体流,也就是在实际会话过程中的媒体面信息。Optionally, the second media stream is collected from the Mb interface, that is, the media plane information during the actual session.
可选地,Mb接口位于IMS(IP Multimedia Subsystem,IP多媒体子系统)网络到IPv6(Internet Protocol Version 6,IP的第六版)网络的之间,IPv6是设计的用于替代IPv4(Internet Protocol Version 4,IP的第四版,构成现今互联网技术的基础的协议)的下一代IP协议。Optionally, the Mb interface is located between the IMS (IP Multimedia Subsystem, IP Multimedia Subsystem) network to the IPv6 (Internet Protocol Version 6, the sixth edition of IP) network, and IPv6 is designed to replace IPv4 (Internet Protocol Version 6). 4, the fourth edition of IP, the next generation IP protocol that forms the basis of today's Internet technology).
可选地,将每一时间段采集的第二媒体流,进行首次关联,判断是否关联到INVITE消息,得到无法关联的第一媒体流。Optionally, first associate the second media stream collected in each time period, determine whether it is associated with the INVITE message, and obtain the first media stream that cannot be associated.
图2为本发明又一实施例提供的RTP数据库示意图。FIG. 2 is a schematic diagram of an RTP database provided by another embodiment of the present invention.
如图2所示,对第一媒体流进行解析,生成RTP数据库,所述RTP数据库包括多个第一媒体流的信息,包括主叫IP地址、端口号、SSRC(Synchronization source,定义同步源)、时间、RTP总包数、RTP丢包数等信息。As shown in FIG. 2 , the first media stream is parsed to generate an RTP database, where the RTP database includes information of multiple first media streams, including the calling IP address, port number, and SSRC (Synchronization source, defining a synchronization source) , time, total RTP packets, RTP packet loss and other information.
可选地,在进行二次关联时,从所述RTP数据库提取至少一个第一媒体流的主叫IP地址/端口号。Optionally, when performing secondary association, the calling IP address/port number of at least one first media stream is extracted from the RTP database.
本实施例其他步骤与前述实施例步骤相似,本实施例不再赘述。Other steps in this embodiment are similar to those in the foregoing embodiment, and are not repeated in this embodiment.
本实施例提供的关联处理的方法,通过对关联失败的媒体流独立成数据库,便于读取。The method for association processing provided in this embodiment is easy to read by independently forming a database for media streams that fail to be associated.
在上述实施例的基础上,本发明又一实施例提供的关联处理的方法,获取第二时间段内至少一个SIP呼叫流程的INVITE消息的主叫ID和IP地址的步骤之前,所述方法包括:On the basis of the above embodiment, in the method for association processing provided by another embodiment of the present invention, before the step of acquiring the caller ID and IP address of the INVITE message of at least one SIP call flow in the second time period, the method includes: :
采集第一时间段和第二时间段的多个SIP呼叫流程;collecting multiple SIP call flows in the first time period and the second time period;
将每一SIP呼叫流程的INVITE消息的主叫ID和主叫IP地址/端口号存入SIP数据库;Store the calling ID and calling IP address/port number of the INVITE message of each SIP call process into the SIP database;
获取第二时间段内至少一个SIP呼叫流程的INVITE消息的主叫ID和IP地址的步骤具体为:The steps of acquiring the caller ID and IP address of the INVITE message of at least one SIP call flow in the second time period are as follows:
从SIP数据库提取第二时间段的至少一个SIP呼叫流程的INVITE消息的主叫ID和主叫IP地址/端口号。The caller ID and the caller IP address/port number of the INVITE message of at least one SIP call flow of the second time period are extracted from the SIP database.
可选地,将每一时间段采集的SIP呼叫流程的INVITE消息都放入SIP数据库,以供每一时间段的媒体流进行关联,尤其是第一时间段内第一媒体流无法关联的情况下,从SIP数据库提取第二时间段的INVITE消息进行关联。Optionally, put the INVITE messages of the SIP call flow collected in each time period into the SIP database, so that the media streams of each time period can be associated, especially when the first media stream cannot be associated in the first time period. Next, extract the INVITE message of the second time period from the SIP database for association.
若不存在INVITE消息,则将SIP呼叫流程的其他SIP消息放入SIP数据库。If there is no INVITE message, other SIP messages of the SIP call flow are put into the SIP database.
可选地,从Mw接口采集SIP呼叫流程,Mw接口是IMS域信令接口,具体为VoLTE的SBC(Session Border Control,会话边界控制器)与CSCF(Call Session Control Function服务会话控制功能)网元之间的接口。Optionally, the SIP call flow is collected from the Mw interface, which is an IMS domain signaling interface, specifically the SBC (Session Border Control, session border controller) and CSCF (Call Session Control Function) network elements of VoLTE. between interface.
图3为本发明又一实施例提供的SIP数据库示意图。FIG. 3 is a schematic diagram of a SIP database provided by another embodiment of the present invention.
如图3所示,SIP数据库可存入多种信息,包含主叫ID、被叫ID、主叫IP地址、端口号、CALL ID(SIP级别的主叫标识)、时间等信息。As shown in Figure 3, the SIP database can store a variety of information, including calling ID, called ID, calling IP address, port number, CALL ID (SIP-level calling ID), time and other information.
本实施例其他步骤与前述实施例步骤相似,本实施例不再赘述。Other steps in this embodiment are similar to those in the foregoing embodiment, and are not repeated in this embodiment.
本实施例提供的关联处理的方法,通过对每一时间段的SIP呼叫流程都放入SIP数据库,以供第一时间段内第一媒体流无法关联的情况下,从SIP数据库提取第二时间段的INVITE消息进行关联。In the method for association processing provided by this embodiment, the SIP call flow of each time period is put into the SIP database, so that the second time can be extracted from the SIP database when the first media stream cannot be associated in the first time period. The segment's INVITE message is associated.
在上述实施例的基础上,本发明又一实施例提供的关联处理的方法,获取第二时间段内至少一个SIP呼叫流程的INVITE消息的主叫ID和IP地址的步骤之后,所述方法包括:On the basis of the above embodiment, in the method for association processing provided by another embodiment of the present invention, after the step of acquiring the caller ID and IP address of the INVITE message of at least one SIP call flow in the second time period, the method includes: :
获取第三时间段的至少一个SIP呼叫流程的INVITE消息的主叫ID和IP地址,所述第三时间段是在第一时间段之后的时间段;acquiring the calling ID and IP address of the INVITE message of at least one SIP call flow in a third time period, where the third time period is a time period after the first time period;
相应地,若第一媒体流的主叫IP地址/端口号与第二时间段的INVITE消息的主叫IP地址/端口号关联一致,则将第二时间段的INVITE消息的主叫ID回填至第一媒体流的步骤具体为:Correspondingly, if the calling IP address/port number of the first media stream is consistent with the calling IP address/port number of the INVITE message in the second time period, the calling ID of the INVITE message in the second time period is backfilled to The steps of the first media stream are as follows:
若第一媒体流的主叫IP地址/端口号与第二时间段的INVITE消息的主叫IP地址/端口号关联一致,且第二时间段的INVITE消息的主叫IP地址/端口号与第三时间段的INVITE消息的主叫IP地址/端口号一致,且该第二时间段的INVITE消息的主叫ID与该第三时间段的INVITE消息的主叫ID一致,则将第二时间段的INVITE消息的主叫ID回填至第一媒体流。If the calling IP address/port number of the first media stream is consistent with the calling IP address/port number of the INVITE message of the second time period, and the calling IP address/port number of the INVITE message of the second time period is the same as the calling IP address/port number of the INVITE message of the second time period The calling IP address/port number of the INVITE message in the three time periods is the same, and the calling ID of the INVITE message in the second time period is consistent with the calling ID of the INVITE message in the third time period, then the second time period The caller ID of the INVITE message is backfilled to the first media stream.
假设第二时间段中主叫IP地址/端口号被IMS网络侧分配给了主叫A,发起了第二时间段的会话,在第一时间段时,主叫A发生了等脱网行为,主叫A的IP地址被IMS网络侧分配给了主叫B,主叫B的会话在第一时间段内不存在与媒体流关联的INVITE消息,此时第二时间段内与第一时间段内不是同一主叫发起的会话。Suppose that the calling IP address/port number is assigned to the calling party A by the IMS network side in the second time period, and a session of the second time period is initiated. The IP address of caller A is assigned to caller B by the IMS network side, and there is no INVITE message associated with the media stream in the session of caller B in the first time period. Sessions that are not initiated by the same caller.
也就是说,若主叫IP地址被重新分配,第二时间段和第一时间段的IP地址相同,但不是同一主叫,第二时间段的INVITE消息不应与第一时间段的第一媒体流关联,也不应将第二时间段的INVITE消息的主叫ID回填至第一媒体流。That is, if the calling IP address is reassigned, and the IP addresses of the second time period and the first time period are the same, but not the same caller, the INVITE message of the second time period should not be the same as the first time period. media stream association, and the caller ID of the INVITE message in the second time period should not be backfilled to the first media stream.
在本发明实施例中,由于第一时间段内不存在与媒体流关联的INVITE消息,可在第二时间段和第三时间段内继续查找同一主叫是否发起会话。In the embodiment of the present invention, since there is no INVITE message associated with the media stream in the first time period, it is possible to continue to find out whether the same caller initiates a session in the second time period and the third time period.
媒体流中不包含主叫ID,先采用信令面的第二时间段和第三时间段的INVITE消息进行关联,若第二时间段和第三时间段内两个INVITE消息主叫IP地址/端口号相同,且主叫ID相同,则第二时间段和第三时间段的INVITE消息对应的是同一主叫,从而可认为第二时间段和第三时间段之间的第一时间段的第一媒体流与第二时间段的INVITE消息是同一主叫,与第三时间段的INVITE消息是同一主叫。The media stream does not contain the caller ID. First, the INVITE messages in the second time period and the third time period of the signaling plane are used for association. If two INVITE messages in the second time period and the third time period are the calling IP addresses/ The port number is the same and the calling ID is the same, then the INVITE messages of the second time period and the third time period correspond to the same caller, so it can be considered that the first time period between the second time period and the third time period is the same. The first media stream and the INVITE message in the second time period are the same caller, and the INVITE message in the third time period is the same caller.
在此种情况下,可将第二时间段的INVITE消息的主叫ID回填至第一媒体流。In this case, the caller ID of the INVITE message of the second time period may be backfilled to the first media stream.
本实施例其他步骤与前述实施例步骤相似,本实施例不再赘述。Other steps in this embodiment are similar to those in the foregoing embodiment, and are not repeated in this embodiment.
本实施例提供的关联处理的方法,为了避免误将第二时间段的INVITE消息不应与第一时间段的第一媒体流关联,先将采用信令面的第二时间段和第三时间段的INVITE消息进行关联,若关联成功,确定为同一主叫后,再将第一时间段的第一媒体流与第二时间段的INVITE消息进行关联,若关联成功,从而可确定是同一主叫。In the method for association processing provided in this embodiment, in order to avoid mistakenly assuming that the INVITE message of the second time period should not be associated with the first media stream of the first time period, the second time period and the third time period of the signaling plane are used first. If the association is successful, it is determined that it is the same caller, and then the first media stream of the first time period is associated with the INVITE message of the second time period. If the association is successful, it can be determined that it is the same caller. Call.
在上述实施例的基础上,本发明又一实施例提供的关联处理的方法,所述第一媒体流包括起始时间点,所述SIP流程包括多个SIP消息,相应地,若第一媒体流的IP地址与第二时间段的INVITE消息的IP地址一致,则将第二时间段的INVITE消息的主叫ID回填至第一媒体流的步骤之后,所述方法包括:On the basis of the above embodiment, in the method for association processing provided by another embodiment of the present invention, the first media stream includes a start time point, and the SIP flow includes multiple SIP messages. The IP address of the stream is consistent with the IP address of the INVITE message in the second time period, then after the step of backfilling the caller ID of the INVITE message in the second time period to the first media stream, the method includes:
将所述第一媒体流的起始时间点作为会话的开始时间;Taking the start time point of the first media stream as the start time of the session;
确定所述INVITE消息对应的SIP流程中是否存在BYE消息;Determine whether there is a BYE message in the SIP process corresponding to the INVITE message;
若存在BYE消息,将BYE消息的时间点作为该路会话的结束时间。If there is a BYE message, the time point of the BYE message is used as the end time of the session.
可选地,第二时间段的INVITE消息与第一媒体流关联成功后,认为该INVITE消息与第一媒体流对应一路会话,或者认为该INVITE消息对应的会话,与第一媒体流对应一路会话的语音质量相似,都可对该INVITE消息与第一媒体流关联的一路会话进行语音质量评估。Optionally, after the INVITE message in the second time period is successfully associated with the first media stream, it is considered that the INVITE message corresponds to a session with the first media stream, or the session corresponding to the INVITE message is considered to be a session corresponding to the first media stream. The voice quality of the INVITE message is similar to that of the first media stream.
可选地,进行语音评估需确定一路会话的开始时间和结束时间。Optionally, the voice evaluation needs to determine the start time and end time of a session.
一路会话的开始时间是主叫发起INVITE消息,则将INVITE消息的时间点作为该路会话的开始时间。The start time of a session is when the calling party initiates an INVITE message, and the time point of the INVITE message is taken as the start time of the session.
一路会话的结束时间是SIP呼叫流程的BYE消息,在步骤11之前,采集的是整个SIP呼叫流程,获取SIP流程的SIP消息。The end time of one session is the BYE message of the SIP call process. Before step 11, the entire SIP call process is collected, and the SIP message of the SIP process is obtained.
在所述INVITE消息关联成功后,对所述关联成功的所述INVITE消息的SIP流程的其他SIP消息按照时间解析,确定所述INVITE消息对应的SIP流程中是否存在BYE消息,若存在BYE消息,将BYE消息的时间点作为该路会话的结束时间。After the INVITE message is successfully associated, other SIP messages in the SIP process of the INVITE message that have been successfully associated are analyzed according to time to determine whether there is a BYE message in the SIP process corresponding to the INVITE message, and if there is a BYE message, Take the time point of the BYE message as the end time of the session.
媒体流的最后一个数据包的时间点是媒体面信息的结束时间,实际应用中,在采集SIP呼叫流程的步骤中,有可能丢失了BYE消息,则无法确定准确的结束时间,但根据历史经验数据可确定,当不再发送媒体流,在很短的时间内将发送BYE消息,因此可将媒体流的最后一个数据包的时间点作为一路会话的结束时间。The time point of the last data packet of the media stream is the end time of the media plane information. In practical applications, in the step of collecting the SIP call flow, the BYE message may be lost, so the exact end time cannot be determined, but according to historical experience The data can determine that when the media stream is no longer sent, the BYE message will be sent in a very short period of time, so the time point of the last data packet of the media stream can be used as the end time of a session.
若不存在BYE消息,则将媒体流的结束时间作为该路会话的结束时间。If there is no BYE message, the end time of the media stream is taken as the end time of the session.
确定一路会话的开始时间和结束时间后,可对该会话进行语音质量评估。After determining the start time and end time of a session, you can perform voice quality assessment on the session.
本实施例其他步骤与前述实施例步骤相似,本实施例不再赘述。Other steps in this embodiment are similar to those in the foregoing embodiment, and are not repeated in this embodiment.
本实施例提供的关联处理的方法,将二次关联的INVITE消息的时间点作为第一媒体流对应的会话的开始时间,从而可找回一路会话。In the method for association processing provided in this embodiment, the time point of the INVITE message of the secondary association is used as the start time of the session corresponding to the first media stream, so that one session can be retrieved.
为了更充分理解本发明的技术内容,在上述实施例的基础上,详细说明本实施例提供的关联处理的方法。In order to more fully understand the technical content of the present invention, on the basis of the foregoing embodiment, the method for association processing provided in this embodiment is described in detail.
本发明实施例可用于完善SIP呼叫信令流程与RTP/RTCP媒体流关联的方法,增加关联的相关性,提高VoLTE语音评估的完整性。The embodiments of the present invention can be used to improve the method for correlating the SIP call signaling process and the RTP/RTCP media stream, increase the correlation of the correlation, and improve the integrity of the VoLTE voice evaluation.
方法具体包括:对Mw接口上采集的SIP呼叫流程进行解析分析,生成无INVITE消息的SIP协议消息数据库(如前述SIP数据库);对无法关联到INVITE消息的RTP数据流进行解析,生成RTP专有数据库((如前述RTP数据库));进行SIP消息与专有RTP数据库的关联判断,确定专有RTP数据流是否关联到SIP协议消息,如关联成功,完善SIP呼叫起始时间,建立新的SIP呼叫流程,对通话进行在评估。The method specifically includes: analyzing and analyzing the SIP call flow collected on the Mw interface, and generating a SIP protocol message database (such as the aforementioned SIP database) without an INVITE message; Database (such as the aforementioned RTP database); perform the association judgment between the SIP message and the proprietary RTP database, determine whether the proprietary RTP data stream is associated with the SIP protocol message, if the association is successful, improve the SIP call start time, and establish a new SIP Call flow, which evaluates the call.
系统具体包括:数据分析模块,用于对SIP呼叫流程和RTP数据流解析分析,生成无INVITE消息的SIP协议消息数据库和无法关联到INVITE消息的专有RTP数据库;关联模块,用于对无INVITE消息的SIP协议消息和无法关联到INVITE消息的RTP数据流关联比对;修正模块,用于对关联成功的RTP数据流进行SIP呼叫流程的修正,再次评估VoLTE语音质量。The system specifically includes: a data analysis module, which is used to analyze and analyze the SIP call flow and RTP data flow, and generate a SIP protocol message database without INVITE messages and a proprietary RTP database that cannot be associated with INVITE messages; The SIP protocol message of the message is compared with the RTP data stream that cannot be associated with the INVITE message; the correction module is used to correct the SIP call process for the RTP data stream that is associated successfully, and evaluate the VoLTE voice quality again.
图4为本发明又一实施例提供的关联处理的方法的流程示意图。FIG. 4 is a schematic flowchart of a method for association processing provided by another embodiment of the present invention.
如图4所示,本发明实施例的方法包括以下步骤:As shown in Figure 4, the method of the embodiment of the present invention includes the following steps:
1、数据分析,解析成库1. Data analysis, parsing into a library
SIP协议消息数据库:对Mw接口上采集的SIP呼叫流程进行解析分析,判断是否存在INVITE消息,如不存在,则对其他SIP消息进行解析,如存在,则对所有的SIP消息进行解析,SIP协议消息数据库,该数据库包含主叫号码、被叫号码、IP地址、端口号、CALL ID、时间等信息,如图3所示。SIP protocol message database: Analyze and analyze the SIP call flow collected on the Mw interface to determine whether there is an INVITE message. If not, analyze other SIP messages. If there is, analyze all SIP messages. SIP protocol Message database, the database includes calling number, called number, IP address, port number, CALL ID, time and other information, as shown in Figure 3.
RTP专有数据库:对RTP数据流与SIP呼叫信令流程进行关联,判断是否关联到INVITE消息,如无法关联到INVITE消息,则对RTP数据流进行解析,生成RTP专有数据库,该数据库包含IP地址、端口号、sSRC、时间、RTP总包数、RTP丢包数等信息,如图2所示。RTP proprietary database: correlate the RTP data stream with the SIP call signaling process, and determine whether it is associated with the INVITE message. Address, port number, sSRC, time, total RTP packets, RTP packet loss and other information, as shown in Figure 2.
2、数据关联2. Data association
图5为本发明又一实施例提供的数据关联的示意图。FIG. 5 is a schematic diagram of data association provided by another embodiment of the present invention.
如图5所示,对RTP专有数据库中的RTP数据流与SIP协议消息数据库中的SIP消息进行多维度关联,找出相关的SIP消息:As shown in Figure 5, the RTP data flow in the RTP proprietary database and the SIP messages in the SIP protocol message database are multi-dimensionally correlated to find out the relevant SIP messages:
步骤1,将RTP专有数据库中的RTP数据流与SIP协议消息数据库中的SIP消息输入到数据关联模块;Step 1, the RTP data flow in the RTP proprietary database and the SIP message in the SIP protocol message database are input into the data association module;
步骤2,RTP数据流根据IP地址、端口号与SIP协议消息数据库中的前一时间的所有INVITE消息中携带的IP地址、端口号进行查找,如果查找结果一致则进行步骤3,如果比对结果不一致,则直接结束流程;Step 2, the RTP data stream is searched according to the IP address, port number and the IP address and port number carried in all the INVITE messages of the previous time in the SIP protocol message database. If the search results are consistent, go to step 3. If the comparison results If they are inconsistent, the process will end directly;
步骤3,确认对成功的SIP消息是否属于该RTP数据流,如果SIP消息时间在RTP数据流开始时间之前,则认为SIP消息属于RTP数据流;Step 3, confirm whether the successful SIP message belongs to this RTP data flow, if the SIP message time is before the RTP data flow start time, then consider that the SIP message belongs to the RTP data flow;
步骤4,对关联成功的SIP消息(按时间顺序解析),用于SIP会话开始结束时间修正。Step 4: Correct the start and end time of the SIP session for the successfully associated SIP messages (analyzed in chronological order).
3、数据修正,再次评估3. Data correction, re-evaluation
SIP呼叫信令流程开始时间修正:采用RTP包的起始时间点。Correction of the start time of the SIP call signaling process: the start time point of the RTP packet is used.
SIP呼叫信令流程结束时间修正:对数据关联模块输出的SIP消息(按时间解析)进行分析,确定同一SIP会话有无BYE消息,如存在BYE消息,将BYE消息时点作为该SIP呼叫信令流程的结束时间;如不存在BYE消息,则将RTP数据流(同一IP地址、端口号、SSRC)结束时间作为该SIP呼叫信令流程的结束时间,公式如下:SIP call signaling process end time correction: analyze the SIP messages (analyzed by time) output by the data association module to determine whether there is a BYE message in the same SIP session, if there is a BYE message, the time point of the BYE message is used as the SIP call signaling The end time of the process; if there is no BYE message, the end time of the RTP data stream (same IP address, port number, SSRC) is used as the end time of the SIP call signaling process. The formula is as follows:
IF(BYE消息存在)then SIP会话结束时间=BYE消息时间IF (BYE message exists) then SIP session end time = BYE message time
IF(BYE消息不存在)then SIP会话结束时间=RTP/RTCP流结束时间IF (BYE message does not exist) then SIP session end time = RTP/RTCP stream end time
修正后的SIP呼叫信令流程视为一则完成的通话,语音质量评估模块再次对该通话进行评估,输出评估结果。The revised SIP call signaling process is regarded as a completed call, and the voice quality evaluation module evaluates the call again and outputs the evaluation result.
采集的步骤中,可能丢失了INVITE消息,存在约1.3%的RTP包关联不到INVITE消息被抛弃的情况,影响到IMS网络语音质量评估的准确性。In the collection step, the INVITE message may be lost, and about 1.3% of the RTP packets cannot be associated with the INVITE message and are discarded, which affects the accuracy of the IMS network voice quality assessment.
本实施例提供的关联处理的方法,通过对关联失败的RTP/RTCP独立成数据库,对SIP流程独立成数据库,在首次(媒体流与采集得到的第一单元时间的INVITE消息)关联失败的时候,还进行二次(将媒体流与采集得到的第一时间段和第二时间段的INVITE消息)关联,相当于将RTP/RTCP与采集得到的所有INVITE消息都进行关联,提高了关联的成功率。The method for association processing provided by this embodiment, by forming a database for the RTP/RTCP that fails to be associated, and forming a database for the SIP process, when the association fails for the first time (the media stream and the INVITE message of the first unit time collected) , and also perform secondary association (association of the media stream with the collected INVITE messages of the first time period and the second time period), which is equivalent to associating RTP/RTCP with all the collected INVITE messages, which improves the success of the association Rate.
若二次关联成功,将INVITE消息的主叫ID回填至媒体流,再对媒体流进行语音业务质量的评估,在不改变协议的情况下,可准确的进行语音质量评估,从而可简单经济的实现语音质量评估。If the secondary association is successful, backfill the caller ID of the INVITE message to the media stream, and then evaluate the voice service quality of the media stream. Without changing the protocol, the voice quality evaluation can be accurately performed, which can be simple and economical. Implement voice quality assessment.
图6示出了本发明又一实施例提供的一种关联处理的装置的结构示意图。FIG. 6 shows a schematic structural diagram of an apparatus for association processing provided by another embodiment of the present invention.
参照图6,在上述实施例的基础上,本实施例提供的关联处理的装置,所述装置包括获取模块61和回填模块62,其中:Referring to FIG. 6 , on the basis of the foregoing embodiment, the apparatus for association processing provided in this embodiment includes an acquisition module 61 and a backfilling module 62, wherein:
获取模块61用于获取第一时间段内至少一个第一媒体流的IP地址/端口号,所述第一媒体流是无法关联到第一时间段的INVITE消息的媒体流,并获取第二时间段内至少一个SIP呼叫流程的INVITE消息的主叫身份标识ID和主叫IP地址/端口号,所述第二时间段在第一时间段之前且与第一时间相邻;回填模块62用于若第一媒体流的主叫IP地址/端口号与第二时间段的INVITE消息的主叫IP地址/端口号关联一致,则将第二时间段的INVITE消息的主叫ID回填至第一媒体流。The obtaining module 61 is configured to obtain the IP address/port number of at least one first media stream in the first time period, the first media stream is a media stream that cannot be associated with the INVITE message of the first time period, and obtain the second time The caller identity ID and the caller IP address/port number of the INVITE message of at least one SIP call flow in the segment, the second time period is before the first time period and adjacent to the first time; the backfill module 62 is used for If the calling IP address/port number of the first media stream is consistent with the calling IP address/port number of the INVITE message of the second time period, the calling ID of the INVITE message of the second time period is backfilled to the first media flow.
获取模块61在信令面所述第二时间段以及所述第一时间段,采集的SIP呼叫流程,并将采集的SIP呼叫流程的INVITE消息进行缓存,以供所述第二时间段以及所述第一时间段的媒体流进行关联。The acquisition module 61 collects the SIP call flow in the second time period and the first time period on the signaling plane, and buffers the collected INVITE message of the SIP call flow for the second time period and the first time period. The media streams of the first time period are associated.
对每一时间段的媒体流与SIP呼叫流程都进行关联,在本发明实施例中,以对第一时间段内的媒体流与SIP呼叫流程进行关联为例进行说明。The media stream in each time period is associated with the SIP call flow. In the embodiment of the present invention, the association between the media stream in the first time period and the SIP call flow is taken as an example for description.
可选地,通过该INVITE消息与数据包关联,从而将SIP呼叫流程与媒体流关联起来。Optionally, the INVITE message is associated with the data packet, thereby associating the SIP call flow with the media stream.
可选地,关联是指查找第一时间段内的媒体流的主叫IP地址是否与第一时间段内INVITE消息的主叫IP地址一致,或者查找第一时间段内的媒体流的主叫端口号是否与第一时间段内INVITE消息的端口号一致。Optionally, the association refers to finding out whether the calling IP address of the media stream within the first time period is consistent with the calling IP address of the INVITE message within the first time period, or finding the calling party of the media stream within the first time period. Whether the port number is the same as the port number of the INVITE message in the first time period.
主叫IP地址和端口号任一项查找一致,均可认为关联成功,本发明实施例以主叫IP地址为例进行说明。If any one of the calling IP address and the port number is found to be consistent, it can be considered that the association is successful. The embodiment of the present invention takes the calling IP address as an example for description.
若第一时间段内的媒体流的主叫IP地址与INVITE消息的主叫IP地址一致,认为关联成功,将该INVITE消息的主叫ID回填至该媒体流的各个数据包。If the calling IP address of the media stream in the first time period is consistent with the calling IP address of the INVITE message, it is considered that the association is successful, and the calling ID of the INVITE message is backfilled into each data packet of the media stream.
若不一致,认为第一时间段内没有采集到一致的INVITE消息,因此无法将INVITE消息与该媒体流关联,得到第一媒体流。If they are inconsistent, it is considered that no consistent INVITE message is collected within the first time period, so the INVITE message cannot be associated with the media stream to obtain the first media stream.
可选地,第一时间段和第二时间段可根据实际情况设置,例如,第一时间段为(9点-9点30分】这30分钟,第二时间段为(8点30分到9点】这30分钟。Optionally, the first time period and the second time period can be set according to the actual situation. For example, the first time period is (9:00-9:30) for 30 minutes, and the second time period is (8:30-9:30). 9:00] These 30 minutes.
可选地,根据第一时间段内的每一第一媒体流,分别与第二时间段内SIP呼叫流程进行关联。Optionally, each first media stream in the first time period is associated with the SIP call flow in the second time period, respectively.
在第一时间段内的媒体流与SIP呼叫流程关联失败的情况下,还尝试与其他的时间,第二时间段中SIP呼叫流程进行关联。In the case that the association between the media stream in the first time period and the SIP call flow fails, an attempt is also made to associate with the SIP call flow in the second time period at another time.
可选地,根据每一第一媒体流的主叫IP地址,查找第二时间段的INVITE消息的主叫IP地址。Optionally, searching for the calling IP address of the INVITE message in the second time period according to the calling IP address of each first media stream.
如果主叫在第一时间段和第二时间段之间,没有发生关机、离开归属地和打开飞行模式等脱网行为,主叫IP地址/端口号通常是不变的,可认为主叫IP地址/端口号相同,则确实为同一主叫。If the caller does not turn off the network, leave the home, or turn on the airplane mode, etc., between the first time period and the second time period, the calling IP address/port number is usually unchanged, and it can be considered that the calling IP If the address/port number is the same, it is indeed the same caller.
由于第一时间段内不存在与媒体流关联的INVITE消息,可在第二时间段内继续查找同一主叫是否发起会话。Since there is no INVITE message associated with the media stream in the first time period, it can continue to find out whether the same caller initiates a session in the second time period.
如果第二时间段存在与第一时间段的第一媒体流的IP地址匹配一致的INVITE消息,在第一时间段之前,同一主叫在第二时间段内还发起过另一个会话,第二时间段对应的会话的INVITE消息采集到了,第一时间段对应的会话的INVITE消息采集丢失。If there is an INVITE message in the second time period that matches the IP address of the first media stream in the first time period, and before the first time period, the same caller also initiated another session in the second time period, the second The INVITE message of the session corresponding to the time period is collected, but the collection of the INVITE message of the session corresponding to the first time period is lost.
可选地,语音质量跟时间和地点有很大关系,由于时间相邻,即使是不同的两路会话,可认为主叫没有移动,这两路会话的语音质量相近似,将第二时间段的INVITE消息的主叫ID回填至第一媒体流的数据包。Optionally, the voice quality has a lot to do with time and location. Since the time is adjacent, even if the two sessions are different, it can be considered that the caller has not moved. The voice quality of the two sessions is similar. The caller ID of the INVITE message is backfilled into the data packet of the first media stream.
根据所述INVITE消息对应的SIP呼叫流程以及第一媒体流进行语音质量评估。The voice quality evaluation is performed according to the SIP call flow corresponding to the INVITE message and the first media stream.
所述INVITE消息对应的SIP呼叫流程以及第一媒体流关联起来相当于一路完整的会话,针对完整的会话进行语音质量评估。The SIP call flow corresponding to the INVITE message and the first media stream are correlated to correspond to a complete session, and voice quality evaluation is performed for the complete session.
如果第一时间段的第一媒体流和第二时间段的INVITE消息的IP地址匹配不一致,则认为该第一媒体流无法关联,结束流程。If the IP addresses of the first media stream in the first time period and the INVITE message in the second time period do not match the IP addresses, it is considered that the first media stream cannot be associated, and the process ends.
在本发明实施例中,在首次(第一媒体流与第一时间段的INVITE消息)关联失败的时候,还进行二次(将第一媒体流与第二时间段的INVITE消息)关联,可以提高关联的成功率。In this embodiment of the present invention, when the association fails for the first time (the first media stream and the INVITE message of the first time period), a second association (the first media stream and the INVITE message of the second time period) is also performed. Improve the success rate of associations.
若二次关联成功,将INVITE消息的主叫ID回填至第一媒体流,再对INVITE消息对应的SIP呼叫流程,以及第一媒体流进行语音业务质量的评估,减少抛弃第一媒体流的情况,从整体上提高语音质量评估准确性。If the secondary association is successful, the caller ID of the INVITE message is backfilled to the first media stream, and then the SIP call process corresponding to the INVITE message and the first media stream are evaluated for the quality of the voice service to reduce the situation of discarding the first media stream. , to improve the overall accuracy of speech quality assessment.
本实施例提供的关联处理的装置,可用于执行上述方法实施例的方法,本实施不再赘述。The apparatus for association processing provided in this embodiment can be used to execute the method in the foregoing method embodiment, and details are not described again in this embodiment.
本实施例提供的关联处理的装置,通过在INVITE消息与媒体流关联失败后,还通过获取模块和回填模块进行二次关联,可以提高关联的成功率,在不改变协议的情况下,可准确的进行语音质量评估,从而可简单经济的实现语音质量评估。The apparatus for association processing provided in this embodiment can improve the success rate of association by performing secondary association through the acquisition module and the backfill module after the association between the INVITE message and the media stream fails, and can accurately perform the association without changing the protocol. The voice quality assessment can be carried out simply and economically.
图7示出了本发明又一实施例提供的一种电子设备的结构示意图。FIG. 7 shows a schematic structural diagram of an electronic device provided by another embodiment of the present invention.
参阅图7,本发明实施例提供的电子设备,所述电子设备包括存储器(memory)71、处理器(processor)72、总线73以及存储在存储器71上并可在处理器上运行的计算机程序。其中,所述存储器71、处理器72通过所述总线73完成相互间的通信。Referring to FIG. 7 , an electronic device provided by an embodiment of the present invention includes a memory (memory) 71, a processor (processor) 72, a bus 73, and a computer program stored in the memory 71 and running on the processor. The memory 71 and the processor 72 communicate with each other through the bus 73 .
所述处理器72用于调用所述存储器71中的程序指令,以执行所述程序时实现如图1的方法。The processor 72 is configured to call program instructions in the memory 71 to implement the method as shown in FIG. 1 when executing the program.
在另一种实施方式中,所述处理器执行所述程序时实现如下方法:In another implementation manner, the processor implements the following method when executing the program:
获取第一时间段内至少一个第一媒体流的IP地址的步骤之前,所述方法包括:Before the step of acquiring the IP address of at least one first media stream in the first time period, the method includes:
采集第一时间段内多个第二媒体流;collecting multiple second media streams within the first time period;
获取每一第二媒体流的主叫IP地址/端口号;Obtain the calling IP address/port number of each second media stream;
根据每一第二媒体流的主叫IP地址/端口号,查找第一时间段内是否存在一致的INVITE消息;According to the calling IP address/port number of each second media stream, find out whether there is a consistent INVITE message within the first time period;
若不存在,将所述第二媒体流记为第一媒体流,将所述第一媒体流的主叫IP地址/端口号存入RTP数据库;If it does not exist, the second media stream is recorded as the first media stream, and the calling IP address/port number of the first media stream is stored in the RTP database;
相应地,获取第一时间段内至少一个第一媒体流的主叫IP地址/端口号的步骤具体为:Correspondingly, the step of acquiring the calling IP address/port number of at least one first media stream in the first time period is as follows:
从所述RTP数据库提取至少一个第一媒体流的主叫IP地址/端口号。The calling IP address/port number of at least one first media stream is extracted from the RTP database.
在另一种实施方式中,所述处理器执行所述程序时实现如下方法:In another implementation manner, the processor implements the following method when executing the program:
获取第二时间段内至少一个SIP呼叫流程的INVITE消息的主叫ID和IP地址的步骤之前,所述方法包括:Before the step of acquiring the caller ID and IP address of the INVITE message of at least one SIP call flow in the second time period, the method includes:
采集第一时间段和第二时间段的多个SIP呼叫流程;collecting multiple SIP call flows in the first time period and the second time period;
将每一SIP呼叫流程的INVITE消息的主叫ID和主叫IP地址/端口号存入SIP数据库;Store the calling ID and calling IP address/port number of the INVITE message of each SIP call process into the SIP database;
获取第二时间段内至少一个SIP呼叫流程的INVITE消息的主叫ID和主叫IP地址/端口号的步骤具体为:The steps of acquiring the caller ID and the caller IP address/port number of the INVITE message of at least one SIP call flow in the second time period are as follows:
从SIP数据库提取第二时间段的至少一个SIP呼叫流程的INVITE消息的主叫ID和主叫IP地址/端口号。The caller ID and the caller IP address/port number of the INVITE message of at least one SIP call flow of the second time period are extracted from the SIP database.
在另一种实施方式中,所述处理器执行所述程序时实现如下方法:In another implementation manner, the processor implements the following method when executing the program:
获取第二时间段内至少一个SIP呼叫流程的INVITE消息的主叫ID和IP地址的步骤之后,所述方法包括:After the step of acquiring the caller ID and IP address of the INVITE message of at least one SIP call flow in the second time period, the method includes:
获取第三时间段的至少一个SIP呼叫流程的INVITE消息的主叫ID和IP地址,所述第三时间段是在第一时间段之后的时间段;acquiring the calling ID and IP address of the INVITE message of at least one SIP call flow in a third time period, where the third time period is a time period after the first time period;
相应地,若第一媒体流的主叫IP地址/端口号与第二时间段的INVITE消息的主叫IP地址/端口号关联一致,则将第二时间段的INVITE消息的主叫ID回填至第一媒体流的步骤具体为:Correspondingly, if the calling IP address/port number of the first media stream is consistent with the calling IP address/port number of the INVITE message in the second time period, the calling ID of the INVITE message in the second time period is backfilled to The steps of the first media stream are as follows:
若第一媒体流的主叫IP地址/端口号与第二时间段的INVITE消息的主叫IP地址/端口号关联一致,且第二时间段的INVITE消息的主叫IP地址/端口号与第三时间段的INVITE消息的主叫IP地址/端口号一致,且该第二时间段的INVITE消息的主叫ID与该第三时间段的INVITE消息的主叫ID一致,则将第二时间段的INVITE消息的主叫ID回填至第一媒体流。If the calling IP address/port number of the first media stream is consistent with the calling IP address/port number of the INVITE message of the second time period, and the calling IP address/port number of the INVITE message of the second time period is the same as the calling IP address/port number of the INVITE message of the second time period The calling IP address/port number of the INVITE message in the three time periods is the same, and the calling ID of the INVITE message in the second time period is consistent with the calling ID of the INVITE message in the third time period, then the second time period The caller ID of the INVITE message is backfilled to the first media stream.
在另一种实施方式中,所述处理器执行所述程序时实现如下方法:In another implementation manner, the processor implements the following method when executing the program:
所述第二时间段的INVITE消息携带INVITE消息的时间点,所述SIP流程包括多个SIP消息,相应地,若第一媒体流的IP地址与第二时间段的INVITE消息的IP地址一致,则将第二时间段的INVITE消息的主叫ID回填至第一媒体流的步骤之后,所述方法包括:The INVITE message of the second time period carries the time point of the INVITE message, and the SIP process includes multiple SIP messages. Correspondingly, if the IP address of the first media stream is consistent with the IP address of the INVITE message of the second time period, Then after the step of backfilling the caller ID of the INVITE message in the second time period to the first media stream, the method includes:
将所述第一媒体流的起始时间点作为会话的开始时间;Taking the start time point of the first media stream as the start time of the session;
确定所述INVITE消息对应的SIP流程中是否存在BYE消息;Determine whether there is a BYE message in the SIP process corresponding to the INVITE message;
若存在BYE消息,将BYE消息的时间点作为该路会话的结束时间。If there is a BYE message, the time point of the BYE message is used as the end time of the session.
在另一种实施方式中,所述处理器执行所述程序时实现如下方法:In another implementation manner, the processor implements the following method when executing the program:
若不存在BYE消息,则将媒体流的结束时间作为该路会话的结束时间。If there is no BYE message, the end time of the media stream is taken as the end time of the session.
在另一种实施方式中,所述处理器执行所述程序时实现如下方法:In another implementation manner, the processor implements the following method when executing the program:
若第一媒体流的主叫IP地址/端口号与第二时间段的INVITE消息的主叫IP地址/端口号关联一致,则将第二时间段的INVITE消息的主叫ID回填至第一媒体流的步骤之后,所述方法还包括:If the calling IP address/port number of the first media stream is consistent with the calling IP address/port number of the INVITE message of the second time period, the calling ID of the INVITE message of the second time period is backfilled to the first media After the steps of the flow, the method further includes:
根据所述INVITE消息对应的SIP呼叫流程以及第一媒体流进行语音质量评估。The voice quality evaluation is performed according to the SIP call flow corresponding to the INVITE message and the first media stream.
本实施例提供的电子设备,可用于执行上述方法实施例的方法对应的程序,本实施不再赘述。The electronic device provided in this embodiment can be used to execute the program corresponding to the method in the foregoing method embodiment, which is not repeated in this embodiment.
本实施例提供的电子设备,通过所述处理器执行所述程序时实现通过在INVITE消息与媒体流关联失败后,还进行二次关联,可以提高关联的成功率,在不改变协议的情况下,可准确的进行语音质量评估,从而可简单经济的实现语音质量评估。In the electronic device provided in this embodiment, when the processor executes the program, the secondary association is performed after the association between the INVITE message and the media stream fails, so that the success rate of the association can be improved, without changing the protocol. , the voice quality assessment can be performed accurately, so that the voice quality assessment can be realized simply and economically.
本发明又一实施例提供的一种存储介质,所述存储介质上存储有计算机程序,所述程序被处理器执行时实现如图1的步骤。Another embodiment of the present invention provides a storage medium, where a computer program is stored on the storage medium, and when the program is executed by a processor, the steps as shown in FIG. 1 are implemented.
在另一种实施方式中,所述程序被处理器执行时实现如下方法:In another implementation manner, when the program is executed by the processor, the following method is implemented:
获取第一时间段内至少一个第一媒体流的IP地址的步骤之前,所述方法包括:Before the step of acquiring the IP address of at least one first media stream in the first time period, the method includes:
采集第一时间段内多个第二媒体流;collecting multiple second media streams within the first time period;
获取每一第二媒体流的主叫IP地址/端口号;Obtain the calling IP address/port number of each second media stream;
根据每一第二媒体流的主叫IP地址/端口号,查找第一时间段内是否存在一致的INVITE消息;According to the calling IP address/port number of each second media stream, find out whether there is a consistent INVITE message within the first time period;
若不存在,将所述第二媒体流记为第一媒体流,将所述第一媒体流的主叫IP地址/端口号存入RTP数据库;If it does not exist, the second media stream is recorded as the first media stream, and the calling IP address/port number of the first media stream is stored in the RTP database;
相应地,获取第一时间段内至少一个第一媒体流的主叫IP地址/端口号的步骤具体为:Correspondingly, the step of acquiring the calling IP address/port number of at least one first media stream in the first time period is as follows:
从所述RTP数据库提取至少一个第一媒体流的主叫IP地址/端口号。The calling IP address/port number of at least one first media stream is extracted from the RTP database.
在另一种实施方式中,所述程序被处理器执行时实现如下方法:In another implementation manner, when the program is executed by the processor, the following method is implemented:
获取第二时间段内至少一个SIP呼叫流程的INVITE消息的主叫ID和IP地址的步骤之前,所述方法包括:Before the step of acquiring the caller ID and IP address of the INVITE message of at least one SIP call flow in the second time period, the method includes:
采集第一时间段和第二时间段的多个SIP呼叫流程;collecting multiple SIP call flows in the first time period and the second time period;
将每一SIP呼叫流程的INVITE消息的主叫ID和主叫IP地址/端口号存入SIP数据库;Store the calling ID and calling IP address/port number of the INVITE message of each SIP call process into the SIP database;
获取第二时间段内至少一个SIP呼叫流程的INVITE消息的主叫ID和主叫IP地址/端口号的步骤具体为:The steps of acquiring the caller ID and the caller IP address/port number of the INVITE message of at least one SIP call flow in the second time period are as follows:
从SIP数据库提取第二时间段的至少一个SIP呼叫流程的INVITE消息的主叫ID和主叫IP地址/端口号。The caller ID and the caller IP address/port number of the INVITE message of at least one SIP call flow of the second time period are extracted from the SIP database.
在另一种实施方式中,所述程序被处理器执行时实现如下方法:In another implementation manner, when the program is executed by the processor, the following method is implemented:
获取第二时间段内至少一个SIP呼叫流程的INVITE消息的主叫ID和IP地址的步骤之后,所述方法包括:After the step of acquiring the caller ID and IP address of the INVITE message of at least one SIP call flow in the second time period, the method includes:
获取第三时间段的至少一个SIP呼叫流程的INVITE消息的主叫ID和IP地址,所述第三时间段是在第一时间段之后的时间段;acquiring the calling ID and IP address of the INVITE message of at least one SIP call flow in a third time period, where the third time period is a time period after the first time period;
相应地,若第一媒体流的主叫IP地址/端口号与第二时间段的INVITE消息的主叫IP地址/端口号关联一致,则将第二时间段的INVITE消息的主叫ID回填至第一媒体流的步骤具体为:Correspondingly, if the calling IP address/port number of the first media stream is consistent with the calling IP address/port number of the INVITE message in the second time period, the calling ID of the INVITE message in the second time period is backfilled to The steps of the first media stream are as follows:
若第一媒体流的主叫IP地址/端口号与第二时间段的INVITE消息的主叫IP地址/端口号关联一致,且第二时间段的INVITE消息的主叫IP地址/端口号与第三时间段的INVITE消息的主叫IP地址/端口号一致,且该第二时间段的INVITE消息的主叫ID与该第三时间段的INVITE消息的主叫ID一致,则将第二时间段的INVITE消息的主叫ID回填至第一媒体流。If the calling IP address/port number of the first media stream is consistent with the calling IP address/port number of the INVITE message of the second time period, and the calling IP address/port number of the INVITE message of the second time period is the same as the calling IP address/port number of the INVITE message of the second time period The calling IP address/port number of the INVITE message in the three time periods is the same, and the calling ID of the INVITE message in the second time period is consistent with the calling ID of the INVITE message in the third time period, then the second time period The caller ID of the INVITE message is backfilled to the first media stream.
在另一种实施方式中,所述程序被处理器执行时实现如下方法:In another implementation manner, when the program is executed by the processor, the following method is implemented:
所述第二时间段的INVITE消息携带INVITE消息的时间点,所述SIP流程包括多个SIP消息,相应地,若第一媒体流的IP地址与第二时间段的INVITE消息的IP地址一致,则将第二时间段的INVITE消息的主叫ID回填至第一媒体流的步骤之后,所述方法包括:The INVITE message of the second time period carries the time point of the INVITE message, and the SIP process includes multiple SIP messages. Correspondingly, if the IP address of the first media stream is consistent with the IP address of the INVITE message of the second time period, Then after the step of backfilling the caller ID of the INVITE message in the second time period to the first media stream, the method includes:
将所述第一媒体流的起始时间点作为会话的开始时间;Taking the start time point of the first media stream as the start time of the session;
确定所述INVITE消息对应的SIP流程中是否存在BYE消息;Determine whether there is a BYE message in the SIP process corresponding to the INVITE message;
若存在BYE消息,将BYE消息的时间点作为该路会话的结束时间。If there is a BYE message, the time point of the BYE message is used as the end time of the session.
在另一种实施方式中,所述程序被处理器执行时实现如下方法:In another implementation manner, when the program is executed by the processor, the following method is implemented:
若不存在BYE消息,则将媒体流的结束时间作为该路会话的结束时间。If there is no BYE message, the end time of the media stream is taken as the end time of the session.
在另一种实施方式中,所述程序被处理器执行时实现如下方法:In another implementation manner, when the program is executed by the processor, the following method is implemented:
若第一媒体流的主叫IP地址/端口号与第二时间段的INVITE消息的主叫IP地址/端口号关联一致,则将第二时间段的INVITE消息的主叫ID回填至第一媒体流的步骤之后,所述方法还包括:If the calling IP address/port number of the first media stream is consistent with the calling IP address/port number of the INVITE message of the second time period, the calling ID of the INVITE message of the second time period is backfilled to the first media After the steps of the flow, the method further includes:
根据所述INVITE消息对应的SIP呼叫流程以及第一媒体流进行语音质量评估。The voice quality evaluation is performed according to the SIP call flow corresponding to the INVITE message and the first media stream.
本实施例提供的存储介质,所述程序被处理器执行时实现上述方法实施例的方法,本实施不再赘述。In the storage medium provided in this embodiment, when the program is executed by the processor, the method of the foregoing method embodiment is implemented, which is not repeated in this implementation.
本实施例提供的存储介质,通过在INVITE消息与媒体流关联失败后,还进行二次关联,可以提高关联的成功率,在不改变协议的情况下,可准确的进行语音质量评估,从而可简单经济的实现语音质量评估。The storage medium provided in this embodiment can improve the success rate of the association by performing a secondary association after the association between the INVITE message and the media stream fails, and can accurately evaluate the voice quality without changing the protocol, so that the Simple and economical implementation of voice quality assessment.
本发明又一实施例公开一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,计算机能够执行上述各方法实施例所提供的方法,例如包括:Yet another embodiment of the present invention discloses a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions that, when executed by a computer , the computer can execute the methods provided by the above method embodiments, for example, including:
获取第一时间段内至少一个第一媒体流的主叫网络之间互连的协议IP地址/端口号,所述第一媒体流是无法关联到第一时间段的邀请INVITE消息的媒体流,并获取第二时间段内至少一个会话初始化协议SIP呼叫流程的INVITE消息的主叫身份标识ID和主叫IP地址/端口号,所述第二时间段在第一时间段之前且与第一时间相邻;obtaining the protocol IP address/port number of the interconnection between the calling networks of at least one first media stream in the first time period, where the first media stream is a media stream that cannot be associated with the INVITE message of the first time period, and obtain the calling identity ID and calling IP address/port number of the INVITE message of at least one session initiation protocol SIP call flow in the second time period, the second time period is before the first time period and is the same as the first time period; adjacent;
若第一媒体流的主叫IP地址/端口号与第二时间段的INVITE消息的主叫IP地址/端口号关联一致,则将第二时间段的INVITE消息的主叫ID回填至第一媒体流。If the calling IP address/port number of the first media stream is consistent with the calling IP address/port number of the INVITE message of the second time period, the calling ID of the INVITE message of the second time period is backfilled to the first media flow.
本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。It will be understood by those skilled in the art that although some of the embodiments described herein include certain features, but not others, included in other embodiments, that combinations of features of different embodiments are intended to be within the scope of the present invention And form different embodiments.
本领域技术人员可以理解,实施例中的各步骤可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。Those skilled in the art can understand that each step in the embodiments may be implemented by hardware, or by software modules running on one or more processors, or by a combination thereof. Those skilled in the art will understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components according to the embodiments of the present invention. The present invention can also be implemented as apparatus or apparatus programs (eg, computer programs and computer program products) for performing part or all of the methods described herein.
虽然结合附图描述了本发明的实施方式,但是本领域技术人员可以在不脱离本发明的精神和范围的情况下做出各种修改和变型,这样的修改和变型均落入由所附权利要求所限定的范围之内。Although the embodiments of the present invention have been described with reference to the accompanying drawings, various modifications and variations can be made by those skilled in the art without departing from the spirit and scope of the present invention, and such modifications and variations all fall within the scope of the appended claims within the limits of the requirements.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711448964.2A CN109981527B (en) | 2017-12-27 | 2017-12-27 | Method and device for association processing, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711448964.2A CN109981527B (en) | 2017-12-27 | 2017-12-27 | Method and device for association processing, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109981527A true CN109981527A (en) | 2019-07-05 |
CN109981527B CN109981527B (en) | 2021-09-17 |
Family
ID=67071192
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711448964.2A Active CN109981527B (en) | 2017-12-27 | 2017-12-27 | Method and device for association processing, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109981527B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113163509A (en) * | 2021-03-03 | 2021-07-23 | 维沃移动通信有限公司 | Call establishment method and device, electronic equipment and readable storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1783835A (en) * | 2004-11-30 | 2006-06-07 | 西门子(中国)有限公司 | Method for identifiying real time service in Internet network |
CN101222418A (en) * | 2007-01-10 | 2008-07-16 | 华为技术有限公司 | Method, system and signaling gateway for RTSP client terminal access to SIP media resource |
CN101227272A (en) * | 2007-01-19 | 2008-07-23 | 华为技术有限公司 | System and method for obtaining media stream protection cryptographic key |
US20100182995A1 (en) * | 2009-01-21 | 2010-07-22 | National Taipei University Of Technology | NAT traversal method in Session Initial Protocol |
CN102710620A (en) * | 2012-05-21 | 2012-10-03 | 北京中创信测科技股份有限公司 | Correlation method of SIP call signaling process in IMS network and RTP/RTCP media stream |
WO2017032425A1 (en) * | 2015-08-27 | 2017-03-02 | Telefonaktiebolaget Lm Ericsson (Publ) | Methods and devices for detecting and correlating data packet flows in a lawful interception system |
-
2017
- 2017-12-27 CN CN201711448964.2A patent/CN109981527B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1783835A (en) * | 2004-11-30 | 2006-06-07 | 西门子(中国)有限公司 | Method for identifiying real time service in Internet network |
CN101222418A (en) * | 2007-01-10 | 2008-07-16 | 华为技术有限公司 | Method, system and signaling gateway for RTSP client terminal access to SIP media resource |
CN101227272A (en) * | 2007-01-19 | 2008-07-23 | 华为技术有限公司 | System and method for obtaining media stream protection cryptographic key |
US20100182995A1 (en) * | 2009-01-21 | 2010-07-22 | National Taipei University Of Technology | NAT traversal method in Session Initial Protocol |
CN102710620A (en) * | 2012-05-21 | 2012-10-03 | 北京中创信测科技股份有限公司 | Correlation method of SIP call signaling process in IMS network and RTP/RTCP media stream |
WO2017032425A1 (en) * | 2015-08-27 | 2017-03-02 | Telefonaktiebolaget Lm Ericsson (Publ) | Methods and devices for detecting and correlating data packet flows in a lawful interception system |
Non-Patent Citations (2)
Title |
---|
刘楠: "《互联网信息管控系统的设计与实现》", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
许登元,蒲树祯,李益才: "《交通通信系统》", 《西南交通大学出版社》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113163509A (en) * | 2021-03-03 | 2021-07-23 | 维沃移动通信有限公司 | Call establishment method and device, electronic equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109981527B (en) | 2021-09-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9160636B2 (en) | System and method for monitoring network link quality | |
US9531782B2 (en) | Dynamic management of collaboration sessions using real-time text analytics | |
CN109818816A (en) | A VoLTE call delay analysis method and device | |
WO2015192682A1 (en) | Communication method and terminal | |
CN103475638B (en) | A kind of media data transmission method and system | |
CN102457494B (en) | A method and device for improving the monitoring success rate based on SIP signaling | |
CN110912885A (en) | Method and system for instant notification of missed calls with multiple accounts in IMS network | |
CN110620849A (en) | Centralized sorting method and system for IMS telephone terminal call records | |
CN109981527A (en) | Method, apparatus, electronic equipment and the storage medium of association process | |
CN103269334A (en) | Session association method, session association device and session association system | |
SG11201809826WA (en) | Sip information analysis method and device, server, and medium | |
CN101222383B (en) | A H.323 Protocol-Based IP Telephony Voice Traffic Monitoring Method | |
CN101827068B (en) | A business scene restoration method and device | |
US9584560B2 (en) | Providing external application services with an existing private branch exchange media server | |
CN101453446A (en) | Method, apparatus and system for establishing MRCP control and bearing channel | |
TWI809593B (en) | Electronic device and method of root cause analysis for voice over ip signaling loop | |
CN109587096B (en) | Method and device for identifying RTP tail packet loss | |
US9838437B2 (en) | Method, device, and system for implementing prompting and collecting user information | |
CN109818817B (en) | Data transmission time delay analysis method, device, electronic device and storage medium | |
CN105306420B (en) | Method, device and server for realizing cyclic playback of text-to-speech services | |
WO2011120367A1 (en) | Method and device for analyzing voice quality | |
CN116155867A (en) | Communication method, system, electronic device and computer readable storage medium | |
WO2015117486A1 (en) | Automatic packet capture method and apparatus | |
TWI830293B (en) | Method, session border controller and computer-readable medium for observing delay time of network telephone call | |
CN102546578B (en) | Relevance method and system of protocol flow between IMS (IP multimedia subsystem) and 2G (the 2nd generation telecommunication) /3G (the 3rd generation telecommunication) network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |