Telephone traffic data processing method and device, computer equipment, readable storage medium and program product

By registering message reception requests on the traffic platform, receiving and updating traffic messages, and generating key-value pairs until the call end event is received, the lag and error problems in traffic indicator data extraction in traditional technology are solved, and the voice communication system is realized. Timely and accurate extraction and processing of service indicator data.

CN118740988APending Publication Date: 2024-10-01CHINA CONSTRUCTION BANK +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410948170.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The process of obtaining traffic indicator data in traditional technology has lags and data errors, making it impossible to extract traffic indicator data for each incoming call in a timely and accurate manner.

Method used

By detecting the startup of the traffic platform, registering message reception requests, receiving traffic messages and generating key-value pairs, updating the event list until the call end event is received, extracting traffic indicator data and pushing it to the platform, realizing timely and accurate traffic events Centralized, comprehensive storage and updates.

Benefits of technology

It improves the efficiency of receiving traffic messages, ensures the timely and accurate extraction of traffic indicator data and data integrity, and solves the problems of data processing lag and errors and loopholes in traditional technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740988A_ABST
    Figure CN118740988A_ABST
Patent Text Reader

Abstract

The invention relates to the field of big data processing, and particularly discloses a telephone traffic data processing method and device, computer equipment, a computer readable storage medium and a computer program product. The method comprises the following steps: when the telephone traffic platform is detected to be started, registering a message receiving request so as to receive a telephone traffic message during the operation period of the telephone traffic platform; reading the call serial number and event information of a first telephone traffic event associated with the call serial number from the received first telephone traffic message, and adding a first type of key value pair generated based on the event information to an event list associated with the call serial number; when a received second telephone traffic message carries a second telephone traffic event associated with the call serial number, updating the event list based on the second telephone traffic event until the received telephone traffic message carries an end telephone traffic event which is associated with the call serial number and represents the end of the call, and obtaining a target event list, and pushing the telephone traffic index data extracted from the target event list to a telephone traffic platform. By adopting the method, the telephone traffic index data can be timely and accurately extracted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of big data processing, and in particular to a method, apparatus, computer equipment, computer-readable storage medium and computer program product for processing call data. Background Art

[0002] At present, in order to improve customer experience, customer service / complaint hotlines are usually provided to provide a communication bridge between customers and service providers. Service providers can improve the services they provide based on the hotline's call index data, and regulators can effectively supervise service providers based on the hotline's call index data. In traditional technology, for hotline calls, call flow data (i.e., call data) is usually recorded first. When it is necessary to count the call index data, a large amount of recorded call flow data can be exported with the help of a computer, and then the call index data can be manually counted, or a simple data statistics can be performed on the exported large amount of call flow data through a preset computer program to obtain the call index data.

[0003] However, the process of obtaining call traffic index data in traditional technology is lagging, and it is impossible to extract the call traffic index data of each incoming call in time. In addition, due to the huge amount of data, the process of exporting a large amount of call flow data is also prone to data errors. Therefore, the traditional call traffic data processing method cannot extract call traffic index data in a timely and accurate manner. Summary of the invention

[0004] Based on this, it is necessary to provide a traffic data processing method, device, computer equipment, computer-readable storage medium and computer program product that can timely and accurately extract traffic indicator data in response to the above technical problems.

[0005] In the first aspect, the present application provides a method for processing traffic data, including: when a traffic platform is detected to be started, registering a message receiving request; the message receiving request is used to receive traffic messages during the operation period of the traffic platform; when a first traffic message is received, reading the call serial number and the event information carried by the first traffic event associated with the call serial number from the first traffic message; based on the event information carried by the first traffic event, generating a first type of key-value pair for storing the first traffic event, and adding the first type of key-value pair to an event list associated with the call serial number; when a second traffic message is received, and the second traffic message carries a second traffic event associated with the call serial number, updating the event list based on the second traffic event until the received traffic message carries an end traffic event associated with the call serial number that represents the end of the call, stopping the update and obtaining the target event list; extracting traffic indicator data from the target event list and pushing it to the traffic platform.

[0006] In one of the embodiments, a traffic message is generated in the following manner: when an incoming request is received, a call serial number is configured for the incoming request, and a traffic event triggered based on the incoming request is monitored; the event type of the triggered traffic event is determined, and the event code of the triggered traffic event is determined based on the event type and a preset event type coding table; a message package generated based on the triggered traffic event is obtained, and the event code and the message package are combined to generate a traffic message for the triggered traffic event; the message package carries the call serial number configured for the incoming request.

[0007] In one of the embodiments, when a first traffic message is received, a call serial number and event information carried by a first traffic event associated with the call serial number are read from the first traffic message, including: when the first traffic message is received, the first traffic message is serialized to generate a message queue; data is read from the message queue to determine the call serial number carried in the message queue, and the event generation time, event result and event code of the first traffic event associated with the call serial number.

[0008] In one of the embodiments, based on the event information carried by the first traffic event, a first type of key-value pair for storing the first traffic event is generated, including: using the event code of the first traffic event as a key for constructing the first type of key-value pair; encapsulating the event generation time, event result and call serial number of the first traffic event as a value for constructing the first type of key-value pair; based on the key for constructing the first type of key-value pair and the value for constructing the first type of key-value pair, generating a first type of key-value pair for storing the first traffic event.

[0009] In one of the embodiments, the above-mentioned traffic data processing method also includes: when the call serial number is read out from the received traffic message for the first time, creating an event list associated with the call serial number; using the call serial number as a key for constructing a second type of key-value pair, and using the event list associated with the call serial number as a value for constructing the second type of key-value pair; based on the key for constructing the second type of key-value pair and the value for constructing the second type of key-value pair, generating a second type of key-value pair for storing the event list associated with the call serial number; and storing the second type of key-value pair in a temporary cache database.

[0010] In one of the embodiments, updating an event list based on a second traffic event includes: generating an updated first-class key-value pair for storing the second traffic event based on event information carried by the second traffic event; and updating an event list in a second-class key-value pair carrying a call serial number in a temporary cache database based on the updated first-class key-value pair.

[0011] In the second aspect, the present application also provides a traffic data processing device, including: a request registration module, which is used to register a message receiving request when a traffic platform is detected to be started; the message receiving request is used to receive traffic messages during the operation of the traffic platform; a traffic message reading module, which is used to read the call serial number and the event information carried by the first traffic event associated with the call serial number from the first traffic message when a first traffic message is received; a traffic event storage module, which is used to generate a first type of key-value pair for storing the first traffic event based on the event information carried by the first traffic event, and add the first type of key-value pair to the event list associated with the call serial number; an event list updating module, which is used to update the event list based on the second traffic event when a second traffic message is received and the second traffic message carries a second traffic event associated with the call serial number, until the received traffic message carries an end traffic event associated with the call serial number that represents the end of the call, stops updating and obtains the target event list; an indicator data pushing module, which is used to extract traffic indicator data from the target event list and push it to the traffic platform.

[0012] In one of the embodiments, the above-mentioned traffic data processing device also includes: a serial number configuration module, which is used to configure a call serial number for the incoming request when an incoming request is received, and monitor the traffic event triggered based on the incoming request; an event code determination module, which is used to determine the event type of the triggered traffic event, and determine the event code of the triggered traffic event according to the event type and a preset event type code table; a traffic message generation module, which is used to obtain a message package generated based on the triggered traffic event, and combine the event code and the message package to generate a traffic message of the triggered traffic event; the message package carries the call serial number configured for the incoming request.

