A method, device and storage medium for monitoring call behavior
By extracting and analyzing multi-dimensional call information in SIP signaling, and using a time-series database for monitoring and analysis, the problem of multi-dimensional correlation analysis in the monitoring system in the existing technology in processing large data volume call orders is solved, and the real-time performance of monitoring is improved. and reliability.
Patent Information
- Application Number
- CN202311283319.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-28
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2043-09-28
Smart Images

Figure CN117354418B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a call behavior monitoring method, device and storage medium. Background Art
[0002] With the scale of mobile communication services, the complexity of user behaviors and the diversification of application scenarios, the monitoring of large amounts of complex data is of great significance to the stability, reliability and security of communication systems.
[0003] There are two common types of monitoring systems in the prior art. One is based on relational databases for statistical analysis, but the real-time performance of the statistical analysis is poor. The other is based on time series databases for statistical analysis. Time series databases themselves do not have a complete structure and association, and can only complete single indicator monitoring queries and display some time series trends. They cannot handle multi-dimensional association analysis of complex scenarios, such as aggregate analysis of call behaviors in different regions and industries in scenarios with tens of millions of numbers.
[0004] Therefore, the current mainstream monitoring systems each have disadvantages in monitoring large amounts of complex data. Summary of the invention
[0005] The present invention aims to solve one of the technical problems in the related art at least to a certain extent.
[0006] To this end, the first object of the present invention is to propose a call behavior monitoring method to achieve efficient real-time analysis of large amounts of call records.
[0007] The second objective of the present invention is to provide a calling behavior monitoring device.
[0008] The third objective of the present invention is to provide another calling behavior monitoring device.
[0009] A fourth object of the present invention is to provide a non-transitory computer-readable storage medium.
[0010] To achieve the above object, a first embodiment of the present invention provides a call behavior monitoring method, comprising:
[0011] Extracting call information of each call from the monitored Session Initiation Protocol (SIP) signaling to generate a call record of the corresponding call, wherein the call information in the call record includes multiple dimensions;
[0012] According to the call records of each call, count the call record sets involved in the multiple dimensions respectively;
[0013] Based on the call record set of each dimension, the monitoring indicators configured in each dimension are used to perform indicator analysis to obtain the indicator value of the corresponding monitoring indicator of each dimension;
[0014] Alarms are issued based on the indicator values of the corresponding monitoring indicators in each dimension.
[0015] To achieve the above-mentioned purpose, a second embodiment of the present invention provides a call behavior monitoring device, comprising:
[0016] A generating module, used for extracting call information of each call from the monitored Session Initiation Protocol SIP signaling to generate a call record of the corresponding call, wherein the call information in the call record includes multiple dimensions;
[0017] A statistics module, configured to count the call record sets involved in the multiple dimensions according to the call record of each call;
[0018] The analysis module is used to perform indicator analysis based on the call record set of each dimension using the monitoring indicators configured in each dimension to obtain the indicator value of the corresponding monitoring indicator of each dimension;
[0019] The alarm module is used to issue alarms based on the indicator values of the corresponding monitoring indicators in each dimension.
[0020] In order to achieve the above-mentioned purpose, the third aspect embodiment of the present invention proposes an electronic device, comprising: a processor; a memory for storing executable instructions of the processor; wherein the processor is configured to execute the instructions to implement a call behavior monitoring method proposed in the first aspect embodiment of the present invention.
[0021] In order to achieve the above objectives, the fourth aspect of the present invention proposes a computer-readable storage medium. When the instructions in the storage medium are executed by the processor of an electronic device, the electronic device can execute a call behavior monitoring method proposed in the first aspect of the present invention.
[0022] The present invention has at least the following beneficial effects:
[0023] The call behavior monitoring method provided by the present invention extracts the call information of each call from the monitored Session Initiation Protocol SIP signaling to generate a call sheet for the corresponding call, wherein the call information in the call sheet includes multiple dimensions; based on the call sheet for each call, the call sheet set involved is counted in multiple dimensions respectively; based on the call sheet set of each dimension, the monitoring indicators configured in each dimension are used to perform indicator analysis to obtain the indicator value of the corresponding monitoring indicator of each dimension; and an alarm is issued according to the indicator value of the corresponding monitoring indicator of each dimension. By classifying and counting the call sheets in different dimensions, it is possible to pull on demand according to the analysis results, solving the problem of difficult multi-dimensional correlation analysis; at the same time, by analyzing the number of pulled indicators, the response results returned by the interface are evenly distributed, the pressure on the single interface is reduced, the response delay is shortened, and the real-time performance is improved.
[0024] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0026] Figure 1 A flowchart of a call behavior monitoring method provided by an embodiment of the present invention;
[0027] Figure 2 A flowchart of another call behavior monitoring method provided by an embodiment of the present invention;
[0028] Figure 3 An analysis index classification diagram provided by an embodiment of the present invention;
[0029] Figure 4 A schematic diagram of the structure of a call behavior monitoring device provided by an embodiment of the present invention;
[0030] Figure 5 A block diagram of an electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0031] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0032] A call behavior monitoring method and device according to an embodiment of the present invention will be described below with reference to the accompanying drawings.
[0033] Figure 1 A flowchart of a call behavior monitoring method provided by an embodiment of the present invention.
[0034] The monitoring system based on relational database for statistical analysis can store communication bills and then perform statistical analysis through structured query language (SQL). This will cause two problems: first, the real-time performance of statistical analysis is poor; second, the relational database faces a high-concurrency call scenario with tens of millions of numbers, and the disk input / output cannot bear tens of thousands of SQL write requests. For high-concurrency related data queries, deadlocks and other problems are prone to occur, resulting in a decrease in read and write performance. Relational databases need to create indexes to process big data in real time, which is not convenient enough.
[0035] The monitoring system based on time series database for statistical analysis can well solve the problem of real-time processing of big data by storing time series data, but it has no responsible structure and association, and can only complete single indicator monitoring query and display some time series trends. It cannot handle multi-dimensional association analysis of complex scenarios, such as aggregate analysis of call behavior in different regions and industries in the scenario of tens of millions of numbers. Therefore, time series databases do not perform well in multi-dimensional association analysis of big data.
[0036] In view of the problem that the existing monitoring system performs poorly in monitoring a large amount of complex data, an embodiment of the present invention provides a call behavior monitoring method to achieve efficient real-time analysis of large amounts of call records, such as Figure 1 As shown, the method comprises the following steps:
[0037] Step 101: extract call information of each call from the monitored Session Initiation Protocol SIP signaling to generate a call record of the corresponding call, wherein the call information in the call record includes multiple dimensions.
[0038] It should be noted that Session Initiation Protocol (SIP) is an application layer signaling control protocol used to create, modify and release sessions of one or more participants. These sessions can be network multimedia conferences, network calls or multimedia distribution.
[0039] Optionally, a monitoring system that performs statistical analysis based on a time series database may be used to monitor and obtain the SIP signaling of each call.
[0040] Optionally, the call information includes at least one dimension of the calling number, the intermediate number, the called number, the province to which the intermediate number belongs, the city to which the intermediate number belongs, the enterprise to which the intermediate number belongs, and the call duration.
[0041] In the embodiment of the present invention, call information of each call is extracted from SIP signaling, a call record of the corresponding call is generated based on the call information of each call, and call behavior characteristics are reflected through multi-dimensional call information, so that call behavior can be accurately analyzed.
[0042] Step 102, based on the call records of each call, count the call record sets involved in multiple dimensions.
[0043] Optionally, the call information of any call record includes multiple dimensions. Accordingly, any dimension involves multiple call records of each call. Therefore, the multiple call records involved in each dimension are counted separately to form a call record set, so as to analyze the call records from various dimensions.
[0044] Step 103 , based on the call record set of each dimension, indicator analysis is performed using the monitoring indicators configured in each dimension to obtain the indicator value of the monitoring indicator corresponding to each dimension.
[0045] Optionally, the monitoring indicator is configured corresponding to each dimension, is related to the dimension, and performs indicator analysis using a Metrics algorithm according to the indicator definition of each monitoring indicator to obtain a corresponding indicator value.
[0046] As a possible implementation, when the dimension is the calling number, the corresponding monitoring indicator may be the "calling number" field read in the corresponding call record set. The monitoring indicator is analyzed by the Metrics algorithm to obtain the corresponding indicator value.
[0047] Step 104: Issue an alarm based on the indicator value of the corresponding monitoring indicator of each dimension.
[0048] In the embodiment of the present invention, the call behavior of the call record set corresponding to each dimension is reflected by the indicator value, which serves as the analysis basis of the call behavior.
[0049] As a possible implementation method, the distribution of each indicator value is calculated, the corresponding threshold is configured, and an alarm is issued.
[0050] As another possible implementation, a corresponding threshold is set for the indicator value to issue an alarm.
[0051] In this embodiment, the call information of each call is extracted from the monitored Session Initiation Protocol SIP signaling to generate a call sheet for the corresponding call, wherein the call information in the call sheet includes multiple dimensions; based on the call sheet for each call, the call sheet set involved is counted in multiple dimensions respectively; based on the call sheet set of each dimension, the monitoring indicators configured in each dimension are used to perform indicator analysis to obtain the indicator value of the corresponding monitoring indicator of each dimension; and an alarm is issued according to the indicator value of the corresponding monitoring indicator of each dimension. By classifying and counting the call sheets in different dimensions, it is possible to pull on demand according to the analysis results, solving the problem of difficult multi-dimensional correlation analysis; at the same time, by analyzing the number of pulled indicators, the response results returned by the interface are evenly distributed, reducing the pressure on the single interface, shortening the response delay, and improving real-time performance.
[0052] In order to clearly explain the above embodiment, this embodiment provides another call behavior monitoring method. Figure 2 A flowchart of another call behavior monitoring method provided by an embodiment of the present invention.
[0053] like Figure 2 As shown, the method may include the following steps:
[0054] Step 201 : extracting call information of each call from the monitored Session Initiation Protocol SIP signaling to generate a call record of the corresponding call, wherein the call information in the call record includes multiple dimensions.
[0055] In the embodiment of the present invention, a monitoring system that performs statistical analysis based on a time series database is used to monitor the core network to obtain the SIP signaling used in each call.
[0056] The SIP signaling includes a first signaling used by the calling terminal to initiate a call, and a temporary response used to respond to the first signaling.
[0057] In an embodiment of the present invention, the calling terminal initiates a first signaling to the called terminal, the first signaling reaches the called terminal through the core network, the called terminal responds to the first signaling, sends a temporary response to the calling terminal, indicating that the called terminal has received the first signaling, the calling terminal receives the temporary response, and the first signaling and the temporary signaling constitute SIP signaling.
[0058] Furthermore, the called terminal extracts the source header field of the first signaling to obtain the calling number, and extracts the destination header field of the first signaling to obtain the intermediate number; extracts the destination header field of the temporary response to obtain the called number; and generates a call record for the corresponding call.
[0059] Among them, the call record is used to record the call information of the corresponding call in the dimensions of calling number, intermediate number and called number.
[0060] In an embodiment of the present invention, the called terminal disassembles the first signaling, extracts the source header field of the first signaling as the calling number, extracts the destination header field of the first signaling as the intermediate number, disassembles the temporary response, extracts the destination header field of the temporary response as the called number, and records the call information of the call in the calling number, intermediate number and called number dimensions to generate a call record for the call.
[0061] Furthermore, the SIP signaling may also include a second signaling sent when the called terminal answers the call and a third signaling used to end the call.
[0062] In an embodiment of the present invention, when the called terminal connects the call, a second signaling is sent to the call processing module of the called terminal. The call processing module receives the second signaling and connects the call of the calling terminal. When the called terminal ends the call, a third signaling is sent to the call processing module. The call processing module receives the third signaling and ends the call.
[0063] Furthermore, the start time is determined based on the time when the second signaling is monitored; the end time is determined based on the time when the third signaling is monitored; and the call duration of the corresponding call is determined based on the start time and the end time.
[0064] In the embodiment of the present invention, the call duration can be calculated by the following formula:
[0065] t=t end -t start
[0066] Where t represents the call duration, t start Indicates the start time, t end Indicates the end time.
[0067] It should be noted that, in response to not detecting the second signaling, the call duration t=0.
[0068] Furthermore, the enterprise information registered and bound to the intermediate number is queried; the province and city information corresponding to the first few H codes in the intermediate number are used as call information of the corresponding dimension and added to the call record of the corresponding call.
[0069] As a possible implementation method, the called terminal calls the database to query the enterprise information registered and bound to the intermediate number, intercepts the first 7 H digits of the intermediate number to query the province and city information, and adds the corresponding province and city information as the call information of the corresponding dimension to the call record of the corresponding call.
[0070] Step 202, read the message queue to obtain the target call record to be processed currently. Whenever the target call record is obtained from the message queue, the target call record is assigned to the call record set of the corresponding dimension according to the call information of each dimension in the target call record.
[0071] Among them, the message queue is used to store the generated call records.
[0072] As a possible implementation method, the called terminal encapsulates the call information, call duration, province and city information of the call in the calling number, intermediate number and called number dimensions into a TXT format call record, establishes a call record message sending channel with the message queue, and sends the call record to the message queue for storage.
[0073] In the embodiment of the present invention, the call sheet analysis module of the called terminal reads the message queue to obtain the target call sheet to be processed, wherein the call sheet analysis module includes an interface layer, a computing core layer and a data cache layer. The interface layer input unit sends the target call sheet obtained from the message queue to the computing core layer.
[0074] Furthermore, whenever a target call record is obtained from the message queue, the computing core layer assigns the target call record to the call record set of the corresponding dimension according to the call information of each dimension in the target call record.
[0075] As a possible implementation method, the "province" field is read from each call record as a dimension, and target call records of the same dimension are classified into the same call record set.
[0076] As a possible implementation method, the "city" field is read from each call record as a dimension, and target call records of the same dimension are classified into the same call record set.
[0077] As a possible implementation method, the "enterprise" field is read from each call record as a dimension, and target call records of the same dimension are classified into the same call record set.
[0078] As a possible implementation method, the two fields of "city" and "enterprise" are read from each call record as a dimension, and the target call records of the same dimension are classified into the same call record set.
[0079] As a possible implementation method, the "calling number" field of each call record is read as a dimension, and target call records of the same dimension are classified into the same call record set.
[0080] As a possible implementation method, the "enterprise" and "called number" fields are read from each call record as a dimension, and target call records of the same dimension are classified into the same call record set.
[0081] Step 203 , based on the call record set of each dimension, indicator analysis is performed using the monitoring indicators configured in each dimension to obtain the indicator value of the monitoring indicator corresponding to each dimension.
[0082] In the embodiment of the present invention, the dimensions are divided into dimensions related to call behavior and dimensions related to number characteristics, and the corresponding index values are divided into call behavior analysis indexes and number characteristic analysis indexes, such as Figure 3 Among them, the dimensions related to calling behavior include province, city, and enterprise.
[0083] Optionally, for a call record set of any dimension, multiple statistical values are periodically obtained.
[0084] The statistical values include: the cumulative duration T of each call in the call record set, the total number of call records C, the number of first call records with call duration in the set short-term call interval C 0 , The second call number C with a non-zero call duration 0 .
[0085] In the embodiment of the present invention, the short call interval may be a call duration within the interval of [0, 6] seconds.
[0086] Furthermore, according to the target dimension to which the target call record belongs, the indicator value with the latest timestamp is read for the monitoring indicator under the target dimension, or the initial value of the monitoring indicator under the target dimension is generated; the indicator value is updated according to the target call record; for the monitoring indicator under the target dimension, the updated indicator value and the current timestamp are stored.
[0087] As a possible implementation, read the "province" field for each call record, and call the data cache layer of the call record analysis module to query the four statistical values of C, C 0 , C 1 , C 0 , C 1 , and T with the latest timestamp "Label1 = corresponding province", and accumulate according to the above algorithm based on the cached values; if the corresponding index value does not exist in the cache layer, call the defined C, C
[0088] Furthermore, store the four latest statistical values and the timestamp into the data cache layer according to the data structure of <C + province name, Value>, <C 0 + province name, Value>, <C 1 + province name, Value>, <T + province name, Value>.
[0089] Among them, Label is generally used to display text or be used as a "button", and the label object name is label1, representing the name of the label class object.
[0090] Among them, the defined C, C 0 , C 1 , and T algorithms calculate the statistical values through the following formulas:
[0091] C = ∑c
[0092] C 0 = ∑c 0
[0093] C 1 = ∑t 1
[0094] T = ∑t
[0095] Among them, c represents the statistic of any call record; c 0 represents the statistic of the call duration of any call record within the interval of [0, 6] seconds; c 1 represents the statistic of the call duration of any call record greater than 0; t represents the call duration of any call record.
[0096] As a possible implementation, read the "city" field for each call record, and call the data cache layer of the call record analysis module to query the four statistical values of C, C 0 , C 1 , C 0 , C 1 , and T with the latest timestamp "Label1 = corresponding city", and accumulate according to the above algorithm based on the cached values; if the corresponding index value does not exist in the cache layer, call the defined C, C
[0097] Further, store the four latest statistical values and timestamps into the data cache layer according to the data structures of <C + city name, Value>, <C 0 + city name, Value>, <C 1 + city name, Value>, <T + city name, Value>.
[0098] As a possible implementation, read the "enterprise" field for each call record, and call the data cache layer of the call record analysis module to query the four metric values of C, C 0 , C 1 , T with the latest timestamp of "Label1 = corresponding enterprise", and accumulate them according to the above algorithm based on the cached values; if the corresponding metric values do not exist in the cache layer, call the C, C 0 , C 1 , T algorithms defined by the metric definition unit to calculate the four basic Metrics values.
[0099] Further, store the four latest Metrics and timestamps into the data cache layer according to the data structures of <C + enterprise name, Value>, <C 0 + enterprise name, Value>, <C 1 + enterprise name, Value>, <T + enterprise name, Value>.
[0100] As a possible implementation, read both the "city" and "enterprise" fields for each call record at the same time, and call the data cache layer of the call record analysis module to query the four metric values of C, C 0 , C 1 , T with the latest timestamp of "Label1 = corresponding city and Label2 = corresponding enterprise", and accumulate them according to the above algorithm based on the cached values; if the corresponding metric values do not exist in the cache layer, call the C, C 0 , C 1 , T algorithms defined by the metric definition unit to calculate the four basic Metrics values.
[0101] Further, store the four latest Metrics and timestamps into the data cache layer according to the data structures of <C + city name + enterprise name, Value>, <C 0 + city name + enterprise name, Value>, <C 1 + city name + enterprise name, Value>, <T + city name + enterprise name, Value>.
[0102] Further, determine the metric values of the invalid call rate, connection rate, and average call duration in the monitoring metrics according to the differences between the statistical values in the most recent period and the previously set period.
[0103] In the embodiment of the present invention, the period may be 1 second.
[0104] Among them, the invalid call rate is the ratio between the difference in the number of first call orders and the difference in the total number of call orders; the connection rate is the ratio between the difference in the number of second call orders and the difference in the total number of call orders; the average call duration is the ratio between the cumulative duration and the difference in the total number of call orders.
[0105] Optionally, the call record analysis module interface layer pulls a uniform resource locator (URL), each controller is bound to a URL, and the statistical value return results are written to the URL in TXT format, and the URL is exposed to the monitoring system.
[0106] Optionally, the monitoring system pulls indicators every 1 second, the call record analysis module interface layer configuration unit parses the URL, connects to the call behavior analysis controller, executes the call behavior analysis indicator query function, calls the call record analysis module data cache layer, and the data cache layer returns the indicator value within 1 minute before the request timestamp, which is directly written into the response body and returned to the monitoring system.
[0107] In the embodiment of the present invention, the dimensions related to number features include the calling number, the called number, and the enterprise information to which the intermediate number is registered and bound.
[0108] Optionally, based on the call record set of each calling number, the call volume of each calling number is periodically obtained; based on the call record set associated with each combination of called number and enterprise information, the call volume of each combination is periodically obtained.
[0109] As a possible implementation method, the "calling number" field is read for each call record, and the external data cache module is called to query the C statistical value of the latest timestamp "Label1 = calling number", and the statistical value is accumulated according to the above algorithm based on the cache value; if the cache module does not have the corresponding calling number indicator, the defined C algorithm is called to calculate the statistical value.
[0110] Furthermore, the latest statistical value and timestamp are stored in the external data cache module according to the <calling number, Score> data structure.
[0111] As a possible implementation method, the "enterprise" and "called number" fields are read for each call record, and the external data cache module is called to query the C statistical value of the latest timestamp "Label1=enterprise and Label2=called number", and accumulated according to the above algorithm based on the cache value; if the cache module does not have the corresponding enterprise called number indicator, the defined C algorithm is called to calculate the statistical value.
[0112] Furthermore, the latest statistical value and timestamp are stored in the external data cache module according to the <enterprise+called number, Score> data structure.
[0113] In an embodiment of the present invention, the calling numbers are ranked according to the call volume of each calling number; the combinations are ranked according to the call volume of each combination; the call volumes of the first several calling numbers and the call volumes of the first several combinations are used as indicator values of the corresponding call volume dimensions.
[0114] Optionally, the monitoring system pulls indicators every 1 second, the call record analysis module interface layer parses the URL, connects to the number feature analysis controller, executes the number feature analysis indicator query function, calls the external data cache module, and the external data cache module sorts the indicators of the day <calling number, Score> and <enterprise + called number, Score> according to the Score, and returns the top N call volumes as the indicator values of the corresponding call volume dimensions.
[0115] By outputting analysis results of different dimensions to the monitoring system, real-time correlation analysis of large amounts of call records can be achieved.
[0116] Step 204: issue an alarm based on the indicator value of the corresponding monitoring indicator of each dimension.
[0117] In an embodiment of the present invention, the indicator values of invalid call rate, connection rate and average call duration in each dimension and the calling number and enterprise + called number corresponding to the TOP N call volume directly pulled by the call record analysis module are displayed, and the alarm threshold is configured for monitoring and alarming.
[0118] In this embodiment, the call information of each call is extracted from the monitored Session Initiation Protocol SIP signaling to generate a call sheet for the corresponding call, wherein the call information in the call sheet includes multiple dimensions; based on the call sheet for each call, the call sheet set involved is counted in multiple dimensions respectively; based on the call sheet set of each dimension, the monitoring indicators configured in each dimension are used to perform indicator analysis to obtain the indicator value of the corresponding monitoring indicator of each dimension; and an alarm is issued according to the indicator value of the corresponding monitoring indicator of each dimension. By classifying and counting the call sheets in different dimensions, it is possible to pull on demand according to the analysis results, solving the problem of difficult multi-dimensional correlation analysis; at the same time, by analyzing the number of pulled indicators, the response results returned by the interface are evenly distributed, reducing the pressure on the single interface, shortening the response delay, and improving real-time performance.
[0119] In order to implement the above embodiment, the present invention also provides a calling behavior monitoring device.
[0120] Figure 4 A schematic diagram of the structure of a call behavior monitoring device provided by an embodiment of the present invention.
[0121] like Figure 4 As shown, the call behavior monitoring device 400 includes: a generation module 401 , a statistics module 402 , an analysis module 403 and an alarm module 404 .
[0122] A generating module 401 is used to extract call information of each call from the monitored Session Initiation Protocol SIP signaling to generate a call record of the corresponding call, wherein the call information in the call record includes multiple dimensions;
[0123] The statistics module 402 is used to count the involved call record sets in multiple dimensions according to the call records of each call;
[0124] The analysis module 403 is used to perform indicator analysis based on the call record set of each dimension using the monitoring indicators configured in each dimension to obtain the indicator value of the monitoring indicator corresponding to each dimension;
[0125] The alarm module 404 is used to issue an alarm according to the indicator value of the monitoring indicator corresponding to each dimension.
[0126] Furthermore, in a possible implementation of the embodiment of the present invention, the generating module 401 is further configured to:
[0127] Monitoring the core network to obtain SIP signaling used in each call, wherein the SIP signaling includes a first signaling used by the calling terminal to initiate a call and a temporary response used to respond to the first signaling;
[0128] Extracting the source header field of the first signaling to obtain the calling number, and extracting the destination header field of the first signaling to obtain the intermediate number;
[0129] Extract the destination header field of the temporary response to obtain the called number;
[0130] Generate a call record for the corresponding call, wherein the call record is used to record the call information of the corresponding call in the dimensions of the calling number, the intermediate number and the called number.
[0131] Query the enterprise information registered and bound to the intermediate number;
[0132] The province and city information corresponding to the first several H digits in the middle number is used as the call information of the corresponding dimension and added to the call record of the corresponding call.
[0133] Furthermore, in a possible implementation of the embodiment of the present invention, the analysis module 403 is further configured to:
[0134] Periodically obtain multiple statistical values for a call record set of any dimension;
[0135] According to the difference between the most recent cycle and the previous set cycle, determine the index values of invalid call rate, connection rate and average call duration in the monitoring indicators;
[0136] The statistical values include the cumulative duration of each call record in the call record set, the total number of call records, the number of first call records with a call duration within the set short call interval, and the number of second call records with a non-zero call duration;
[0137] The invalid call rate is the ratio between the difference in the number of first call orders and the difference in the total number of call orders;
[0138] The connection rate is the ratio between the difference in the number of second call orders and the difference in the total number of call orders;
[0139] The average call duration is the ratio of the difference between the cumulative duration and the total number of call records.
[0140] Determine the start time based on the time when the second signaling is monitored;
[0141] Determining an end time based on the time when the third signaling is detected;
[0142] The call duration of the corresponding call is determined according to the start time and the end time.
[0143] The dimensions include the enterprise information of the calling number, called number and intermediate number registered and bound;
[0144] Based on the call record set of each calling number, the call volume of each calling number is periodically obtained;
[0145] Based on the call record set associated with each combination of called number and enterprise information, the call volume of each combination is periodically obtained;
[0146] Sort the calling numbers according to the call volume of each calling number;
[0147] Sort each combination according to its call volume;
[0148] The call volume of the first several caller numbers and the call volume of the first several combinations of numbers are used as the indicator values of the corresponding call volume dimension.
[0149] Furthermore, in a possible implementation of the embodiment of the present invention, the statistical module 402 is further configured to:
[0150] Read the message queue to obtain the target call record to be processed, wherein the message queue is used to store the generated call records;
[0151] Whenever a target call record is obtained from the message queue, the target call record is assigned to the call record set of the corresponding dimension according to the call information of each dimension in the target call record.
[0152] According to the target dimension to which the target call record belongs, read the indicator value with the latest timestamp for the monitoring indicator under the target dimension, or generate the initial value of the monitoring indicator under the target dimension;
[0153] Update the indicator value according to the target call list;
[0154] For the monitoring indicators under the target dimension, store the updated indicator value and the current timestamp.
[0155] It should be noted that the above explanations of the call behavior monitoring method embodiment are also applicable to the call behavior monitoring device of this embodiment, and will not be repeated here.
[0156] Figure 5 is a block diagram of an electronic device 500 according to an exemplary embodiment.
[0157] like Figure 5 As shown, the electronic device 500 includes:
[0158] The memory 501 and the processor 502, a bus 503 connecting different components (including the memory 501 and the processor 502), the memory 501 stores a computer program, and when the processor 502 executes the program, the call behavior monitoring method of the embodiment of the present invention is implemented.
[0159] Bus 503 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnect (PCI) bus.
[0160] The electronic device 500 typically includes a variety of electronic device readable media. These media can be any available media that can be accessed by the electronic device 500, including volatile and non-volatile media, removable and non-removable media.
[0161] The memory 501 may also include computer system readable media in the form of volatile memory, such as random access memory (RAM) 504 and / or cache memory 505. The electronic device 500 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 506 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5 not shown, usually called a "hard drive"). Although Figure 5Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 503 via one or more data medium interfaces. The memory 501 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.
[0162] A program / utility 508 having a set (at least one) of program modules 507 may be stored, for example, in the memory 501, such program modules 507 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 507 generally perform the functions and / or methods of the embodiments described herein.
[0163] The electronic device 500 may also communicate with one or more external devices 509 (e.g., keyboard, pointing device, display 511, etc.), one or more devices that enable a user to interact with the electronic device 500, and / or any device that enables the electronic device 500 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed through an input / output (I / O) interface 512. Furthermore, the electronic device 500 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 513. Figure 5 As shown, the network adapter 513 communicates with other modules of the electronic device 500 via the bus 503. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device 500, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0164] The processor 502 executes various functional applications and data processing by running the programs stored in the memory 501 .
[0165] It should be noted that the implementation process and technical principles of the electronic device of this embodiment refer to the above explanation of the call behavior monitoring of the embodiment of the present invention, which will not be repeated here.
[0166] In order to implement the above embodiment, the present invention further proposes a computer-readable storage medium. When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the above call behavior monitoring method.
[0167] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0168] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0169] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present invention belong.
[0170] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0171] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0172] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.
[0173] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.
[0174] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.
Claims
1. A call behavior monitoring method, the method is used for real-time correlation analysis of large-volume call records, characterized in that: include: Extracting call information of each call from the monitored Session Initiation Protocol (SIP) signaling to generate a call record of the corresponding call, wherein the call information in the call record includes multiple dimensions; According to the call records of each call, count the call record sets involved in the multiple dimensions respectively; Based on the call record set of each dimension, the monitoring indicators configured in each dimension are used to perform indicator analysis to obtain the indicator value of the corresponding monitoring indicator of each dimension; Issue an alarm based on the indicator value of the corresponding monitoring indicator in each dimension; The dimensions include the enterprise information of the calling number, the called number and the intermediate number registered and bound; the call record set based on each dimension uses the monitoring indicators configured in each dimension to perform indicator analysis to obtain the indicator value of the corresponding monitoring indicator of each dimension, including: Based on the call record set of each calling number, the call volume of each calling number is periodically obtained; Based on the call record set associated with each combination of called number and enterprise information, periodically obtain the call volume of each combination; sorting the calling numbers according to the call volume of the calling numbers; sorting the combinations according to the call volumes of the combinations; The call volume of the first several digits of the calling number and the call volume of the first several digits of the combination are used as the indicator value of the corresponding call volume dimension; The counting of the call record sets involved in the plurality of dimensions according to the call record of each call includes: Reading a message queue to obtain a target call record to be processed, wherein the message queue is used to store generated call records; Whenever the target call record is obtained from the message queue, the target call record is assigned to the call record set of the corresponding dimension according to the call information of each dimension in the target call record; The call record set based on each dimension uses the monitoring indicators configured in each dimension to perform indicator analysis to obtain the indicator value of the monitoring indicator corresponding to each dimension, including: According to the target dimension to which the target call record belongs, reading the indicator value with the latest timestamp for the monitoring indicator under the target dimension, or generating the initial value of the monitoring indicator under the target dimension; According to the target call record, update the indicator value; For the monitoring indicator under the target dimension, the updated indicator value and the current timestamp are stored.
2. The method according to claim 1, characterized in that Extracting call information of each call from the monitored SIP signaling to generate a call record of the corresponding call includes: Monitoring the core network to obtain SIP signaling used in each call, wherein the SIP signaling includes a first signaling used by the calling terminal to initiate a call, and a temporary response used to respond to the first signaling; Extracting a source header field of the first signaling to obtain a calling number, and extracting a destination header field of the first signaling to obtain an intermediate number; Extracting the destination header field of the temporary response to obtain the called number; Generate a call record for the corresponding call, wherein the call record is used to record the call information of the corresponding call in the dimensions of the calling number, the intermediate number and the called number.
3. The method according to claim 2, characterized in that The method further comprises: Query the enterprise information of the registration and binding of the intermediate number; The province and city information corresponding to the first several digits of the H code in the intermediate number is used as the call information of the corresponding dimension and added to the call record of the corresponding call.
4. The method according to any one of claims 1 to 3, characterized in that: The call record set based on each dimension uses the monitoring indicators configured in each dimension to perform indicator analysis to obtain the indicator value of the monitoring indicator corresponding to each dimension, including: Periodically obtain multiple statistical values for a call record set of any dimension; Determine the index values of invalid call rate, connection rate and average call duration among the monitoring indicators according to the difference between each statistical value in the most recent cycle and the previous set cycle; The statistical value includes the cumulative duration of each call record in the call record set, the total number of call records, the number of first call records with a call duration within the set short call interval, and the number of second call records with a non-zero call duration; The invalid call rate is the ratio between the difference in the number of the first call bills and the difference in the total number of the call bills; The connection rate is the ratio between the difference in the number of the second call bills and the difference in the total number of the call bills; The average call duration is the ratio of the difference between the cumulative duration value and the total number of call records.
5. The method according to claim 4, characterized in that The SIP signaling includes a second signaling sent when the called terminal answers the call and a third signaling for ending the call; the method also includes: Determining a start time based on the time when the second signaling is monitored; Determining an end time based on the time when the third signaling is monitored; The call duration of the corresponding call is determined according to the start time and the end time.
6. A call behavior monitoring device, which is used for real-time correlation analysis of large-volume call records, characterized in that: include: A generating module, used for extracting call information of each call from the monitored Session Initiation Protocol SIP signaling to generate a call record of the corresponding call, wherein the call information in the call record includes multiple dimensions; A statistics module, configured to count the call record sets involved in the multiple dimensions according to the call record of each call; The analysis module is used to perform indicator analysis based on the call record set of each dimension using the monitoring indicators configured in each dimension to obtain the indicator value of the corresponding monitoring indicator of each dimension; The alarm module is used to issue alarms based on the indicator values of the corresponding monitoring indicators in each dimension; The dimension includes the enterprise information of the calling number, the called number and the intermediate number registered and bound; the analysis module is specifically used for: Based on the call record set of each calling number, the call volume of each calling number is periodically obtained; Based on the call record set associated with each combination of called number and enterprise information, periodically obtain the call volume of each combination; sorting the calling numbers according to the call volume of the calling numbers; sorting the combinations according to the call volumes of the combinations; The call volume of the first several digits of the calling number and the call volume of the first several digits of the combination are used as the indicator value of the corresponding call volume dimension; The statistical module is specifically used for: Reading a message queue to obtain a target call record to be processed, wherein the message queue is used to store generated call records; Whenever the target call record is obtained from the message queue, the target call record is assigned to the call record set of the corresponding dimension according to the call information of each dimension in the target call record; The statistical module is also used for: According to the target dimension to which the target call record belongs, reading the indicator value with the latest timestamp for the monitoring indicator under the target dimension, or generating the initial value of the monitoring indicator under the target dimension; According to the target call record, update the indicator value; For the monitoring indicator under the target dimension, the updated indicator value and the current timestamp are stored.
7. An electronic device, characterized in that: include: processor; a memory for storing executable instructions for the processor; The processor is configured to execute the instructions to implement the method as claimed in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method as claimed in any one of claims 1 to 5.