[0013] In one of the embodiments, the traffic message reading module includes: a message queue generating unit, which is used to serialize the first traffic message when a first traffic message is received to generate a message queue; a message queue reading unit, which is used to read data from the message queue, determine the call serial number carried in the message queue, and the event generation time, event result and event code of the first traffic event associated with the call serial number.

[0014] In one of the embodiments, the traffic event storage module includes: a first-class key determination unit, used to use the event code of the first traffic event as a key for constructing a first-class key-value pair; a first-class value determination unit, used to encapsulate the event generation time, event result and call serial number of the first traffic event as a value for constructing a first-class key-value pair; a first-class key-value pair generation unit, used to generate a first-class key-value pair for storing the first traffic event based on the key for constructing the first-class key-value pair and the value for constructing the first-class key-value pair.

[0015] In one of the embodiments, the above-mentioned traffic data processing device also includes: an event list creation module, which is used to create an event list associated with the call serial number when the call serial number is read out from the received traffic message for the first time; a second-class key value determination module, which is used to use the call serial number as a key for constructing a second-class key-value pair, and use the event list associated with the call serial number as a value for constructing the second-class key-value pair; a second-class key-value pair generation module, which is used to generate a second-class key-value pair for storing the event list associated with the call serial number based on the key for constructing the second-class key-value pair and the value for constructing the second-class key-value pair; an event list storage module, which is used to store the second-class key-value pair in a temporary cache database.

[0016] In one of the embodiments, the event list update module includes: an update key-value pair generation unit, which is used to generate an updated first-class key-value pair for storing the second traffic event based on the event information carried by the second traffic event; an event list update unit, which is used to update the event list in the second-class key-value pair carrying the call serial number in the temporary cache database based on the updated first-class key-value pair.

[0017] In a third aspect, the present application also provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the following steps when executing the computer program: when it is detected that a traffic platform is started, register a message receiving request; the message receiving request is used to receive traffic messages during the operation of the traffic platform; when a first traffic message is received, read the call serial number and the event information carried by the first traffic event associated with the call serial number from the first traffic message; based on the event information carried by the first traffic event, generate a first type of key-value pair for storing the first traffic event, and add the first type of key-value pair to the event list associated with the call serial number; when a second traffic message is received, and the second traffic message carries a second traffic event associated with the call serial number, update the event list based on the second traffic event until the received traffic message carries an end traffic event associated with the call serial number that represents the end of the call, stop updating and obtain the target event list; extract traffic indicator data from the target event list and push it to the traffic platform.

[0018] In a fourth aspect, the present application also provides a computer-readable storage medium having a computer program stored thereon, which implements the following steps when executed by a processor: when it is detected that a traffic platform is started, register a message receiving request; the message receiving request is used to receive traffic messages during the operation of the traffic platform; when a first traffic message is received, read the call serial number and the event information carried by the first traffic event associated with the call serial number from the first traffic message; based on the event information carried by the first traffic event, generate a first type of key-value pair for storing the first traffic event, and add the first type of key-value pair to the event list associated with the call serial number; when a second traffic message is received, and the second traffic message carries a second traffic event associated with the call serial number, update the event list based on the second traffic event until the received traffic message carries an end traffic event associated with the call serial number that represents the end of the call, stop updating and obtain the target event list; extract traffic indicator data from the target event list and push it to the traffic platform.

[0019] In a fifth aspect, the present application also provides a computer program product, comprising a computer program, which implements the following steps when executed by a processor: when it is detected that a traffic platform is started, register a message receiving request; the message receiving request is used to receive traffic messages during the operation of the traffic platform; when a first traffic message is received, read the call serial number and the event information carried by the first traffic event associated with the call serial number from the first traffic message; based on the event information carried by the first traffic event, generate a first type of key-value pair for storing the first traffic event, and add the first type of key-value pair to the event list associated with the call serial number; when a second traffic message is received, and the second traffic message carries a second traffic event associated with the call serial number, update the event list based on the second traffic event until the received traffic message carries an end traffic event associated with the call serial number that represents the end of the call, stop updating and obtain the target event list; extract the traffic indicator data from the target event list and push it to the traffic platform.

[0020] The above-mentioned traffic data processing method, device, computer equipment, computer-readable storage medium and computer program product, when detecting that the traffic platform is started, registers a message receiving request for receiving traffic messages during the operation of the traffic platform, that is, only one message receiving request needs to be registered when the traffic platform is started, and the traffic message can be received during the operation of the traffic platform, without the need to frequently register the request, which is conducive to improving the efficiency of receiving traffic messages, thereby facilitating the timely extraction of traffic indicator data. Further, the call serial number and the event information of the first traffic event associated with the call serial number are read from the received first traffic message, and a first-class key-value pair for storing the first traffic event is generated based on the event information, and the first-class key-value pair is added to the event list associated with the call serial number, that is, the first-class key-value pairs (traffic events) belonging to the same call serial number can be centrally stored in the event list associated with the corresponding call serial number, so that the traffic indicator data associated with the corresponding call serial number can be comprehensively and accurately extracted based on the event list. When the received second traffic message carries the second traffic event associated with the call serial number, the event list is updated based on the second traffic event, that is, the event list can be accurately updated based on the call serial number to ensure the integrity and accuracy of the data in the event list, until the received traffic message carries the end traffic event associated with the call serial number that represents the end of the call, the update is stopped and the target event list is obtained, and the traffic indicator data is extracted from the target event list and pushed to the traffic platform. During the whole process, the traffic events associated with the call serial number can be stored in the event list associated with the call serial number in a timely, centralized and comprehensive manner, and the event list can be updated in a timely and accurate manner, thereby ensuring that the traffic indicator data can be extracted in a timely and accurate manner from the obtained target event list. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0022] Figure 1 is an application environment diagram of a method for processing traffic data in one embodiment;

[0023] Figure 2 A flow chart of a method for processing traffic data in one embodiment;

[0024] Figure 3 A schematic diagram of a process of receiving a registration message from an MPC to a CAIS in one embodiment;

[0025] Figure 4A schematic diagram of an MPC architecture deployed in a call center system in one embodiment;

[0026] Figure 5 A schematic diagram of a flow chart of generating a traffic message in one embodiment;

[0027] Figure 6 It is a flowchart of the process in which the call center platform and the call center system process the incoming call request when the user triggers the incoming call request in one embodiment;

[0028] Figure 7 A flow chart of realizing traffic data processing by generating a message queue and reading messages in one embodiment;

[0029] Figure 8 A schematic diagram of a process for generating a first type of key-value pair in an embodiment;

[0030] Fig. 9 A schematic diagram of a process for creating and storing an event list in one embodiment;

[0031] Fig.10 is a flow chart of a method for processing traffic data in another embodiment;

[0032] Fig.11 is a structural block diagram of a traffic data processing device in one embodiment;

[0033] Fig.12 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0034] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application. It should be noted that in the embodiments of the present application, certain software, groups, models and other existing solutions in the industry may be mentioned, which should be considered as exemplary, and their purpose is only to illustrate the feasibility of the implementation of the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.

[0035] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations. The acquisition, storage, use, and processing of data in the technical solution of this application are in compliance with relevant provisions of national laws and regulations.

[0036] The method for processing telephone traffic data provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown, the service provider deploys a call center system 102, which is connected to an external call forwarding platform 104, which is a system integrating multiple communication technologies and business process management, and is mainly used to process and manage a large number of incoming and outgoing calls. The call platform 104 can communicate with the terminal 106 used by the user.

[0037] Exemplarily, when a user dials a customer service / complaint hotline, the call platform 104 can receive the user's call, and under the user's authorization, for example, the user triggers the "one-key call forwarding" function using the terminal, then the call platform 104 can transfer the user's call to the call center system 102, and the call center system 102 can process the call messages generated during the call process based on the call data processing method provided in the embodiment of the present application, and extract the call index data. Finally, the call center platform 102 can synchronously send the call index data extracted for the call to the call platform 104. Further, the service provider can improve the services provided based on the call index data stored in the call platform 104, and the supervisor can effectively supervise the service provider based on the call index data stored in the call platform 104.

[0038] It should be noted that, in this embodiment, CAIS (Call And Information System) and MPC (Message Push Component) are deployed in the call center platform 102. Among them, CAIS can be used to monitor calls (user calls) transferred to the call center platform 102, and perform information processing on messages, logs, etc. generated after the calls are transferred to the call center platform 102, such as monitoring incoming calls transferred to the call center platform 102, and monitoring the traffic messages generated by the incoming calls. In addition, CAIS can respond to the message reception request registered by MPC and push all the traffic messages generated during the call process to MPC, and MPC can perform data processing on the traffic messages pushed by CAIS to extract the traffic data indicators corresponding to each call, and synchronize the extracted traffic data indicators to the traffic platform 104.

[0039] Specifically, the traffic data processing method provided in the embodiment of the present application is applied to Figure 1In the application environment shown, when the call center system 102 detects that the traffic platform 104 is started, the call center system 102 can control the MPC deployed in the call center system 102 to register a message receiving request with the CAIS deployed in the call center system 102, wherein the message receiving request is used to enable the CAIS to continuously push the monitored traffic messages to the MPC during the operation of the traffic platform 104, so that the MPC can receive the traffic messages during the operation of the traffic platform 104. Further, when the call center system 102 determines that the MPC has received the first traffic message, the call center system 102 can read the call serial number and the event information carried by the first traffic event associated with the call serial number from the first traffic message through the MPC, thereby generating a first type of key-value pair for storing the first traffic event based on the event information carried by the first traffic event, and adding the first type of key-value pair to the event list associated with the call serial number. Further, when the call center system 102 determines that the MPC has received a second traffic message, and the second traffic message carries a second traffic event associated with the call serial number, the call center system 102 can update the event list based on the second traffic event through the MPC until the received traffic message carries an end traffic event associated with the call serial number that represents the end of the call, stop updating, and obtain the target event list. Finally, the call center system 102 can extract the traffic indicator data from the target event list through the MPC and push it to the traffic platform 104.

[0040] In an exemplary embodiment, Figure 2 As shown, a method for processing traffic data is provided, and the method is applied to Figure 1 The call center system 102 in FIG. 1 is taken as an example to illustrate, including the following steps 202 to 210. Among them:

[0041] Step 202: When it is detected that the traffic platform is started, a message receiving request is registered; the message receiving request is used to receive traffic messages during the operation of the traffic platform.

[0042] Among them, after the user's call is transferred to the service provider's call center system, a series of traffic messages will be generated in the call center system due to call start, call end, agent queue, queue end, ringing, call establishment, and call end. Traffic messages carry various data and instructions related to incoming calls, transfers, and outgoing calls, including but not limited to: request messages, response messages, confirmation messages, call channel event messages, traffic scenario event messages, and event messages generated during the automatic voice answering process.

[0043] Optionally, when the call center system detects that the call platform is started, the call center system can simultaneously control the MPC deployed in the call center system to register a message receiving request with the CAIS deployed in the call center system, so that during the continuous operation of the call platform, the CAIS will continuously and real-time push the call messages monitored by the call center system to the MPC, so that the MPC can receive the call messages during the operation of the call platform and perform data processing on the call messages in a timely manner.

[0044] It should be noted that if the call center platform is shut down and restarted due to maintenance or upgrade, the call center system can control MPC to re-register the message receiving request with CAIS, but the call center platform is usually kept in operation for a long time. Therefore, the call center system usually only needs to control MPC to register the message receiving request with CAIS once in a short period of time to ensure that after the call platform (in operation) transfers the user's call to the call center system, CAIS will continue to feed back a series of call messages generated in the call center system due to the user's call to MPC. In addition, if the call center system requires MPC to change the registration request, that is, change the message receiving request registered by MPC in CAIS to other requests that match the actual application needs, the call center system can control MPC to register the changed request with CAIS.

[0045] Based on this, Figure 3 As shown, a flow chart of MPC registering a message receiving request with CAIS is provided, which mainly includes the following flow: under the dispatch of the call center system, the MPC deployed in the call center system can register a message receiving request with CAIS, and CAIS can respond to the message receiving request registered by MPC, send a traffic message to MPC, and MPC can respond and receive the traffic message. If MPC registers a changed request with CAIS, CAIS can also respond to the changed request.

[0046] Step 204: When the first traffic message is received, the call serial number and the event information carried by the first traffic event associated with the call serial number are read from the first traffic message.

[0047] Among them, the real-time traffic message carries: all traffic events occurring in real time in the call center system and the event information of each traffic event. The event information includes but is not limited to: the time of event occurrence, the call serial number associated with the event, and the event result. The event information carried by each type of traffic event can be flexibly expanded and configured according to the actual application scenario. This embodiment is not limited to the above event information. Each incoming call from a user has its own unique call serial number, which can be composed of numbers and letters. Traffic events include but are not limited to: incoming events, call end events, agent queue events, queue end events, ringing events, call events, and call end events.

[0048] Optionally, the call center system may control the CAIS to monitor the traffic messages generated in real time in the call center system, and push the monitored first traffic messages to the MPC in real time. When the call center system determines that the MPC has received the first real-time traffic message, the call center system may control the MPC to read the call serial number from the first real-time traffic message, and read the first traffic event associated with the call serial number and the event information carried by the first traffic event from the first traffic message.

[0049] Step 206: Generate a first type of key-value pair for storing the first traffic event based on the event information carried by the first traffic event, and add the first type of key-value pair to an event list associated with the call serial number.

[0050] Among them, the key-value pair is a simple and widely used data structure that allows the storage of a key (Key) and the value (Value) associated with it. In this structure, the key is unique and is used to quickly find and retrieve values. Key-value pairs are commonly used in various programming and data storage scenarios, including configuration files, database indexes, cache systems, etc. Each incoming call has its own unique call serial number and a corresponding unique associated event list. That is, the first-class key-value pairs corresponding to different traffic events belonging to the same incoming call can be stored in the event list associated with the call serial number configured for the incoming call, thereby realizing the centralized storage of traffic events under the same incoming call.

[0051] Optionally, the call center system can process the first traffic event through MPC, that is, control MPC to generate a first type of key-value pair for storing / characterizing the first traffic event based on the event information carried by the first traffic event, and add the first type of key-value pair to the event list associated with the call serial number.

[0052] When a second traffic message is received and the second traffic message carries a second traffic event associated with the call serial number, step 208 is executed to update the event list based on the second traffic event until the received traffic message carries an end traffic event associated with the call serial number representing the end of the call, then the updating is stopped and the target event list is obtained.

[0053] The received traffic message carries a call end event associated with the call serial number, indicating that the call has ended or the conversation has ended. If the received traffic message does not carry a call end event associated with the call serial number, it means that the call represented by the call serial number has not ended or the conversation has not ended, and traffic events will continue to be generated, so that the event list associated with the call serial number can be updated based on the newly generated traffic event associated with the call serial number.

[0054] Optionally, when the call center system determines that the MPC has received a second traffic message and the second traffic message carries a second traffic event associated with the call serial number, the call center system can control the MPC to generate an updated first-class key-value pair for storing the second traffic event based on the second traffic event, thereby adding the updated first-class key-value pair to the event list to update the event list until a subsequently received traffic message carries an end traffic event associated with the call serial number that represents the end of the call, stops updating the event list and obtains the target event list.

[0055] Optionally, if the received second traffic message does not carry the second traffic event associated with the call serial number, step 210 is executed without updating the event list.

[0056] Step 212: extract the traffic indicator data from the target event list and push it to the traffic platform.

[0057] Among them, the call traffic indicator data may specifically include: whether the agent answers the call (whether the customer service of the service provider answers the user's call after the user calls), the agent's waiting time to answer the call, the agent's call duration, etc., so that the service provider or regulator can evaluate the handling quality and efficiency of each customer call based on the call traffic indicator data associated with each call (each call serial number).

[0058] Optionally, when the incoming call represented by the call serial number ends, a target event list associated with the call serial number can be obtained. At this time, the call center system can control the MPC to extract traffic indicators for the target event list associated with the call serial number according to preset traffic indicator extraction rules, and push the traffic indicator data extracted from the target event list to the traffic platform.

[0059] Based on the above steps 202 to 212, if Figure 4 As shown in the figure, a schematic diagram of the MPC architecture deployed in the call center system is provided, in which: the call center platform is deployed with CAIS and MPC. After the MPC registers the message receiving request with CAIS, CAIS pushes the traffic messages monitored in the call center platform to MPC. MPC processes the received traffic messages and synchronizes the traffic indicator data obtained after processing to the traffic platform. Figure 4As shown, the MPC in this embodiment is built based on Kafka architecture, Redis cache, and data push service. The Kafka architecture includes the following components: Kafka producer, Kafka cluster, and Kafka consumer. In this embodiment, the Kafka producer is used to receive the traffic messages pushed by CAIS in real time and publish the traffic messages to the Kafka cluster. The Kafka cluster receives and stores the traffic messages published by the Kafka producer, and serializes the traffic messages to generate a message queue to ensure reliable data transmission and support Kafka consumers to subscribe to and process data. Furthermore, Kafka consumers can subscribe to corresponding Kafka topics from Kafka clusters to read data from Kafka clusters and process the data. For example, under the scheduling of the call center platform, Kafka consumers read the call serial number and the event information carried by the first traffic event associated with the call serial number from the first traffic message, and based on the event information carried by the first traffic event, generate a first-class key-value pair for storing the first traffic event, add the first-class key-value pair to the event list associated with the call serial number, and store the event list in the Redis cache. Furthermore, under the scheduling of the call center platform, in this embodiment, the event list can be updated in the Redis cache based on the Kafka architecture until the target event list is obtained, and the traffic indicator data can be extracted from the target event list stored in the Redis cache through the data push service, and then the traffic indicator data can be pushed to the traffic platform.

[0060] Among them, Kafka is a mature distributed stream processing platform that can achieve high-throughput distributed publish-subscribe messages, can process large amounts of data streams, and is widely used to build real-time data pipelines and stream applications. In this embodiment, the Kafka architecture can be used to transmit and process data streams in real time and reliably in a call center system. Redis (RemoteDictionary Server) is an open source, memory-based and persistent high-performance key-value storage database that supports rich data structures and can be widely used in caching, message queues, real-time analysis and other fields.

[0061] The above-mentioned traffic data processing method, when detecting that the traffic platform is started, registers a message receiving request for receiving traffic messages during the operation of the traffic platform, that is, only one message receiving request needs to be registered when the traffic platform is started, and the traffic messages can be received during the operation of the traffic platform, without the need to frequently register the request, which is conducive to improving the efficiency of receiving traffic messages, thereby facilitating the timely extraction of traffic indicator data. Further, the call serial number and the event information of the first traffic event associated with the call serial number are read from the received first traffic message, and a first-class key-value pair for storing the first traffic event is generated based on the event information, and the first-class key-value pair is added to the event list associated with the call serial number, that is, the first-class key-value pairs (traffic events) belonging to the same call serial number can be centrally stored in the event list associated with the corresponding call serial number, so that the traffic indicator data associated with the corresponding call serial number can be comprehensively and accurately extracted based on the event list. When the received second traffic message carries the second traffic event associated with the call serial number, the event list is updated based on the second traffic event, that is, the event list can be accurately updated based on the call serial number to ensure the integrity and accuracy of the data in the event list, until the received traffic message carries the end traffic event associated with the call serial number that represents the end of the call, the update is stopped and the target event list is obtained, and the traffic indicator data is extracted from the target event list and pushed to the traffic platform. During the whole process, the traffic events associated with the call serial number can be stored in the event list associated with the call serial number in a timely, centralized and comprehensive manner, and the event list can be updated in a timely and accurate manner, thereby ensuring that the traffic indicator data can be extracted in a timely and accurate manner from the obtained target event list.

[0062] In one embodiment, if Figure 5 As shown, a flow chart of generating a traffic message is provided, which mainly includes the following steps:

[0063] Step 502: When an incoming call request is received, a call serial number is configured for the incoming call request, and a traffic event triggered based on the incoming call request is monitored.

[0064] Optionally, when the service provider's call center system detects through CAIS that an incoming call is transferred to the call center system, the call center system can determine that an incoming request has been received, configure a call serial number for the incoming request, and monitor the traffic events triggered based on the incoming request through CAIS.

[0065] For example, in a call center system, CAIS can monitor all traffic events triggered by incoming call requests transferred to the call center system in real time and in parallel through SIP messages (Session Initiation Protocol messages). SIP messages are response messages used to establish, modify, and terminate multimedia sessions of one or more participants, and real-time communication between users can be achieved through request and response messages.

[0066] Step 504: determine the event type of the triggered traffic event, and determine the event code of the triggered traffic event according to the event type and a preset event type code table.

[0067] Each traffic event corresponds to its own event type, and a preset event type code table pre-defines an event code corresponding to each event type, and a preset event type code table is pre-stored in the CAIS deployed in the call center system.

[0068] Optionally, the call center system may first identify the event type of the traffic event triggered by the incoming request through CAIS to determine the event type of the traffic event triggered by the incoming request. Furthermore, the call center system may determine the event code of each of the triggered traffic events based on the event type identified by CAIS and the preset event type coding table configured in CAIS.

[0069] Exemplarily, in the preset event type coding table, the event code of the incoming call event (OnIvrBegin event) triggered when the call starts is EventCode=100; the event code of the call end event (OnIvrEnd event) triggered when the call ends is EventCode=101; the event code of the agent queuing event (OnQueueBegin event) triggered when participating in the manual customer service hotline queue is EventCode=200; the event code of the queue end event (OnQueueEnd event) triggered when the agent queue ends is EventCode=201; the event code of the ringing event (OnRinging event) triggered when the ringing starts is EventCode=301; the event code of the talk event (OnTalking event) triggered when the call is established is EventCode=303; the event code of the call end event (OnRelease event) triggered when the call ends is EventCode=302.

[0070] Step 506, obtaining a message packet generated based on the triggered traffic event, and combining the event code and the message packet to generate a traffic message of the triggered traffic event; the message packet carries the call serial number configured for the incoming call request.

[0071] Among them, the message packets generated during the call may include two types: signaling packets and media packets. Signaling packets are used to control the establishment, modification and termination of the session, while media packets contain actual media data. These two types of message packets are transmitted through the network and can achieve real-time communication with the support of the session protocol.

[0072] Optionally, the call center system can collect message packets generated by all components in the call center system due to triggered traffic events through CAIS, and combine event codes and message packets through CAIS to generate a traffic message for each triggered traffic event monitored based on the event type, the message packet length of the message packet generated by the traffic event, and the message packet content of the message packet generated by the traffic event.

[0073] Exemplarily, the traffic message can be specifically in the following format: event type + message packet length + message packet content (EevntData), wherein the message packet content can include the event start time, event result, associated call serial number, etc. of the corresponding traffic event, and the message packet content can also be flexibly configured according to the actual application scenario.

[0074] Further, to facilitate understanding of this embodiment, Figure 6 As shown, a flow chart of how the call center system and the call center system process the incoming call request when the user triggers the incoming call request is provided, wherein:

[0075] (1) For the terminal, when the user uses the terminal to dial the customer service / complaint hotline, an incoming call request is triggered. The terminal can call the MGCF-MGW (Media Gateway Control Function- Media Gateway) gateway according to the incoming call request through the operator network and PRI (Primary Rate Interface) telecommunications technology. The MGCF-MGW gateway can call the SIP load balancing device in the call platform through the SIP (Session Initiation Protocol) message according to the incoming call request.

[0076] Among them, the operator network refers to the communication network established and maintained by the telecommunications operator. PRI telecommunications technology can use the integrated services digital network to transmit digital signals based on time division multiplexing technology to provide high-speed, multi-channel digital communication capabilities to meet large-scale communication needs. MGCF is a key component in the soft switching network, responsible for controlling the operation of MGW to achieve media stream conversion and control between different networks. MGW is another important component in the soft switching network, responsible for converting media streams between the network and the traditional circuit switching network. The MGCF-MGW gateway in this embodiment can support cross-network call control and media transmission. The SIP load balancing device, namely SIPPROXY, also known as the SIP proxy server, is used to forward SIP request and response messages to help achieve communication between users.

[0077] (2) For the call center platform, after the MGCF-MGW gateway calls the SIP load balancing device of the call center platform through a SIP message, the SIP load balancing device of the call center platform can select an IVR from the IVR (Interactive Voice Response) cluster in the call center platform according to the preset strategy, and assign the incoming call request to the selected IVR based on the SIP message. When the user uses the terminal to trigger the "one-click call transfer" function to transfer to the service provider, at this time, the IVR to which the incoming call request is assigned can send a transfer instruction to the SIP load balancing device of the call center platform based on the SIP message. The SIP load balancing device of the call center platform can respond to the transfer instruction and forward the incoming call request to the SBC (Session Border Controller) cluster deployed in the call center platform, so that the SBC cluster of the call center platform can communicate with the SBC cluster in the call center system based on protocols such as SIP messages, and transfer the incoming call request to the SBC cluster of the call center system, and also pass the user information UUI carried by the incoming call request to the SBC cluster of the call center system.

[0078] Among them, IVR is a telephone technology that allows users to interact with computer systems through voice. Users can enter the IVR system by dialing a specific phone number and make selections or input information according to the voice prompts provided by the system, such as choosing whether to trigger "one-click call transfer" according to the prompts. SBC clusters can achieve high availability by combining multiple SBC devices together to form a logical whole. In an SBC cluster, SBC devices collaborate with each other to jointly process requests, and when an SBC device fails, they automatically forward requests to other normal SBC devices to ensure service continuity. UUI (User-to-User Information) is additional information transmitted with the call, which is used to pass specific user information or instructions during the call.

[0079] (3) For the call center system, when the SBC cluster of the call center system receives an incoming call request, the SBC cluster of the call center system can connect the incoming call request to the SIP load balancing device of the call center system based on the SIP message, and the SIP load balancing device of the call center system can distribute the incoming call request to an IVR in the IVR cluster of the call center system based on the SIP message according to the preset strategy, and the distributed IVR initiates a transfer request to the CTI (Computer Telephony Integration) cluster in the call center system based on the SIP message. Furthermore, the CTI cluster applies to the CAIS for agent queuing and obtains the queuing result. If the queuing is successful, the CTI cluster can transfer the call to the service provider's agent CSR (artificial agent), so that the user can be connected to the artificial customer service at the agent. In this process, the CAIS deployed in the call center system can monitor the CTI cluster and IVR cluster in the call center system in real time to monitor all agents, calls, and media messages from the IVR cluster and CTI cluster, thereby realizing the monitoring of traffic events triggered by incoming call requests. Then, if the MPC of the call center system has registered a message receiving request with CAIS, CAIS can use TCP / IP Socket message communication to push the monitored traffic messages to MPC in real time. After processing the traffic messages, MPC can synchronously push the obtained traffic indicator data to the database of the traffic platform through HTTP (HyperText Transfer Protocol), so that the service provider or regulator can view the traffic indicator data of the customer service / complaint hotline from the traffic platform.

[0080] Among them, CTI technology can combine computer systems and telephone systems, and can be integrated into cluster systems to form CTI clusters, thereby improving the efficiency and performance of call center systems. CSRs, or human agents, are people who work in call centers and interact directly with customers, responsible for answering customer inquiries, handling customer complaints, and providing business support. TCP / IP Socket messages are a mechanism for data exchange between different computers or applications in network communications. TCP / IP is a protocol cluster composed of multiple protocols, of which TCP (Transmission Control Protocol) and IP (Internet Protocol) are the two most representative protocols. Sockets can be seen as endpoints for two-way communication between processes on different hosts. HTTP is an application layer protocol for distributed, collaborative, and hypermedia information systems.

[0081] In this embodiment, the traffic events triggered by the incoming call requests associated with each call flow data and the message packets generated by the triggered traffic events can be collected in a timely and comprehensive manner, which is conducive to the timely and accurate generation of traffic messages, so that the traffic events associated with the call serial number can be read more comprehensively from the traffic messages later, which is conducive to the accurate generation of traffic indicator data associated with the call serial number based on the read traffic events.

[0082] In an exemplary embodiment, Figure 2 On the basis of Figure 7 As shown, a flow chart of realizing traffic data processing by generating a message queue and reading messages is provided, which mainly includes the following steps:

[0083] Step 702: When a first traffic message is received, the first traffic message is serialized to generate a message queue.

[0084] Among them, the MPC in the call center system is built based on Kafka architecture, Redis cache, and data push service. The Kafka architecture includes the following components: Kafka producer, Kafka cluster, and Kafka consumer.

[0085] Optionally, the MPC in the call center system can receive the first traffic message through the Kafka producer. When the call center system determines that the Kafka producer has received the first traffic message, the first traffic message can be published to the Kafka cluster through the Kafka producer. Furthermore, the call center system can serialize the first traffic message through the Kafka cluster to generate a message queue. Among them, message serialization is an important link in distributed systems and message middleware, which involves converting messages from one form (such as objects, data structures, etc.) to another form (usually byte sequences) for transmission or storage in the network.

[0086] Step 704, read data from the message queue to determine the call serial number carried in the message queue, and the event generation time, event result and event code of the first traffic event associated with the call serial number.

[0087] Optionally, the call center system can subscribe to the corresponding Kafka topic from the Kafka cluster through the Kafka consumer, obtain the message queue from the Kafka cluster through the Kafka consumer, and read the data of the message queue to determine the call serial number carried in the message queue, and the event generation time, event result and event code of the first call event associated with the call serial number.

[0088] Exemplarily, after the call center system obtains the message queue from the Kafka cluster through the Kafka consumer, the Kafka consumer can deserialize the obtained message sequence to determine the call serial number carried in the message queue, and the event generation time, event result and event code of the first traffic event associated with the call serial number.

[0089] In this embodiment, the traffic messages can be serialized to ensure reliable transmission of the traffic messages, and facilitate rapid reading of event information carried by the traffic events from the converted message queue, thereby improving the efficiency of event information reading and further improving the efficiency of extracting traffic indicator data.

[0090] In one possible embodiment, Figure 8 As shown, a flow chart of generating the first type of key-value pairs is provided, which mainly includes the following steps:

[0091] Step 802: Use the event code of the first traffic event as a key for constructing a first type of key-value pair.

[0092] Optionally, in the MPC deployed in the call center system, the call center system may use the event code of the first traffic event as a key (Key) for constructing the first type of key-value pair through a Kafka consumer.

[0093] Step 804: Encapsulate the event generation time, event result and call serial number of the first traffic event into values ​​for constructing a first type of key-value pair.

[0094] Optionally, in the MPC deployed in the call center system, the call center system may encapsulate the event generation time (CURTIME), event result (result) and call serial number (CALLNO) of the first traffic event into a value (Value) for constructing a first-class key-value pair through a Kafka consumer.

[0095] For example, taking the agent queuing event in the call traffic event as an example, its event result (result) may correspond to queuing success (1) or queuing failure (0).

[0096] For example, the call center system can encapsulate the event generation time, event result and call serial number of the first call event into Msg through the Kafka consumer, and use the encapsulated Msg as the value for constructing the first type of key-value pair. Msg is a Java Bean object. In Java, a Java Bean object is a special Java class that follows a specific naming convention and is mainly used to encapsulate data.

[0097] Step 806: Generate a first type key-value pair for storing the first traffic event based on the key used to construct the first type key-value pair and the value used to construct the first type key-value pair.

[0098] Optionally, the call center system may generate a first-class key-value pair Map for storing the first traffic event based on the key used to construct the first-class key-value pair and the value used to construct the first-class key-value pair through the Kafka consumer.<EventCode,Msg> Among them, EventCode represents the event code, that is, the key used to construct the first type of key-value pair, and Msg represents the encapsulated value used to construct the first type of key-value pair.

[0099] For example, the call center system can also use Kafka consumers to map the first type of key-value pairs<EventCode,Msg> Add to the event list (EventList) associated with the call serial number, and the event list storing the first type of key-value pairs can be represented as EventList <map>.

[0100] In this embodiment, a first-class key-value pair for storing the first traffic event can be generated based on the event information carried by the first traffic event, so that the corresponding first-class key-value pair can be accurately queried according to the traffic serial number and event code, which is conducive to the precise management of traffic data.

[0101] In one embodiment, if Fig. 9 As shown, a flowchart of creating and storing an event list is provided, which mainly includes the following steps:

[0102] Step 902: Receive a traffic message and determine the call sequence number read from the traffic message.

[0103] Optionally, each time the Kafka producer in the MPC of the call center system receives a call message pushed by CAIS, the call center system can determine the call serial number read from the call message through the Kafka producer, that is, determine whether the call serial number is read for the first time.

[0104] When the call serial number is read from the received traffic message for the first time, step 904 is executed to create an event list associated with the call serial number.

[0105] Optionally, if a call request triggers a traffic event for the first time (an incoming call event is triggered when a call is just connected), CAIS will push a traffic message carrying the call serial number configured for the call request for the first time. When the call center system processes the traffic information through the Kafka architecture and generates a first-class key-value pair, the call center system can create an event list associated with the call serial number read for the first time through the Kafka consumer to store the first-class key-value pairs generated based on the traffic event associated with the call serial number.

[0106] Further, step 906 is executed to use the call serial number as a key for constructing a second type of key-value pair, and use the event list associated with the call serial number as a value for constructing the second type of key-value pair.

[0107] Optionally, the call center system can use the call serial number (CALLNO) as the key (Key) for constructing the second type of key-value pair through the Kafka consumer, and associate the call serial number with the event list (EventList <map>) as the value (Value) used to construct the second type of key-value pair.

[0108] It should be noted that if it is not the first time to read the call serial number, the process directly jumps from step 902 to step 906 .

[0109] Step 908: Generate a second type of key-value pair for storing a list of events associated with the call serial number based on the key used to construct the second type of key-value pair and the value used to construct the second type of key-value pair.

[0110] Optionally, the call center system can use a Kafka consumer to generate a second-class key-value pair based on the key (CALLNO) and the value (EventList <map>), generate a second type of key-value pair for storing a list of events associated with the call serial number.

[0111] Step 910: Store the second type of key-value pairs in a temporary cache database.

[0112] Optionally, the call center system can store the second type of key-value pairs in a temporary cache database, namely, Redis cache, through a Kafka consumer, so as to utilize the Redis cache for fast data caching and intermediate state storage.

[0113] In this embodiment, a corresponding event list can be created when a call serial number is first identified so that the traffic events under the call serial number can be subsequently stored in the event list, thereby achieving unified and centralized storage of traffic events under the same incoming call. It is also convenient for subsequent query based on the call serial number to quickly obtain the event list associated with the call serial number from the Redis cache, and accurately extract the traffic indicator data associated with the call serial number, thereby improving the accuracy and speed of extracting the traffic indicator data.

[0114] In one of the embodiments, updating the event list based on the second traffic event includes:

[0115] Based on the event information carried by the second traffic event, generating an updated first-category key-value pair for storing the second traffic event;

[0116] In the temporary cache database, based on updating the first type of key-value pairs, the event list in the second type of key-value pairs carrying the call serial number is updated.

[0117] Optionally, when the call center system receives the second traffic message (newly generated traffic message) through the Kafka producer in the MPC, the call center system can publish the second traffic message to the Kafka cluster through the Kafka producer. Further, the call center system can serialize the second traffic message through the Kafka cluster to generate a message queue corresponding to the second traffic message, so that the message queue is read from the Kafka cluster through the Kafka consumer, and the message queue is read to determine the call serial number carried in the message queue, and the event generation time, event result and event code of the first traffic event associated with the call serial number, that is, determine the event information carried by the second traffic event. Further, the call center system can generate an updated first-class key-value pair for storing the second traffic event based on the event information carried by the second traffic event through the Kafka cluster, and transmit the updated first-class key-value pair to the temporary cache database (Redis cache), so that the call center system can update the event list in the second-class key-value pair carrying the call serial number in the temporary cache database based on the updated first-class key-value pair.

[0118] In this embodiment, when a second traffic event associated with a call serial number is received, the event list in the temporary cache database can be accurately updated based on the call serial number, thereby ensuring the integrity and accuracy of the data in the event list, which is beneficial for the subsequent accurate extraction of traffic indicator data associated with the call serial number from the target event list associated with the call serial number based on the call serial number, and further beneficial for the service provider or regulator to effectively evaluate the quality and efficiency of the hotline service of the customer call represented by the call serial number.

[0119] In a detailed embodiment, Fig.10 As shown, a flow chart of another method for processing traffic data is provided, which mainly includes the following steps:

[0120] Step 1002, while the traffic platform is started, registering a message receiving request; the message receiving request is used to receive traffic messages during the operation of the traffic platform;

[0121] Step 1004, configuring a call serial number for the received incoming call request, and monitoring the traffic events triggered by the incoming call request;

[0122] Step 1006, determining the event type of the triggered traffic event, and determining the event code of the triggered traffic event according to the event type and a preset event type code table;

[0123] Step 1008, obtaining a message packet generated based on the triggered traffic event, combining the event code and the message packet, and generating a traffic message of the triggered traffic event; the message packet carries a call serial number configured for the incoming call request;

[0124] Step 1010, serializing the received first traffic message to generate a message queue;

[0125] Step 1012, reading the call serial number carried in the message queue, and the event generation time, event result and event code of the first traffic event associated with the call serial number;

[0126] If it is not the first time to read the call serial number, jump to step 1018; if it is the first time to read the call serial number, execute step 1014 to create an event list associated with the call serial number;

[0127] Step 1016, using the call serial number as a key and the event list associated with the call serial number as a value, generating a second type of key-value pair and storing it in the temporary cache database;

[0128] Step 1018, using the event code of the first traffic event as a key, and encapsulating the event generation time, event result and call sequence number of the first traffic event as values, to generate a first type of key-value pair;

[0129] Step 1020, in the temporary cache database, adding the first type of key-value pair to the event list of the second type of key-value pair associated with the call serial number;

[0130] When the received second traffic message does not carry the second traffic event associated with the call serial number, step 1022 is executed to not update the event list in the second type of key-value pairs carrying the call serial number;

[0131] When the received second traffic message carries a second traffic event associated with the call serial number, executing step 1024, generating and updating the first type of key-value pair based on the event information carried by the second traffic event;

[0132] Step 1026, in the temporary cache database, based on updating the first type of key-value pairs, update the event list in the second type of key-value pairs carrying the call serial number;

[0133] Step 1028, when the received traffic message carries the end traffic event associated with the call serial number indicating the end of the call, stop updating and obtain the target event list;

[0134] Execute step 1030 to extract the traffic indicator data from the target event list and push it to the traffic platform.

[0135] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0136] Based on the same inventive concept, the embodiment of the present application also provides a traffic data processing device for implementing the traffic data processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more traffic data processing device embodiments provided below can refer to the limitations of the traffic data processing method above, and will not be repeated here.

[0137] In an exemplary embodiment, Fig.11 As shown, a traffic data processing device is provided, including: a registration request module 1102, a traffic message reading module 1104, a traffic event storage module 1106, an event list updating module 1108 and an indicator data pushing module 1110, wherein:

[0138] The request registration module is used to register a message receiving request when the start of the traffic platform is detected; the message receiving request is used to receive traffic messages during the operation of the traffic platform;

[0139] A traffic message reading module, configured to read, when receiving a first traffic message, a call serial number and event information carried by a first traffic event associated with the call serial number from the first traffic message;

[0140] A traffic event storage module, used to generate a first type of key-value pair for storing the first traffic event based on the event information carried by the first traffic event, and add the first type of key-value pair to an event list associated with the call serial number;

[0141] An event list updating module is used to update the event list based on the second traffic event when a second traffic message is received and the second traffic message carries a second traffic event associated with a call serial number, until the received traffic message carries an end traffic event associated with the call serial number representing the end of the call, stop updating and obtain a target event list;

[0142] The indicator data push module is used to extract the traffic indicator data from the target event list and push it to the traffic platform.

[0143] The above-mentioned traffic data processing device, when detecting that the traffic platform is started, registers a message receiving request for receiving traffic messages during the operation of the traffic platform, that is, only one message receiving request needs to be registered when the traffic platform is started, and the traffic messages can be received during the operation of the traffic platform, without the need to frequently register the request, which is conducive to improving the efficiency of receiving traffic messages, thereby facilitating the timely extraction of traffic indicator data. Further, the call serial number and the event information of the first traffic event associated with the call serial number are read from the received first traffic message, and a first-class key-value pair for storing the first traffic event is generated based on the event information, and the first-class key-value pair is added to the event list associated with the call serial number, that is, the first-class key-value pairs (traffic events) belonging to the same call serial number can be centrally stored in the event list associated with the corresponding call serial number, so that the traffic indicator data associated with the corresponding call serial number can be comprehensively and accurately extracted based on the event list. When the received second traffic message carries the second traffic event associated with the call serial number, the event list is updated based on the second traffic event, that is, the event list can be accurately updated based on the call serial number to ensure the integrity and accuracy of the data in the event list, until the received traffic message carries the end traffic event associated with the call serial number that represents the end of the call, the update is stopped and the target event list is obtained, and the traffic indicator data is extracted from the target event list and pushed to the traffic platform. During the whole process, the traffic events associated with the call serial number can be stored in the event list associated with the call serial number in a timely, centralized and comprehensive manner, and the event list can be updated in a timely and accurate manner, thereby ensuring that the traffic indicator data can be extracted in a timely and accurate manner from the obtained target event list.

[0144] In one of the embodiments, the above-mentioned traffic data processing device also includes: a serial number configuration module, which is used to configure a call serial number for the incoming request when an incoming request is received, and monitor the traffic event triggered based on the incoming request; an event code determination module, which is used to determine the event type of the triggered traffic event, and determine the event code of the triggered traffic event according to the event type and a preset event type code table; a traffic message generation module, which is used to obtain a message package generated based on the triggered traffic event, and combine the event code and the message package to generate a traffic message of the triggered traffic event; the message package carries the call serial number configured for the incoming request.

[0145] In one of the embodiments, the traffic message reading module includes: a message queue generating unit, which is used to serialize the first traffic message when a first traffic message is received to generate a message queue; a message queue reading unit, which is used to read data from the message queue, determine the call serial number carried in the message queue, and the event generation time, event result and event code of the first traffic event associated with the call serial number.

[0146] In one of the embodiments, the traffic event storage module includes: a first-class key determination unit, used to use the event code of the first traffic event as a key for constructing a first-class key-value pair; a first-class value determination unit, used to encapsulate the event generation time, event result and call serial number of the first traffic event as a value for constructing a first-class key-value pair; a first-class key-value pair generation unit, used to generate a first-class key-value pair for storing the first traffic event based on the key for constructing the first-class key-value pair and the value for constructing the first-class key-value pair.

[0147] In one of the embodiments, the above-mentioned traffic data processing device also includes: an event list creation module, which is used to create an event list associated with the call serial number when the call serial number is read out from the received traffic message for the first time; a second-class key value determination module, which is used to use the call serial number as a key for constructing a second-class key-value pair, and use the event list associated with the call serial number as a value for constructing the second-class key-value pair; a second-class key-value pair generation module, which is used to generate a second-class key-value pair for storing the event list associated with the call serial number based on the key for constructing the second-class key-value pair and the value for constructing the second-class key-value pair; an event list storage module, which is used to store the second-class key-value pair in a temporary cache database.

[0148] In one of the embodiments, the event list update module includes: an update key-value pair generation unit, which is used to generate an updated first-class key-value pair for storing the second traffic event based on the event information carried by the second traffic event; an event list update unit, which is used to update the event list in the second-class key-value pair carrying the call serial number in the temporary cache database based on the updated first-class key-value pair.

[0149] Each module in the above-mentioned traffic data processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.

[0150] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Fig.12 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store traffic data processing data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a traffic data processing method is implemented.

[0151] Those skilled in the art will understand that Fig.12 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0152] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0153] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0154] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0155] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0156] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0157] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.< / map> < / map> < / map>

Claims

1. A method for processing traffic data, characterized in that: The method comprises: When the traffic platform is detected to be started, a message receiving request is registered; the message receiving request is used to receive traffic messages during the operation of the traffic platform; When a first traffic message is received, reading a call serial number and event information carried by a first traffic event associated with the call serial number from the first traffic message; generating, based on the event information carried by the first traffic event, a first type key-value pair for storing the first traffic event, and adding the first type key-value pair to an event list associated with the call serial number; When a second traffic message is received, and the second traffic message carries a second traffic event associated with the call serial number, updating the event list based on the second traffic event until a traffic message is received that carries an end traffic event associated with the call serial number indicating the end of the call, stopping the updating and obtaining the target event list; The traffic indicator data extracted from the target event list is pushed to the traffic platform.

2. The method according to claim 1, characterized in that The traffic message is generated in the following manner: When an incoming call request is received, a call serial number is configured for the incoming call request, and a traffic event triggered based on the incoming call request is monitored; Determining the event type of the triggered traffic event, and determining the event code of the triggered traffic event according to the event type and a preset event type code table; Acquire a message packet generated based on the triggered traffic event, and combine the event code and the message packet to generate a traffic message of the triggered traffic event; The message packet carries the call serial number configured for the incoming call request.

3. The method according to claim 1, characterized in that The step of: upon receiving the first traffic message, reading from the first traffic message a call serial number and event information carried by a first traffic event associated with the call serial number, including: When a first traffic message is received, serializing the first traffic message to generate a message queue; Data is read from the message queue to determine the call serial number carried in the message queue, and the event generation time, event result, and event code of the first traffic event associated with the call serial number.

4. The method according to claim 1, wherein The generating, based on the event information carried by the first traffic event, a first type of key-value pair for storing the first traffic event includes: Using the event code of the first traffic event as a key for constructing a first type of key-value pair; Encapsulating the event generation time, event result, and call serial number of the first traffic event into values ​​for constructing a first type of key-value pair; Based on the key used to construct the first type key-value pair and the value used to construct the first type key-value pair, a first type key-value pair for storing the first traffic event is generated.

5. The method according to claim 1, characterized in that The method further comprises: When the call serial number is read from the received traffic message for the first time, an event list associated with the call serial number is created; Using the call serial number as a key for constructing a second type of key-value pair, and using the event list associated with the call serial number as a value for constructing the second type of key-value pair; Based on the key for constructing the second type of key-value pair and the value for constructing the second type of key-value pair, generating a second type of key-value pair for storing a list of events associated with the call serial number; The second type of key-value pairs are stored in a temporary cache database.

6. The method according to claim 1, characterized in that The updating of the event list based on the second traffic event includes: generating, based on the event information carried by the second traffic event, an updated first-category key-value pair for storing the second traffic event; In the temporary cache database, based on the updated first-type key-value pairs, the event list in the second-type key-value pairs carrying the call serial number is updated.

7. A traffic data processing device, characterized in that: The device comprises: A registration request module is used to register a message receiving request when detecting that the traffic platform is started; the message receiving request is used to receive traffic messages during the operation of the traffic platform; a traffic message reading module configured to, upon receiving a first traffic message, read from the first traffic message a call serial number and event information carried by a first traffic event associated with the call serial number; a traffic event storage module, configured to generate a first type key-value pair for storing the first traffic event based on the event information carried by the first traffic event, and add the first type key-value pair to the event list associated with the call serial number; an event list updating module configured to, upon receiving a second traffic message carrying a second traffic event associated with the call serial number, update the event list based on the second traffic event until the received traffic message carries an end traffic event associated with the call serial number indicating the end of the call, stop updating, and obtain a target event list; The indicator data pushing module is used to push the traffic indicator data extracted from the target event list to the traffic platform.

8. The device according to claim 7, characterized in that The device further comprises: A serial number configuration module is used to configure a call serial number for an incoming call request upon receiving the incoming call request, and monitor the traffic events triggered by the incoming call request; An event code determination module, configured to determine the event type of the triggered traffic event, and determine the event code of the triggered traffic event according to the event type and a preset event type code table; A traffic message generation module is used to obtain a message package generated based on the triggered traffic event, and combine the event code and the message package to generate a traffic message of the triggered traffic event; the message package carries a call serial number configured for the incoming request.

9. The device according to claim 7, characterized in that The traffic message reading module includes: a message queue generating unit, configured to, upon receiving a first traffic message, perform serialization processing on the first traffic message and generate a message queue; The message queue reading unit is used to read data from the message queue to determine the call serial number carried in the message queue and the event generation time, event result and event code of the first traffic event associated with the call serial number.

10. The device according to claim 7, characterized in that The traffic event storage module includes: a first-type key determining unit, configured to use the event code of the first traffic event as a key for constructing a first-type key-value pair; A first-class value determining unit, configured to encapsulate the event generation time, event result, and call serial number of the first traffic event into a value for constructing a first-class key-value pair; The first type key-value pair generating unit is configured to generate a first type key-value pair for storing the first traffic event based on the key for constructing the first type key-value pair and the value for constructing the first type key-value pair.

11. The device according to claim 7, characterized in that The device further comprises: An event list creation module, configured to create an event list associated with the call serial number when the call serial number is read from the received traffic message for the first time; a second-type key-value determination module, configured to use the call serial number as a key for constructing a second-type key-value pair, and use a list of events associated with the call serial number as a value for constructing the second-type key-value pair; A second-type key-value pair generating module, configured to generate a second-type key-value pair for storing a list of events associated with the call serial number based on the key for constructing the second-type key-value pair and the value for constructing the second-type key-value pair; The event list storage module is used to store the second type of key-value pairs in a temporary cache database.

12. The device according to claim 7, characterized in that The event list updating module includes: an updated key-value pair generating unit, configured to generate an updated first-category key-value pair for storing the second traffic event based on the event information carried by the second traffic event; The event list updating unit is configured to update the event list in the second type key-value pair carrying the call serial number in the temporary cache database based on the updated first type key-value pair.

13. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.