WO2008092347A1 - Method, apparatus and system for distributing charging list automatically - Google Patents
Method, apparatus and system for distributing charging list automatically Download PDFInfo
- Publication number
- WO2008092347A1 WO2008092347A1 PCT/CN2007/070869 CN2007070869W WO2008092347A1 WO 2008092347 A1 WO2008092347 A1 WO 2008092347A1 CN 2007070869 W CN2007070869 W CN 2007070869W WO 2008092347 A1 WO2008092347 A1 WO 2008092347A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- distribution
- parameter
- module
- data storage
- destination
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 74
- 238000013500 data storage Methods 0.000 claims description 123
- 230000005540 biological transmission Effects 0.000 claims description 105
- 238000012545 processing Methods 0.000 claims description 47
- 238000010586 diagram Methods 0.000 description 6
- 238000005315 distribution function Methods 0.000 description 4
- 238000012423 maintenance Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000007781 pre-processing Methods 0.000 description 1
- 238000010187 selection method Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M15/00—Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
Definitions
- the present invention relates to the field of billing, and in particular, to a method, device and system for realizing automatic bill distribution. Background of the invention
- the telecommunication operator charges the telecommunication service for the user, and generally uses the user's service usage record as the basis for the charging.
- These service usage records are the CDRs.
- the billing system is distributed by multiple hosts. For example, the billing host performs pre-processing of bills and one-time pricing.
- the billing host dialog box performs secondary pricing, billing, and billing discounts. List into the library and so on.
- a CDR enters a host in the accounting system during the process.
- the CDR can be distributed to different storage directories of the host, and can also be distributed to other hosts of the charging system through the host.
- the storage mode of the bills in each host includes database storage and file format storage, where the file format storage corresponds to different file storage directories.
- a program having a distribution function is stored on each host, and the program is written by encoding for different bill distribution rules.
- the elements of the in-process bill are analyzed to determine the The distribution destination and storage method of the in-process CDR can be run only after the code is compiled and online.
- the program with the distribution function stored on the host is first run, and then the result of the program is run, and the queue of the in-process bill is transmitted by the file transfer protocol (FTP) through the script, or by using the FTP manually. Distribute to the specified destination.
- FTP file transfer protocol
- the code When the distribution destination host of the CDR changes, or the storage mode changes, or when the storage directory in the same host changes, the code must be rewritten for the CDR, and the code is recompiled and put online, so that the new code can be compiled.
- the written program with the distribution function runs, and then distributes the CDRs to the changed host through the running of the program, or stores the CDRs in a new storage manner, or stores the CDRs in different directories of the same host.
- an operator launches a new service or adds a new distribution method it must write the code and recompile the code.
- the process of compiling and compiling the code is complex and risky. Therefore, in the prior art, the code is rewritten, and the newly written code is compiled and launched to realize the distribution function.
- the program runs, thus implementing the way the bills are distributed, and cannot adapt to the variability and automatic distribution of bill distribution. Summary of the invention
- the embodiment of the invention provides a method for realizing automatic distribution of bills, which can adapt to the variability of bill distribution and realize automatic distribution of bills.
- the embodiment of the invention provides an apparatus for realizing automatic distribution of bills, which can adapt to the variability of bill distribution and realize automatic distribution of bills.
- the embodiment of the invention provides a system for realizing automatic distribution of bills, which can realize automatic distribution of bills.
- An embodiment of the present invention provides a method for realizing automatic bill distribution.
- the method includes: selecting a bill that conforms to a distribution condition, and distributing the bill according to a correspondence between a distribution parameter to which the distribution condition belongs and a distribution destination.
- An embodiment of the present invention provides an apparatus for automatically realizing bill distribution, where the apparatus includes a foreground configuration module and a distribution processing module;
- the foreground configuration module is configured to configure a distribution parameter with a distribution condition for the distribution processing module, and set a correspondence between the distribution parameter and the distribution destination;
- the distribution processing module is configured to store a distribution parameter with a distribution condition configured by the foreground configuration module and a correspondence between the distribution parameter and the distribution destination, and select a distribution condition that meets the distribution condition.
- the CDR is distributed according to the correspondence between the distribution parameters to which the distribution condition belongs and the distribution destination.
- the embodiment of the invention provides a system for realizing automatic distribution of bills, comprising at least one host, the host includes a host transmission module and a distribution processing module, and the distribution processing module includes a transmission channel parameter module;
- the host transmission module is configured to read, by using a transmission channel parameter provided by the transmission channel parameter module, a file storing the host CDR from another host;
- the transmission channel parameter module in the distribution processing module is configured to provide the stored transmission channel parameter to the host transmission module for use.
- the method for implementing automatic bill distribution is provided by the embodiment of the present invention. Since the distribution parameters can be dynamically configured according to specific needs, the configuration process can be implemented by the foreground, and the dialog single distribution process is transparent, so Adapt to the variability of bill distribution. Since each time before the distribution, the CDRs are selected for the distribution parameters according to the distribution conditions in the distribution parameters. After the selection is completed, the distribution parameters are distributed according to the distribution parameters of the distribution parameters and the distribution destinations, so that the automatic distribution of the CDRs can be realized.
- the apparatus for realizing the automatic distribution of bills provided by the embodiment of the present invention can be adapted to the specific needs of the front-end configuration module to be dynamically configured according to specific needs, and is transparent in the dialog distribution process, so that the variability of bill distribution can be adapted. Since each distribution of the distribution module is based on the distribution conditions of the distribution parameters in the distribution module, the CDRs are selected for the distribution parameters. After the selection is completed, the distribution parameters are distributed according to the correspondence between the distribution parameters and the distribution destination, so that the CDR can be realized. Automatic distribution.
- the system for realizing the automatic distribution of bills provided by the embodiment of the present invention includes at least one host, the host includes a host transmission module and a distribution processing module, and the distribution processing module includes a transmission channel parameter module, and the host transmission module in the host follows the transmission channel parameter.
- the transmission channel parameters provided by the module read the files storing the host CDRs from other hosts, and realize the inter-host CDRs. Automatic distribution. BRIEF DESCRIPTION OF THE DRAWINGS
- FIG. 1 is a schematic structural diagram of an apparatus for realizing automatic bill distribution according to an embodiment of the present invention
- FIG. 2 is a schematic diagram showing a structure of a distribution parameter in an apparatus for realizing automatic bill distribution according to an embodiment of the present invention
- FIG. 3 is a schematic structural diagram of a system for implementing automatic bill distribution according to an embodiment of the present invention
- FIG. 4 is a flow chart of a preferred embodiment of a method for automatically realizing bill distribution according to an embodiment of the present invention
- FIG. 5 is a flow chart of the method for implementing automatic bill distribution according to the embodiment of the present invention. Mode for carrying out the invention
- the embodiment of the present invention provides a method for realizing automatic bill distribution, which selects a bill that conforms to the distribution condition, and distributes the bill according to the relationship between the distribution parameter to which the distribution condition belongs and the distribution destination.
- the embodiment of the invention provides an apparatus for realizing automatic distribution of bills, and the apparatus comprises a distribution processing module and a foreground configuration module.
- the distribution processing module may further include: a distribution module, a data storage parameter module, a rule engine, and a transmission channel parameter module.
- the embodiment of the invention provides a system for realizing automatic distribution of bills, the system comprising at least one host, the host includes a host transmission module and a distribution processing module, and the distribution processing module includes a transmission channel parameter module.
- FIG. 1 is a schematic structural diagram of an apparatus for realizing automatic bill distribution according to an embodiment of the present invention.
- the apparatus is a host, and includes: a distribution processing module 102 and a foreground configuration module 109.
- the distribution processing module 102 may further include: a rules engine 104, a distribution module 105, a transmission channel parameter module 106, and a data storage parameter module 108.
- the first transmission module 103 and the second transmission module 110 may be further included.
- the file storage directory of the bill distribution is in the queue file 111.
- the foreground configuration module 109 is configured to configure a distribution condition string or a distribution condition set for the rule engine 104, configure distribution parameters for the distribution module 105, configure data storage parameters for the data storage parameter module 108, and configure transmission channel parameters for the transmission channel parameter module 106. .
- the foreground configuration module 109 the data storage parameters configured for the data storage parameter module 108, includes a data storage name, a file name rule, a host identification, and a file storage directory.
- the host identifier is an identifier configured for each host in advance, and corresponds to the IP address of the host, and can be used as a flag for identifying different hosts.
- the data storage name is used to distinguish different data storage parameters, that is, each data storage name corresponds to the destination host identifier belonging to the data storage name, and the file storage directory and the file storage directory corresponding to the destination host corresponding to the host identifier. Name rules.
- the foreground configuration module 109 the transmission channel parameter configured for the transmission channel parameter module 106, includes the host identifier of the host and other hosts, the IP address corresponding to the host identifier, and the IP address corresponding to the relationship between the host and the data storage parameter.
- the relationship between the host address and the data storage parameter of the IP address refers to the file name specification in the data storage parameter included in the host corresponding to an IP address.
- the foreground configuration module 109 the distribution parameters configured for the distribution module 105, including the distribution items Name, destination type, distribution type, priority, and distribution criteria.
- FIG. 2 is a schematic structural diagram of distribution parameters in an apparatus for realizing automatic bill distribution according to an embodiment of the present invention.
- the distribution module 105 is configured with a number of component delivery parameters, and the distribution module 105 can be configured with a different number of distribution parameters as needed. It is also possible to configure a nested distribution module in the distribution module 105 as a subordinate distribution module of the distribution module 105 as needed.
- Each of the component sending parameters in the distribution module 105 includes: a distribution destination name, a destination type, a distribution type, a priority, and a distribution condition.
- the distribution destination name includes a database table name or a data storage name, where each database table name corresponds to a database that can store bills; the destination type includes a database table, a data storage, or a subordinate distribution module, and the destination type is a database table representation
- the CDR is stored in the database, and the destination type is data storage, which means that the CDR is distributed to the file storage in the data storage parameter directory according to the file format, and the destination type is the lower-level distribution module, which first processes the nested lower-level distribution module.
- the distribution type includes moving or copying, and the mobile indicating CDRs are distributed according to the parameters of the component distribution, and are not distributed according to other component sending parameters.
- the copy indicates that the CDRs are distributed according to the parameters of the component distribution, and the CDRs are copied first, and the copied CDRs are distributed according to other component sending parameters.
- the priority includes the priority processing order of the parameters of each component in the distribution module, that is, the highest priority.
- a set of distribution parameters first And so on; in accordance with the distribution condition includes a distribution condition string of grammar rules, expression conditions may be a single conversation to judge an attribute or set of settings for the distribution conditions.
- Each component in the subordinate distribution module has the same parameters as the distribution parameter in the distribution module 105. According to the actual needs, there may be more than one distribution module. Each distribution module is configured with an identifier as a flag for identifying different distribution modules. Each distribution module may also be nested with a lower-level distribution module. The structure of the distribution parameters is the same as described above. . In this embodiment, it is assumed that there is only one distribution module 105 in the distribution processing module 102, and the distribution module 105 has no nested subordinate distribution modules. In addition to the structure of the distribution parameters in the distribution module, the data storage parameters provided by the data storage parameter module 108 and the transmission channel parameters provided by the transmission channel parameter module 106 are shown in FIG.
- the data storage name in the distribution destination name is the same as the data storage name in the data storage parameter, that is, according to the data storage name in the distribution destination name, the data storage parameter corresponding to the same data storage name can be found from the data storage parameter.
- the host identifier in the data storage parameter corresponds to the host identifier IP address in the transmission channel parameter, that is, the host identifier in the data storage parameter, and the IP address corresponding to the host identifier can be found in the transmission channel parameter, thereby finding the host and the data. Store the relationship between parameters.
- the foreground configuration module 109 configures the distribution engine 104 with a distribution condition string or a distribution condition set, which is the same as the distribution condition string or the distribution condition set included in the distribution condition configured in the distribution module 105.
- the distribution condition string or distribution condition set must be compiled and executed, and these distribution condition strings or distribution sets can be used by the rules engine 104.
- the rules engine 104 compiles and executes the configured distribution condition string or distribution condition set, and after the compilation and execution ends, a distribution condition string or a distribution condition set can be used.
- the rule engine 104 is in the running state, and the bill element is matched with the distribution condition string or the distribution condition set, and the successfully matched bill is used as the distribution condition string or the distribution condition set to which the matching succeeds. Distribute the bills for parameter selection.
- the data storage parameter configured by the foreground configuration module 109 for the data storage parameter module 108, the transmission channel parameter configured for the transmission channel parameter module 106, the distribution parameter configured for the distribution module 105, and the distribution condition string configured for the rules engine 104 or
- the collection of conditional conditions together constitutes the basis for distributing the CDRs in the embodiment of the present invention.
- the rules engine 104 is configured to compile and execute the distribution condition string or distribution set configured by the foreground configuration module 109. After the compilation and execution ends, the rules engine 104 can use the configured distribution condition string or distribution condition set. After the bill distribution process starts, the rule engine 104 transmits the elements of the bill in the in-process billing queue transmitted by the first transmission module 103. Matching the distribution condition string or the distribution condition set, the CDR that is successfully matched is selected as the CDR of the distribution condition string to which the matching is successful or the distribution parameter to which the distribution condition set belongs, and the selected CDR is provided to the distribution module 105.
- the data storage parameter module 108 is configured to provide the data storage parameter configured by the foreground configuration module 109 to the distribution module 105 for use.
- the transmission channel parameter module 106 is configured to provide the transmission channel parameter configured by the foreground configuration module 109 to the distribution module 105 for use.
- the distribution module 105 is configured to use the distribution parameters configured by the foreground configuration module 109, the data storage parameters provided by the data storage parameter module 108, and the transmission channel parameters provided by the transmission channel parameter module 106, and the CDRs provided by the rules engine 104, according to the CDR
- the distribution parameters to which the successful distribution condition string or the distribution condition set belongs are distributed to the second transmission module 110.
- the distribution module 105 receives the CDR provided by the rule engine 104, and when the distribution condition string successfully matched with the CDR or the distribution destination name in the distribution parameter to which the distribution condition set belongs is the database table name, the distribution module 105 The bill is directly distributed to the database storage, and when the distribution condition string that matches the success of the bill or the distribution destination name in the distribution parameter to which the distribution condition set belongs is the data storage name, the data provided by the distribution module 105 in the data storage parameter module 108 Among the storage parameters, the same data storage parameter as the data storage name in the distribution destination name is found, according to the host identifier, the file storage directory, and the file name rule corresponding to the data storage name, from the transmission channel parameters provided by the transmission channel parameter module 106. The host IP address corresponding to the host ID is found, and the bill distribution is performed according to the relationship between the host and the data storage parameter corresponding to the IP address.
- the first transmission module 103 is configured to transmit the in-process CDR queue to the rule engine 104.
- the second transmission module 110 is configured to transmit the CDRs distributed by the distribution module 105 to the queue file 111.
- Queue file 111 including storing the file name rules in accordance with the data storage parameters of the host a file storage directory, and a special directory that conforms to the file name rules in other host data storage parameters, is used to store the CDRs transmitted by the second transmission module 110 that conform to the host data storage parameters to the file name rules in accordance with the host data storage parameters.
- a file in the file storage directory stores files that do not conform to the data storage parameters of the host and are stored in a special directory.
- the distribution processing module 102 may further include a plurality of distribution modules, each of which has an identifier as a flag for identifying each distribution module, and the distribution parameter structure in each distribution module is the same as that shown in FIG. .
- the subordinate distribution module can also be nested in each distribution module as needed.
- the distribution parameters in the distribution module 105 can be dynamically configured by the foreground configuration module 109 according to specific needs, and the dialog distribution process is transparent, so that the distribution can be adapted to the bill distribution. Variability. Since the distribution module 105 selects the CDRs for the distribution parameters according to the distribution conditions of the distribution parameters before the distribution, the distribution is performed according to the correspondence between the distribution parameters and the distribution destination, so that the automatic CDRs can be realized. distribution. This eliminates the need to modify the code, can be easily implemented, and quickly adapt to changes in distribution.
- the host is used as a preferred embodiment of the device, and other devices having the same function may also be used.
- FIG. 3 is a schematic structural diagram of a system for realizing automatic bill distribution according to an embodiment of the present invention.
- the system includes a host 301, a host 311, and a host 321.
- the host includes a host transmission module and a distribution processing module, and a distribution processing module.
- the transmission channel parameter module is included, and the host may further include a foreground configuration module, a first transmission module, and a second transmission module.
- the distribution processing module may further include a distribution module, a rule engine, and a data storage parameter module.
- a single automatic distribution device can be used as a preferred embodiment of the above host.
- the file storage directory of the CDR distribution in the host is in the queue file. Bills in these three The distribution between the hosts is performed. Since the CDRs stored for the purpose of the database are directly distributed to the specified database, the CDR distribution between the hosts described herein is only for the CDRs whose destination type is data storage.
- the host transmission module 302 in the host 301 periodically connects the host 311 and the host 321, the queue file 313 in the host 311, and the queue file 323 in the host 321 according to the transmission channel parameters provided by the transmission channel parameter module in the distribution processing module.
- the file conforming to the data storage parameter stored in the data storage parameter module of the host 301 is read, and the read file is sent to the queue file 303 according to the transmission channel parameter provided by the transmission channel parameter module.
- the host transmission module 312 in the host 311 periodically connects the host 301 and the host 321, the queue file 303 in the host 301, and the queue file 323 in the host 321 according to the transmission channel parameters provided by the transmission channel parameter module in the distribution processing module.
- the file matching the data storage parameter stored in the data storage parameter module in the host 311 is read, and the read file is sent to the queue file 313 according to the transmission channel parameter provided by the transmission channel parameter module.
- the host transmission module 322 in the host 321 periodically connects the host 311 and the host 301, the queue file 313 from the host 311, and the queue file 303 in the host 301 according to the transmission channel parameters provided by the transmission channel parameter module in the distribution processing module.
- the file conforming to the data storage parameter stored in the data storage parameter module of the host 321 is read, and the read file is sent to the queue file 323 according to the transmission channel parameter provided by the transmission channel parameter module.
- the time interval between the host transmission module of each host and other hosts is set according to actual needs.
- the system for realizing the automatic distribution of bills provided by the embodiment of the present invention defines the relationship between the host and the data storage parameter of each IP address in the transmission channel parameter of the transmission channel parameter module, and the host transmission module utilizes the transmission channel. Transmission channel parameters provided by the parameter module Number, Timing connection to other hosts in the system, reading files matching the data storage parameters of the host from other hosts, realizing the automatic distribution of CDRs between system hosts.
- the system for realizing the automatic distribution of the bills provided by the embodiment of the present invention may include a host with a number different from three, and details are not described herein again.
- FIG. 4 is a flowchart of a preferred embodiment of a method for automatically realizing bill distribution according to an embodiment of the present invention.
- a distribution parameter having a distribution condition is set in advance, and a correspondence between a distribution parameter and a distribution destination is set, and the setting process can be adopted.
- the front desk is implemented, and the process also includes the following steps:
- Step 401 Select a bill that meets the distribution criteria.
- the CDRs that meet the distribution conditions are selected according to the distribution conditions in the distribution parameters set in advance before the flow starts.
- the distribution condition can be a distribution condition string or a distribution condition collection.
- the specific selection method may be: compiling and executing the configured distribution condition string or the distribution condition set, and using the compiled conditional string or the distribution condition set to match the CDR element, and matching the successfully CDR as the compliance distribution Conditional bills. If the pre-set distribution parameters include priorities, the CDRs that meet the distribution conditions in each component can be selected in turn according to the priority of the distribution parameters.
- Step 402 Distribute the selected bill according to the correspondence between the distribution parameter to which the distribution condition belongs and the distribution destination.
- the CDRs that match the distribution conditions selected in step 401 are distributed according to the correspondence between the distribution parameters to which the distribution conditions are set and the distribution destination.
- the preferred embodiment of the method for automatically realizing the automatic distribution of bills provided by the embodiment of the present invention, because the distribution parameters can be dynamically configured according to specific needs, the configuration process can be implemented by the foreground, and the dialog distribution process is transparent, so it can be adapted.
- the variability of bill distribution Since each time before the distribution, the CDRs that meet the distribution conditions in the distribution parameters are selected, and after the selection is completed, the distribution parameters are distributed according to the distribution parameters of the distribution parameters and the distribution destinations, so that the automatic distribution of the CDRs can be realized. There is no need to write and modify the code, it is easy to implement and can adapt to changes in distribution.
- FIG. 5 is a flowchart of a method for implementing automatic ticket distribution according to an embodiment of the present invention. The process includes the following steps:
- Step 501 Configure a distribution parameter, a data storage parameter, a transmission channel parameter, and a distribution condition string or a distribution condition set through a foreground configuration module.
- the distribution parameter in the distribution module is configured by the foreground configuration module, and the configured distribution parameter structure is the same as that shown in FIG. 2;
- the data storage parameter in the data storage parameter module is configured by the foreground configuration module, including the data storage name and file. Name rules, host IDs, and file storage directories; configure the transmission channel parameters in the transmission channel parameter module through the foreground configuration module, including the host ID of each host, the IP address corresponding to the host ID, and the relationship between the host and the data storage parameters corresponding to the IP address.
- the IP address corresponds to the relationship between the host and the data storage parameter, and refers to the file name rule in the data storage parameter included in the host corresponding to the IP address, and the storage directory of the file having the file name rule in the host; Configure the distribution condition string or distribution criteria collection in the module configuration rules engine.
- Step 502 The rule engine uses the configured distribution condition string or the distribution condition set to determine whether the bill conforms to the distribution condition. If the distribution condition is met, the step 504 is performed, and if the distribution condition is not met, step 503 is performed.
- the distribution condition string or the distribution condition set configured in the rule engine is the same as the distribution condition string or the distribution condition set included in the distribution condition of the distribution parameter configured by the foreground configuration module to the distribution module, and is preferentially distributed in the distribution module.
- the highest level of distribution parameters For example, the rule engine can use the distribution condition string or the distribution condition set after completing the compilation and execution of the distribution condition string or the distribution condition set. After the CDR process starts, the distribution parameter with the highest priority is used.
- step 504 is continued, if the matching is unsuccessful Go to step 503.
- Step 503 Determine whether the bill conforms to the distribution condition of other distribution parameters.
- Step 504 is directly executed through this step.
- Step 504 The rule engine supplies the successfully matched bill to the distribution module, and the distribution module determines the destination type in the distribution parameter. If it is the database storage execution step 505, if it is the data storage execution step 506.
- the rule engine will provide a CDR that successfully matches the distribution condition string or the distribution condition set in the set of distribution parameters with the highest priority.
- the distribution module processes the CDR according to the distribution parameter with the highest priority. If the destination type in the distribution parameter is a database, proceed to step 505; if the destination type in the distribution parameter is a data store, then step 506 is performed.
- Step 505 The distribution module distributes the bill to the database defined by the distribution destination name.
- the distribution module will directly distribute the CDR to the database according to the database table name defined in the distribution destination name of the distribution parameter, if the priority is the highest. If the destination type of the distribution parameter is data storage, the step is not performed, and step 506 is directly executed.
- Step 506 The distribution module finds the same data storage parameter as the data storage name defined in the distribution destination name in the data storage parameter provided by the data storage parameter module.
- the destination type of the distribution parameter is data storage
- the data storage name is defined in the distribution destination name.
- the distribution module can find the same data storage name in the data storage parameter provided by the data storage parameter module through the data storage name. Data storage parameters.
- Step 507 The distribution module finds an IP address corresponding to the host identifier from the transmission channel parameter provided by the transmission channel parameter module according to the host identifier in the data storage parameter.
- the transmission channel parameter provided by the transmission channel parameter module defines the host identifier, the IP address corresponding to the host identifier, the data storage parameter included in the host corresponding to the IP address, and the data storage parameter file name corresponding to the host corresponding to the IP address.
- the rule file is in the file storage directory in the host.
- the distribution module can find the IP address corresponding to the host identifier from the transmission channel parameter according to the host identifier in the data storage parameter.
- Step 508 The distribution module determines the IP address corresponding to the host identifier. If the IP address corresponding to the host identifier is the host, go to step 509. If the IP address corresponding to the host ID is another host, go to step 510.
- the distribution module determines the IP address corresponding to the host identifier found in step 507, and the IP address may correspond to the host or may correspond to other hosts. If the IP address corresponds to the host, step 509 is performed. If the IP address corresponds to another host, step 510 is performed.
- Step 509 The distribution module distributes the CDRs to the host queue file, and the data stores the files in the parameter directory.
- the distribution module stores the files in the directory corresponding to the data storage parameter file name rule in the CDR list host file according to the transmission channel parameter provided by the transmission channel parameter module.
- Step 510 The distribution module distributes the CDRs to files in a special directory in the host queue file.
- the queue file of the host specifically stores a special directory file that does not conform to the data storage parameter CDR of the host, and the distribution module does not conform to the CDR of the host data storage parameter. Files distributed to this directory.
- the distribution module describes the distribution parameter with the highest priority, and uses the data storage parameter provided by the data storage parameter module and the transmission channel parameter provided by the transmission channel parameter module to perform the CDR provided by the rule engine.
- the process of distribution The rule engine selects the CDRs for the distribution condition strings or the distribution parameters corresponding to the distribution condition set according to the configured distribution condition string or distribution condition set, until all the CDRs in the in-process CDR queue are selected.
- the distribution module distributes the CDRs provided by the rule engine according to each distribution parameter, which is the same as this process.
- Step 511 The distribution module determines the distribution type in the distribution parameter. If it is mobile, execute step 512. If it is a copy, perform step 513.
- the distribution module distributes the CDR according to a distribution parameter, it determines whether to continue processing the CDR according to the other CDRs by using the distribution type in the distribution parameter. If it is mobile, perform step 512. If it is a copy, perform the steps. 513.
- Step 512 The CDR is not distributed according to other distribution parameters.
- Step 513 The distribution module copies the CDRs and continues to distribute the CDRs according to other distribution parameters.
- the distribution module first copies the CDRs, and then provides the copied CDRs to the rule engine.
- the rule engine matches the copied CDRs according to the method described in step 502, and selects them to conform to other distribution condition strings. Or the distribution condition set corresponds to the CDR of the distribution parameter, and the distribution is continued.
- the distribution process is the same as steps 503 to 510.
- Step 514 The host transmission module is from other hosts. , Read the file that meets the file name rules of each group of data storage parameters of the host.
- the host transmission module 312 in the host 311 and the host transmission module 322 in the host 321 respectively use the transmission channel provided by the transmission channel parameter module of the host.
- the parameter is connected to the queue file 303 in the host 301 periodically, and the file corresponding to the file name rule of each data storage parameter of the host is read from the special directory of the queue file 303 in the host 301, and then configured according to the parameters of the transmission channel,
- the host identifier corresponds to the relationship between the IP address and the data storage parameter, and the read CDR is transmitted to the directory storage in the respective host queue file.
- Each host in the system shown in Figure 3 may include multiple distribution modules, and each of the distribution modules may include nested subordinate modules, and the above method flow may have some changes.
- the device includes multiple distribution modules, before step 501, an identifier is configured for each distribution module through the foreground configuration module as a flag for identifying each distribution module; in step 501, for each distribution The module configures the distribution parameter; before step 502, first selects a distribution module to be processed through the configured distribution module identifier, and the rule engine matches the bill according to the distribution condition string or the distribution condition set in the distribution parameter in the corresponding distribution module. Elements.
- each of the distribution modules includes a nested lower-level distribution module.
- step 503 when the distribution module determines that the destination type in the distribution parameter is a lower-level distribution module, the processing module first processes the first-level distribution module.
- the distribution parameters in the lower-level distribution module after processing the distribution parameters in the lower-level distribution module, return to the processing of the distribution module to continue to distribute the parameters.
- the CDR process starts from the host 301.
- the CDR process can also start from the host 311 or the host 312, and the CDR distribution process is the same as the above process.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
A method for distributing charging list automatically is disclosed. The method includes: selecting the charging list which conforming to the distribution condition, distributing the charging list according to the coincidence relation between the distribution parameter and the distribution destination. A apparatus and a system for distributing charging list automatically are also disclosed. The distribution evidence can be modified and updated by the foreground configuration by applying the invention. Every parameter in the distribution evidence enables the charging list to be distributed to the designated destination automatically, in order to adapt the variety of the charging list distribution and implement the automatic distribution of the charging list.
Description
一种实现话单自动分发的方法、 装置以及系统 技术领域 Method, device and system for realizing automatic distribution of bills
本发明涉及计费领域, 特别涉及一种实现话单自动分发的方法、 装 置以及系统。 发明背景 The present invention relates to the field of billing, and in particular, to a method, device and system for realizing automatic bill distribution. Background of the invention
电信运营商对用户使用电信服务记费, 一般以用户的服务使用记录 作为记费依据, 这些服务使用记录就是话单。 计费系统由多台主机进行 分布式处理, 例如计费主机进行话单的预处理和一次批价, 帐务主机对 话单进行二次批价、合帐及帐务优惠,查询主机对话单进行清单入库等。 话单在进程中进入计费系统中的一台主机, 话单可以分发到该主机的不 同存储目录中, 也可以通过该主机分发到计费系统的其他主机。 话单在 各主机中的存储方式包括数据库存储和文件形式存储, 其中文件形式存 储对应不同的文件存储目录。 The telecommunication operator charges the telecommunication service for the user, and generally uses the user's service usage record as the basis for the charging. These service usage records are the CDRs. The billing system is distributed by multiple hosts. For example, the billing host performs pre-processing of bills and one-time pricing. The billing host dialog box performs secondary pricing, billing, and billing discounts. List into the library and so on. A CDR enters a host in the accounting system during the process. The CDR can be distributed to different storage directories of the host, and can also be distributed to other hosts of the charging system through the host. The storage mode of the bills in each host includes database storage and file format storage, where the file format storage corresponds to different file storage directories.
目前, 在每一台主机上存储有具备分发功能的程序, 该程序由针对 不同话单分发规则的编码编写而成, 在每一段编码中, 都对进程内话单 的要素进行分析, 确定该进程内话单的分发目的地和存储方式, 编码编 译上线后, 该具备分发功能的程序才可以运行。 进行话单分发时, 首先 运行主机上存储的具备分发功能的程序, 再按照程序运行结果, 将进程 内的话单队列通过脚本用文件传输协议(FTP )传输, 或是通过人工使 用 FTP进行传输, 分发到指定的目的地。 当话单的分发目的主机变化, 或者存储方式变换, 或者在同一主机中的存储目录变化时, 必须针对话 单重新编写编码, 并且重新对编码进行编译上线, 才能使得由新编码编
写的具备分发功能的程序运行, 进而通过程序的运行将话单分发到变化 后的主机, 或将话单按照新的存储方式存储, 或将话单存储到同一主机 的不同目录中。 当运营商开展某项新业务,或新增一种新的分发方式时, 都必须编写编码, 并且重新对编码进行编译上线。 对于运营商和维护人 员来说, 对编码进行编译上线的过程是复杂和具有风险性的, 因此现有 技术中采用重新编写编码, 并且通过对新编写的编码进行编译上线, 来 实现具备分发功能的程序运行, 从而实现话单分发的方式, 不能适应话 单分发的多变性和自动分发。 发明内容 Currently, a program having a distribution function is stored on each host, and the program is written by encoding for different bill distribution rules. In each encoding, the elements of the in-process bill are analyzed to determine the The distribution destination and storage method of the in-process CDR can be run only after the code is compiled and online. When the bill is distributed, the program with the distribution function stored on the host is first run, and then the result of the program is run, and the queue of the in-process bill is transmitted by the file transfer protocol (FTP) through the script, or by using the FTP manually. Distribute to the specified destination. When the distribution destination host of the CDR changes, or the storage mode changes, or when the storage directory in the same host changes, the code must be rewritten for the CDR, and the code is recompiled and put online, so that the new code can be compiled. The written program with the distribution function runs, and then distributes the CDRs to the changed host through the running of the program, or stores the CDRs in a new storage manner, or stores the CDRs in different directories of the same host. When an operator launches a new service or adds a new distribution method, it must write the code and recompile the code. For operators and maintenance personnel, the process of compiling and compiling the code is complex and risky. Therefore, in the prior art, the code is rewritten, and the newly written code is compiled and launched to realize the distribution function. The program runs, thus implementing the way the bills are distributed, and cannot adapt to the variability and automatic distribution of bill distribution. Summary of the invention
本发明实施例提供一种实现话单自动分发的方法, 该方法可以适应 话单分发的多变性, 实现话单的自动分发。 The embodiment of the invention provides a method for realizing automatic distribution of bills, which can adapt to the variability of bill distribution and realize automatic distribution of bills.
本发明实施例提供一种实现话单自动分发的装置, 该装置可以适应 话单分发的多变性, 实现话单的自动分发。 The embodiment of the invention provides an apparatus for realizing automatic distribution of bills, which can adapt to the variability of bill distribution and realize automatic distribution of bills.
本发明实施例提供一种实现话单自动分发的系统, 该系统可以实现 话单的自动分发。 The embodiment of the invention provides a system for realizing automatic distribution of bills, which can realize automatic distribution of bills.
本发明实施例提供一种实现话单自动分发的方法, 该方法包括: 选择符合分发条件的话单, 将话单按照所述分发条件所属的分发参 数与分发目的地的对应关系进行分发。 An embodiment of the present invention provides a method for realizing automatic bill distribution. The method includes: selecting a bill that conforms to a distribution condition, and distributing the bill according to a correspondence between a distribution parameter to which the distribution condition belongs and a distribution destination.
本发明实施例提供一种实现话单自动分发的装置, 该装置包括前台 配置模块和分发处理模块; An embodiment of the present invention provides an apparatus for automatically realizing bill distribution, where the apparatus includes a foreground configuration module and a distribution processing module;
所述前台配置模块, 用于为分发处理模块配置具有分发条件的分发 参数, 设置分发参数与分发目的地的对应关系; The foreground configuration module is configured to configure a distribution parameter with a distribution condition for the distribution processing module, and set a correspondence between the distribution parameter and the distribution destination;
所述分发处理模块, 用于存储前台配置模块配置的具有分发条件的 分发参数以及分发参数与分发目的地的对应关系, 选择符合分发条件的
话单, 将话单按照该分发条件所属的分发参数与分发目的地之间的对应 关系进行分发。 The distribution processing module is configured to store a distribution parameter with a distribution condition configured by the foreground configuration module and a correspondence between the distribution parameter and the distribution destination, and select a distribution condition that meets the distribution condition. The CDR is distributed according to the correspondence between the distribution parameters to which the distribution condition belongs and the distribution destination.
本发明实施例提供一种实现话单自动分发的系统, 包括至少一个主 机, 主机中包括主机传输模块和分发处理模块, 分发处理模块中包括传 输通道参数模块; The embodiment of the invention provides a system for realizing automatic distribution of bills, comprising at least one host, the host includes a host transmission module and a distribution processing module, and the distribution processing module includes a transmission channel parameter module;
所述主机传输模块, 用于使用传输通道参数模块提供的传输通道参 数, 从其他主机中读取存储本主机话单的文件; The host transmission module is configured to read, by using a transmission channel parameter provided by the transmission channel parameter module, a file storing the host CDR from another host;
所述分发处理模块中的传输通道参数模块, 用于将存储的传输通道 参数提供给主机传输模块使用。 The transmission channel parameter module in the distribution processing module is configured to provide the stored transmission channel parameter to the host transmission module for use.
由上述技术方案可见, 本发明实施例提供的实现话单自动分发的方 法, 由于分发参数可以根据具体需要动态配置, 配置的过程可以由前台 实现,对话单分发过程而言是透明的, 因此可以适应话单分发的多变性。 由于每次分发前, 都要根据分发参数中的分发条件为分发参数选择话 单, 选择完毕之后就按照分发参数与分发目的地的对应关系对话单进行 分发, 因此可以实现话单的自动分发。 It can be seen from the foregoing technical solution that the method for implementing automatic bill distribution is provided by the embodiment of the present invention. Since the distribution parameters can be dynamically configured according to specific needs, the configuration process can be implemented by the foreground, and the dialog single distribution process is transparent, so Adapt to the variability of bill distribution. Since each time before the distribution, the CDRs are selected for the distribution parameters according to the distribution conditions in the distribution parameters. After the selection is completed, the distribution parameters are distributed according to the distribution parameters of the distribution parameters and the distribution destinations, so that the automatic distribution of the CDRs can be realized.
本发明实施例提供的实现话单自动分发的装置, 由于分发参数可以 根据具体需要通过前台配置模块动态配置, 对话单分发过程而言是透明 的, 因此可以适应话单分发的多变性。 由于分发模块每次分发前, 都要 根据分发模块中分发参数的分发条件为分发参数选择话单, 选择完毕之 后就按照分发参数与分发目的地的对应关系对话单进行分发, 因此可以 实现话单的自动分发。 The apparatus for realizing the automatic distribution of bills provided by the embodiment of the present invention can be adapted to the specific needs of the front-end configuration module to be dynamically configured according to specific needs, and is transparent in the dialog distribution process, so that the variability of bill distribution can be adapted. Since each distribution of the distribution module is based on the distribution conditions of the distribution parameters in the distribution module, the CDRs are selected for the distribution parameters. After the selection is completed, the distribution parameters are distributed according to the correspondence between the distribution parameters and the distribution destination, so that the CDR can be realized. Automatic distribution.
本发明实施例提供的实现话单自动分发的系统,包括至少一个主机, 主机中包括主机传输模块和分发处理模块, 分发处理模块中包括传输通 道参数模块, 主机中的主机传输模块按照传输通道参数模块提供的传输 通道参数, 从其他主机中读取存储本主机话单的文件, 实现主机间话单
的自动分发。 附图简要说明 The system for realizing the automatic distribution of bills provided by the embodiment of the present invention includes at least one host, the host includes a host transmission module and a distribution processing module, and the distribution processing module includes a transmission channel parameter module, and the host transmission module in the host follows the transmission channel parameter. The transmission channel parameters provided by the module, read the files storing the host CDRs from other hosts, and realize the inter-host CDRs. Automatic distribution. BRIEF DESCRIPTION OF THE DRAWINGS
图 1为本发明实施例实现话单自动分发的装置结构示意图; 图 2为本发明实施例实现话单自动分发的装置中分发参数结构示意 图; 1 is a schematic structural diagram of an apparatus for realizing automatic bill distribution according to an embodiment of the present invention; FIG. 2 is a schematic diagram showing a structure of a distribution parameter in an apparatus for realizing automatic bill distribution according to an embodiment of the present invention;
图 3为本发明实施例实现话单自动分发的系统结构示意图; 图 4 为本发明实施例实现话单自动分发的方法较佳实施方式流程 图; 3 is a schematic structural diagram of a system for implementing automatic bill distribution according to an embodiment of the present invention; FIG. 4 is a flow chart of a preferred embodiment of a method for automatically realizing bill distribution according to an embodiment of the present invention;
图 5为本发明实施例实现话单自动分发的方法基于图 3系统的流程 图。 实施本发明的方式 FIG. 5 is a flow chart of the method for implementing automatic bill distribution according to the embodiment of the present invention. Mode for carrying out the invention
为使本发明实施例的发明目的、 技术方案更加清楚明白, 下面结合 附图对本发明实施例作进一步详细的说明。 In order to make the objects and technical solutions of the embodiments of the present invention more comprehensible, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings.
本发明实施例提供一种实现话单自动分发的方法, 该方法选择符合 分发条件的话单, 将话单按照分发条件所属分发参数与分发目的地的关 系进行分发。 The embodiment of the present invention provides a method for realizing automatic bill distribution, which selects a bill that conforms to the distribution condition, and distributes the bill according to the relationship between the distribution parameter to which the distribution condition belongs and the distribution destination.
本发明实施例提供一种实现话单自动分发的装置, 该装置包括分发 处理模块和前台配置模块。分发处理模块中可以进一步包括:分发模块、 数据存储参数模块、 规则引擎和传输通道参数模块。 The embodiment of the invention provides an apparatus for realizing automatic distribution of bills, and the apparatus comprises a distribution processing module and a foreground configuration module. The distribution processing module may further include: a distribution module, a data storage parameter module, a rule engine, and a transmission channel parameter module.
本发明实施例提供一种实现话单自动分发的系统, 该系统包括至少 一个主机, 主机中包括主机传输模块和分发处理模块, 分发处理模块中 包括传输通道参数模块。 The embodiment of the invention provides a system for realizing automatic distribution of bills, the system comprising at least one host, the host includes a host transmission module and a distribution processing module, and the distribution processing module includes a transmission channel parameter module.
下面对本发明实施例提供的实现话单自动分发的方法、 装置以及系
统作详细描述。 The method, device and system for realizing automatic distribution of bills provided by embodiments of the present invention are provided below. Detailed description.
首先,对本发明实施例提供的实现话单自动分发的装置作详细描述。 参见图 1 , 图 1为本发明实施例实现话单自动分发的装置结构示意 图, 该装置为主机, 包括: 分发处理模块 102和前台配置模块 109。 分 发处理模块 102中可以进一步包括: 规则引擎 104、 分发模块 105、 传 输通道参数模块 106和数据存储参数模块 108。 在主机中, 还可以进一 步包括第一传输模块 103、 第二传输模块 110。 话单分发的文件存储目 录在队列文件 111中。 First, an apparatus for implementing automatic bill distribution according to an embodiment of the present invention is described in detail. Referring to FIG. 1 , FIG. 1 is a schematic structural diagram of an apparatus for realizing automatic bill distribution according to an embodiment of the present invention. The apparatus is a host, and includes: a distribution processing module 102 and a foreground configuration module 109. The distribution processing module 102 may further include: a rules engine 104, a distribution module 105, a transmission channel parameter module 106, and a data storage parameter module 108. In the host, the first transmission module 103 and the second transmission module 110 may be further included. The file storage directory of the bill distribution is in the queue file 111.
前台配置模块 109, 用于给规则引擎 104配置分发条件字符串或分 发条件集合, 给分发模块 105配置分发参数, 给数据存储参数模块 108 配置数据存储参数, 给传输通道参数模块 106配置传输通道参数。 The foreground configuration module 109 is configured to configure a distribution condition string or a distribution condition set for the rule engine 104, configure distribution parameters for the distribution module 105, configure data storage parameters for the data storage parameter module 108, and configure transmission channel parameters for the transmission channel parameter module 106. .
前台配置模块 109,给数据存储参数模块 108配置的数据存储参数, 包括数据存储名、 文件名规则、 主机标识和文件存储目录。 其中主机标 识为预先为每一个主机配置的标识,对应于该主机的 IP地址,可以作为 识别不同主机的标志。 使用数据存储名区分不同的数据存储参数, 即每 一个数据存储名, 都对应属于该数据存储名的目的主机标识, 以及该主 机标识对应的目的主机中的文件存储目录和文件存储目录对应的文件 名规则。 The foreground configuration module 109, the data storage parameters configured for the data storage parameter module 108, includes a data storage name, a file name rule, a host identification, and a file storage directory. The host identifier is an identifier configured for each host in advance, and corresponds to the IP address of the host, and can be used as a flag for identifying different hosts. The data storage name is used to distinguish different data storage parameters, that is, each data storage name corresponds to the destination host identifier belonging to the data storage name, and the file storage directory and the file storage directory corresponding to the destination host corresponding to the host identifier. Name rules.
前台配置模块 109,给传输通道参数模块 106配置的传输通道参数, 包括本主机和其他主机的主机标识、 主机标识对应的 IP地址及 IP地址 对应主机与数据存储参数的关系。其中 IP地址对应主机与数据存储参数 的关系,是指一个 IP地址对应的主机包括的数据存储参数中的文件名规 录。 The foreground configuration module 109, the transmission channel parameter configured for the transmission channel parameter module 106, includes the host identifier of the host and other hosts, the IP address corresponding to the host identifier, and the IP address corresponding to the relationship between the host and the data storage parameter. The relationship between the host address and the data storage parameter of the IP address refers to the file name specification in the data storage parameter included in the host corresponding to an IP address.
前台配置模块 109, 给分发模块 105配置的分发参数, 包括分发目
的名、 目的类型、 分发类型、 优先级和分发条件。 参见图 2, 图 2为本 发明实施例实现话单自动分发的装置中分发参数的结构示意图。 如图 2 所示, 分发模块 105配置有若干组分发参数, 可以根据需要为分发模块 105配置不同数目组的分发参数。 还可以根据需要, 在分发模块 105内 配置嵌套的分发模块,作为分发模块 105的下级分发模块。分发模块 105 中的每一组分发参数包括: 分发目的名、 目的类型、 分发类型、 优先级 和分发条件。 分发目的名中包括数据库表名或数据存储名, 其中, 每一 个数据库表名对应一个可存储话单的数据库; 目的类型中包括数据库 表、 数据存储或下级分发模块, 目的类型为数据库表表示要将话单存储 到数据库中, 目的类型为数据存储表示要将话单按照文件形式, 分发到 数据存储参数目录中的文件存储, 目的类型为下级分发模块表示先处理 嵌套的下级分发模块中的分发参数, 完成后再返回按照本分发模块中的 分发参数继续对话单进行分发; 分发类型包括移动或拷贝, 移动表示话 单按照本组分发参数分发后, 不再按照其他组分发参数进行分发, 拷贝 表示话单按照本组分发参数分发后, 先将话单进行拷贝, 拷贝的话单继 续按照其他组分发参数进行分发; 优先级包括分发模块中各组分发参数 的优先处理顺序, 即优先级最高的一组分发参数首先处理, 依此类推; 分发条件包括按照语法规则设置的分发条件字符串, 表达式中的条件可 以对话单的属性进行判断, 或者设置为分发条件集合。 下级分发模块中 的每一组分发参数, 都和分发模块 105中的分发参数结构相同。 根据实 际需要, 也可以有一个以上分发模块, 每一个分发模块都配置有标识, 作为识别不同分发模块的标志, 每一个分发模块中还可以嵌套下级分发 模块, 分发参数的结构与上述描述相同。 本实施例中, 假设分发处理模 块 102中只有一个分发模块 105 , 且分发模块 105没有嵌套的下级分发 模块。
图 2中除了分发模块中分发参数的结构外, 还示出了由数据存储参 数模块 108提供的数据存储参数, 和由传输通道参数模块 106提供的传 输通道参数。 分发目的名中的数据存储名与数据存储参数中的数据存储 名相同, 即按照分发目的名中的数据存储名, 可以从数据存储参数中找 到相同数据存储名所对应的数据存储参数。 数据存储参数中的主机标 识,对应传输通道参数中的主机标识 IP地址, 即由数据存储参数中的主 机标识,可以在传输通道参数中找到该主机标识对应的 IP地址,进而找 到该主机与数据存储参数之间的关系。 The foreground configuration module 109, the distribution parameters configured for the distribution module 105, including the distribution items Name, destination type, distribution type, priority, and distribution criteria. Referring to FIG. 2, FIG. 2 is a schematic structural diagram of distribution parameters in an apparatus for realizing automatic bill distribution according to an embodiment of the present invention. As shown in FIG. 2, the distribution module 105 is configured with a number of component delivery parameters, and the distribution module 105 can be configured with a different number of distribution parameters as needed. It is also possible to configure a nested distribution module in the distribution module 105 as a subordinate distribution module of the distribution module 105 as needed. Each of the component sending parameters in the distribution module 105 includes: a distribution destination name, a destination type, a distribution type, a priority, and a distribution condition. The distribution destination name includes a database table name or a data storage name, where each database table name corresponds to a database that can store bills; the destination type includes a database table, a data storage, or a subordinate distribution module, and the destination type is a database table representation The CDR is stored in the database, and the destination type is data storage, which means that the CDR is distributed to the file storage in the data storage parameter directory according to the file format, and the destination type is the lower-level distribution module, which first processes the nested lower-level distribution module. Distribute the parameters, and then return to continue the dialog according to the distribution parameters in the distribution module for distribution; the distribution type includes moving or copying, and the mobile indicating CDRs are distributed according to the parameters of the component distribution, and are not distributed according to other component sending parameters. The copy indicates that the CDRs are distributed according to the parameters of the component distribution, and the CDRs are copied first, and the copied CDRs are distributed according to other component sending parameters. The priority includes the priority processing order of the parameters of each component in the distribution module, that is, the highest priority. a set of distribution parameters first , And so on; in accordance with the distribution condition includes a distribution condition string of grammar rules, expression conditions may be a single conversation to judge an attribute or set of settings for the distribution conditions. Each component in the subordinate distribution module has the same parameters as the distribution parameter in the distribution module 105. According to the actual needs, there may be more than one distribution module. Each distribution module is configured with an identifier as a flag for identifying different distribution modules. Each distribution module may also be nested with a lower-level distribution module. The structure of the distribution parameters is the same as described above. . In this embodiment, it is assumed that there is only one distribution module 105 in the distribution processing module 102, and the distribution module 105 has no nested subordinate distribution modules. In addition to the structure of the distribution parameters in the distribution module, the data storage parameters provided by the data storage parameter module 108 and the transmission channel parameters provided by the transmission channel parameter module 106 are shown in FIG. The data storage name in the distribution destination name is the same as the data storage name in the data storage parameter, that is, according to the data storage name in the distribution destination name, the data storage parameter corresponding to the same data storage name can be found from the data storage parameter. The host identifier in the data storage parameter corresponds to the host identifier IP address in the transmission channel parameter, that is, the host identifier in the data storage parameter, and the IP address corresponding to the host identifier can be found in the transmission channel parameter, thereby finding the host and the data. Store the relationship between parameters.
前台配置模块 109, 给规则引擎 104配置分发条件字符串或分发条 件集合, 与分发模块 105中配置的分发条件包括的分发条件字符串或分 发条件集合相同。 分发条件字符串或分发条件集合必须经过编译和执 行, 这些分发条件字符串或分发集合才能被规则引擎 104使用。 规则引 擎 104编译和执行配置的分发条件字符串或分发条件集合, 编译和执行 结束后, 可以使用分发条件字符串或分发条件集合。 话单分发进程开始 后, 规则引擎 104处于运行状态, 将话单要素与分发条件字符串或分发 条件集合匹配, 将匹配成功的话单, 作为为匹配成功的分发条件字符串 或分发条件集合所属的分发参数选择的话单。 The foreground configuration module 109 configures the distribution engine 104 with a distribution condition string or a distribution condition set, which is the same as the distribution condition string or the distribution condition set included in the distribution condition configured in the distribution module 105. The distribution condition string or distribution condition set must be compiled and executed, and these distribution condition strings or distribution sets can be used by the rules engine 104. The rules engine 104 compiles and executes the configured distribution condition string or distribution condition set, and after the compilation and execution ends, a distribution condition string or a distribution condition set can be used. After the bill distribution process starts, the rule engine 104 is in the running state, and the bill element is matched with the distribution condition string or the distribution condition set, and the successfully matched bill is used as the distribution condition string or the distribution condition set to which the matching succeeds. Distribute the bills for parameter selection.
上述前台配置模块 109为数据存储参数模块 108配置的数据存储参 数, 为传输通道参数模块 106配置的传输通道参数, 为分发模块 105配 置的分发参数, 及为规则引擎 104配置的分发条件字符串或分发条件集 合, 共同构成本发明实施例分发话单的依据。 The data storage parameter configured by the foreground configuration module 109 for the data storage parameter module 108, the transmission channel parameter configured for the transmission channel parameter module 106, the distribution parameter configured for the distribution module 105, and the distribution condition string configured for the rules engine 104 or The collection of conditional conditions together constitutes the basis for distributing the CDRs in the embodiment of the present invention.
规则引擎 104, 用于将前台配置模块 109配置的分发条件字符串或 分发集合, 进行编译和执行, 在编译和执行结束后, 规则引擎 104可以 使用配置的分发条件字符串或分发条件集合。 话单分发进程开始后, 规 则引擎 104将第一传输模块 103传输的进程内话单队列中话单的要素,
与分发条件字符串或分发条件集合匹配, 将匹配成功的话单, 作为为匹 配成功的分发条件字符串或分发条件集合所属的分发参数选择的话单, 将选择的话单提供给分发模块 105。 The rules engine 104 is configured to compile and execute the distribution condition string or distribution set configured by the foreground configuration module 109. After the compilation and execution ends, the rules engine 104 can use the configured distribution condition string or distribution condition set. After the bill distribution process starts, the rule engine 104 transmits the elements of the bill in the in-process billing queue transmitted by the first transmission module 103. Matching the distribution condition string or the distribution condition set, the CDR that is successfully matched is selected as the CDR of the distribution condition string to which the matching is successful or the distribution parameter to which the distribution condition set belongs, and the selected CDR is provided to the distribution module 105.
数据存储参数模块 108, 用于将前台配置模块 109配置的数据存储 参数, 提供给分发模块 105使用。 The data storage parameter module 108 is configured to provide the data storage parameter configured by the foreground configuration module 109 to the distribution module 105 for use.
传输通道参数模块 106, 用于将前台配置模块 109配置的传输通道 参数, 提供给分发模块 105使用。 The transmission channel parameter module 106 is configured to provide the transmission channel parameter configured by the foreground configuration module 109 to the distribution module 105 for use.
分发模块 105, 用于按照前台配置模块 109配置的分发参数、 数据 存储参数模块 108提供的数据存储参数、 传输通道参数模块 106提供的 传输通道参数, 将规则引擎 104提供的话单, 按照与话单匹配成功的分 发条件字符串或分发条件集合所属的分发参数分发到第二传输模块 110。 具体来说, 就是分发模块 105接收规则引擎 104提供的话单, 当 与话单匹配成功的分发条件字符串或分发条件集合所属的分发参数中 的分发目的名为数据库表名时, 分发模块 105将话单直接分发到数据库 存储, 当与话单匹配成功的分发条件字符串或分发条件集合所属的分发 参数中的分发目的名为数据存储名时, 分发模块 105在数据存储参数模 块 108提供的数据存储参数中, 找到与分发目的名中的数据存储名相同 的数据存储参数, 根据该数据存储名对应的主机标识、 文件存储目录和 文件名规则, 从传输通道参数模块 106提供的传输通道参数中, 找到本 主机标识对应的本主机 IP地址, 按照该 IP地址对应主机与数据存储参 数的关系, 进行话单分发。 The distribution module 105 is configured to use the distribution parameters configured by the foreground configuration module 109, the data storage parameters provided by the data storage parameter module 108, and the transmission channel parameters provided by the transmission channel parameter module 106, and the CDRs provided by the rules engine 104, according to the CDR The distribution parameters to which the successful distribution condition string or the distribution condition set belongs are distributed to the second transmission module 110. Specifically, the distribution module 105 receives the CDR provided by the rule engine 104, and when the distribution condition string successfully matched with the CDR or the distribution destination name in the distribution parameter to which the distribution condition set belongs is the database table name, the distribution module 105 The bill is directly distributed to the database storage, and when the distribution condition string that matches the success of the bill or the distribution destination name in the distribution parameter to which the distribution condition set belongs is the data storage name, the data provided by the distribution module 105 in the data storage parameter module 108 Among the storage parameters, the same data storage parameter as the data storage name in the distribution destination name is found, according to the host identifier, the file storage directory, and the file name rule corresponding to the data storage name, from the transmission channel parameters provided by the transmission channel parameter module 106. The host IP address corresponding to the host ID is found, and the bill distribution is performed according to the relationship between the host and the data storage parameter corresponding to the IP address.
第一传输模块 103, 用于将进程内话单队列传输到规则引擎 104。 第二传输模块 110, 用于将分发模块 105分发的话单传输到队列文 件 111。 The first transmission module 103 is configured to transmit the in-process CDR queue to the rule engine 104. The second transmission module 110 is configured to transmit the CDRs distributed by the distribution module 105 to the queue file 111.
队列文件 111 , 包括存储符合本主机数据存储参数中文件名规则的
文件存储目录, 及符合其他主机数据存储参数中文件名规则的特殊目 录, 用于将第二传输模块 110传输的符合本主机数据存储参数的话单存 储到符合本主机数据存储参数中文件名规则的文件存储目录的文件, 将 不符合本主机数据存储参数的话单, 存储到特殊目录下的文件。 Queue file 111, including storing the file name rules in accordance with the data storage parameters of the host a file storage directory, and a special directory that conforms to the file name rules in other host data storage parameters, is used to store the CDRs transmitted by the second transmission module 110 that conform to the host data storage parameters to the file name rules in accordance with the host data storage parameters. A file in the file storage directory stores files that do not conform to the data storage parameters of the host and are stored in a special directory.
本发明实施例中,假设分发处理模块 102中只有一个分发模块 105, 并且分发模块 105中没有嵌套的下级分发模块。 除了上述情况外, 分发 处理模块 102中还可以包括多个分发模块, 每个分发模块有一个标识, 作为识别每一个分发模块的标志, 每个分发模块中的分发参数结构与图 2所示相同。 根据需要, 还可以在每个分发模块中, 嵌套下级分发模块。 In the embodiment of the present invention, it is assumed that there is only one distribution module 105 in the distribution processing module 102, and there is no nested subordinate distribution module in the distribution module 105. In addition to the above, the distribution processing module 102 may further include a plurality of distribution modules, each of which has an identifier as a flag for identifying each distribution module, and the distribution parameter structure in each distribution module is the same as that shown in FIG. . The subordinate distribution module can also be nested in each distribution module as needed.
上述本发明实施例提供的实现话单自动分发的装置, 分发模块 105 中的分发参数可以根据具体需要由前台配置模块 109动态配置, 对话单 分发过程而言是透明的, 因此可以适应话单分发的多变性。 由于分发模 块 105每次分发前,都要根据分发参数的分发条件为分发参数选择话单, 选择完毕之后就按照分发参数与分发目的地的对应关系对话单进行分 发, 因此可以实现话单的自动分发。 这样不需要修改编码, 可以方便的 实施, 快速的适应分发的变化。 本发明实施例将主机作为该装置的较佳 实施方式, 也可以是具有相同功能的其他装置。 The device for automatically distributing the bills provided by the embodiment of the present invention, the distribution parameters in the distribution module 105 can be dynamically configured by the foreground configuration module 109 according to specific needs, and the dialog distribution process is transparent, so that the distribution can be adapted to the bill distribution. Variability. Since the distribution module 105 selects the CDRs for the distribution parameters according to the distribution conditions of the distribution parameters before the distribution, the distribution is performed according to the correspondence between the distribution parameters and the distribution destination, so that the automatic CDRs can be realized. distribution. This eliminates the need to modify the code, can be easily implemented, and quickly adapt to changes in distribution. In the embodiment of the present invention, the host is used as a preferred embodiment of the device, and other devices having the same function may also be used.
下面对本发明实施例提供的实现话单自动分发的系统作详细说明。 参见图 3, 图 3为本发明实施例实现话单自动分发的系统结构示意 图, 系统中包括主机 301、 主机 311和主机 321 , 三个主机中都包括主 机传输模块和分发处理模块, 分发处理模块中包括传输通道参数模块, 主机中可以进一步包括前台配置模块、 第一传输模块和第二传输模块, 分发处理模块中可以进一步包括分发模块、 规则引擎和数据存储参数模 块, 本发明实施例实现话单自动分发的装置可以作为上述主机的较佳实 施方式。 主机中话单分发的文件存储目录在队列文件中。 话单在这三个
主机之间进行分发, 由于对于目的类型为数据库存储的话单将直接分发 到指定数据库, 因此这里所述的主机之间的话单分发, 只针对目的类型 为数据存储的话单。 The system for realizing the automatic distribution of bills provided by the embodiment of the present invention is described in detail below. Referring to FIG. 3, FIG. 3 is a schematic structural diagram of a system for realizing automatic bill distribution according to an embodiment of the present invention. The system includes a host 301, a host 311, and a host 321. The host includes a host transmission module and a distribution processing module, and a distribution processing module. The transmission channel parameter module is included, and the host may further include a foreground configuration module, a first transmission module, and a second transmission module. The distribution processing module may further include a distribution module, a rule engine, and a data storage parameter module. A single automatic distribution device can be used as a preferred embodiment of the above host. The file storage directory of the CDR distribution in the host is in the queue file. Bills in these three The distribution between the hosts is performed. Since the CDRs stored for the purpose of the database are directly distributed to the specified database, the CDR distribution between the hosts described herein is only for the CDRs whose destination type is data storage.
主机 301 中的主机传输模块 302, 按照分发处理模块中的传输通道 参数模块提供的传输通道参数, 定时连接主机 311和主机 321 , 从主机 311 中的队列文件 313 , 和主机 321 中的队列文件 323的特殊目录中, 读取符合主机 301中数据存储参数模块中存储的数据存储参数的文件, 把读取的文件按照传输通道参数模块提供的传输通道参数, 送入队列文 件 303中。 主机 311中的主机传输模块 312, 按照分发处理模块中的传 输通道参数模块提供的传输通道参数, 定时连接主机 301和主机 321 , 从主机 301中的队列文件 303 , 和主机 321中的队列文件 323的特殊目 录中, 读取符合主机 311中数据存储参数模块中存储的数据存储参数的 文件, 把读取的文件按照传输通道参数模块提供的传输通道参数, 送入 队列文件 313中。 主机 321中的主机传输模块 322, 按照分发处理模块 中的传输通道参数模块提供的传输通道参数, 定时连接主机 311和主机 301 , 从主机 311中的队列文件 313 , 和主机 301中的队列文件 303的特 殊目录中, 读取符合主机 321中数据存储参数模块中存储的数据存储参 数的文件, 把读取的文件按照传输通道参数模块提供的传输通道参数, 送入队列文件 323中。 其中, 各主机的主机传输模块连接其他主机的时 间间隔, 根据实际需要设定。 The host transmission module 302 in the host 301 periodically connects the host 311 and the host 321, the queue file 313 in the host 311, and the queue file 323 in the host 321 according to the transmission channel parameters provided by the transmission channel parameter module in the distribution processing module. In the special directory, the file conforming to the data storage parameter stored in the data storage parameter module of the host 301 is read, and the read file is sent to the queue file 303 according to the transmission channel parameter provided by the transmission channel parameter module. The host transmission module 312 in the host 311 periodically connects the host 301 and the host 321, the queue file 303 in the host 301, and the queue file 323 in the host 321 according to the transmission channel parameters provided by the transmission channel parameter module in the distribution processing module. In the special directory, the file matching the data storage parameter stored in the data storage parameter module in the host 311 is read, and the read file is sent to the queue file 313 according to the transmission channel parameter provided by the transmission channel parameter module. The host transmission module 322 in the host 321 periodically connects the host 311 and the host 301, the queue file 313 from the host 311, and the queue file 303 in the host 301 according to the transmission channel parameters provided by the transmission channel parameter module in the distribution processing module. In the special directory, the file conforming to the data storage parameter stored in the data storage parameter module of the host 321 is read, and the read file is sent to the queue file 323 according to the transmission channel parameter provided by the transmission channel parameter module. The time interval between the host transmission module of each host and other hosts is set according to actual needs.
在现有技术中, 主机运行存储的具备分发话单功能的程序之后, 按 照运行结果通过脚本或人工的方式, 将话单从本主机传输到其他主机。 与现有技术相比, 本发明实施例提供的实现话单自动分发的系统, 在传 输通道参数模块的传输通道参数中定义各 IP地址对应主机和数据存储 参数的关系, 主机传输模块利用传输通道参数模块提供的传输通道参
数, 定时连接系统中的其他主机, 从其他主机上读取符合本主机数据存 储参数的文件, 实现了系统主机间话单的自动分发。 In the prior art, after the host runs the stored program with the function of distributing the bills, the bill is transferred from the host to the other host by script or manual according to the running result. Compared with the prior art, the system for realizing the automatic distribution of bills provided by the embodiment of the present invention defines the relationship between the host and the data storage parameter of each IP address in the transmission channel parameter of the transmission channel parameter module, and the host transmission module utilizes the transmission channel. Transmission channel parameters provided by the parameter module Number, Timing connection to other hosts in the system, reading files matching the data storage parameters of the host from other hosts, realizing the automatic distribution of CDRs between system hosts.
根据实际需要, 本发明实施例提供的实现话单自动分发的系统中, 可以包括个数不同于 3个的主机, 这里不再赘述。 The system for realizing the automatic distribution of the bills provided by the embodiment of the present invention may include a host with a number different from three, and details are not described herein again.
最后对本发明实施例提供的实现话单自动分发的方法进行详细说 明。 Finally, a method for realizing automatic distribution of bills provided by an embodiment of the present invention is described in detail.
参见图 4, 图 4为本发明实施例实现话单自动分发的方法较佳实施 方式流程图, 预先设置具有分发条件的分发参数, 设置分发参数和分发 目的地的对应关系, 该设置过程可以通过前台实现, 该流程还包括以下 步骤: Referring to FIG. 4, FIG. 4 is a flowchart of a preferred embodiment of a method for automatically realizing bill distribution according to an embodiment of the present invention. A distribution parameter having a distribution condition is set in advance, and a correspondence between a distribution parameter and a distribution destination is set, and the setting process can be adopted. The front desk is implemented, and the process also includes the following steps:
步骤 401 : 选择符合分发条件的话单。 Step 401: Select a bill that meets the distribution criteria.
本步骤中, 根据流程开始之前预先设置的分发参数中的分发条件, 选择符合分发条件的话单。 分发条件可以为分发条件字符串或分发条件 集合。 具体选择的方法可以为: 编译和执行配置的分发条件字符串或分 发条件集合, 并使用编译和执行后的分发条件字符串或分发条件集合匹 配话单要素, 将匹配成功的话单, 作为符合分发条件的话单。 如果预先 设置的分发参数中包括优先级, 则可以按照分发参数的优先级, 依次选 择符合每组分发参数中分发条件的话单。 In this step, the CDRs that meet the distribution conditions are selected according to the distribution conditions in the distribution parameters set in advance before the flow starts. The distribution condition can be a distribution condition string or a distribution condition collection. The specific selection method may be: compiling and executing the configured distribution condition string or the distribution condition set, and using the compiled conditional string or the distribution condition set to match the CDR element, and matching the successfully CDR as the compliance distribution Conditional bills. If the pre-set distribution parameters include priorities, the CDRs that meet the distribution conditions in each component can be selected in turn according to the priority of the distribution parameters.
步骤 402: 将选择的话单按照分发条件所属的分发参数与分发目的 地的对应关系进行分发。 Step 402: Distribute the selected bill according to the correspondence between the distribution parameter to which the distribution condition belongs and the distribution destination.
本步骤中, 将步骤 401中选择的符合分发条件的话单, 按照预先设 置的该分发条件所属的分发参数与分发目的地的对应关系进行分发。 In this step, the CDRs that match the distribution conditions selected in step 401 are distributed according to the correspondence between the distribution parameters to which the distribution conditions are set and the distribution destination.
上述本发明实施例提供的实现话单自动分发的方法较佳实施方式, 由于分发参数可以根据具体需要动态配置, 配置的过程可以由前台实 现, 对话单分发过程而言是透明的, 因此可以适应话单分发的多变性。
由于每次分发前, 都要选择符合分发参数中的分发条件的话单, 选择完 毕之后就按照分发条件所属分发参数与分发目的地的对应关系对话单 进行分发, 因此可以实现话单的自动分发。 无需编写和修改编码, 方便 实施并且可以适应分发的变化。 The preferred embodiment of the method for automatically realizing the automatic distribution of bills provided by the embodiment of the present invention, because the distribution parameters can be dynamically configured according to specific needs, the configuration process can be implemented by the foreground, and the dialog distribution process is transparent, so it can be adapted. The variability of bill distribution. Since each time before the distribution, the CDRs that meet the distribution conditions in the distribution parameters are selected, and after the selection is completed, the distribution parameters are distributed according to the distribution parameters of the distribution parameters and the distribution destinations, so that the automatic distribution of the CDRs can be realized. There is no need to write and modify the code, it is easy to implement and can adapt to changes in distribution.
上述方法可以应用在图 3所示的系统中, 下面以基于图 3所示系统 为例, 详细说明本发明实施例实现话单自动分发的方法, 以话单进程从 主机 301开始为例进行说明。 参见图 5, 图 5为本发明实施例实现话单 自动分发的方法基于图 3系统的流程图, 该流程包括以下步骤: The above method can be applied to the system shown in FIG. 3. The following is a detailed description of the method for implementing automatic bill distribution in the embodiment of the present invention by taking the system shown in FIG. 3 as an example. . Referring to FIG. 5, FIG. 5 is a flowchart of a method for implementing automatic ticket distribution according to an embodiment of the present invention. The process includes the following steps:
步骤 501: 通过前台配置模块配置分发参数、 数据存储参数、 传输 通道参数和分发条件字符串或分发条件集合。 Step 501: Configure a distribution parameter, a data storage parameter, a transmission channel parameter, and a distribution condition string or a distribution condition set through a foreground configuration module.
本步骤中, 通过前台配置模块配置分发模块中的分发参数, 所配置 的分发参数结构与图 2所示相同; 通过前台配置模块配置数据存储参数 模块中的数据存储参数, 包括数据存储名、 文件名规则、 主机标识和文 件存储目录; 通过前台配置模块配置传输通道参数模块中的传输通道参 数, 包括各主机的主机标识、 主机标识对应的 IP地址和该 IP地址对应 主机与数据存储参数的关系,其中 IP地址对应主机与数据存储参数的关 系, 是指一个 IP地址对应的主机包括的数据存储参数中的文件名规则, 以及具备这种文件名规则的文件在主机中的存储目录; 通过前台配置模 块配置规则引擎中的分发条件字符串或分发条件集合。 In this step, the distribution parameter in the distribution module is configured by the foreground configuration module, and the configured distribution parameter structure is the same as that shown in FIG. 2; the data storage parameter in the data storage parameter module is configured by the foreground configuration module, including the data storage name and file. Name rules, host IDs, and file storage directories; configure the transmission channel parameters in the transmission channel parameter module through the foreground configuration module, including the host ID of each host, the IP address corresponding to the host ID, and the relationship between the host and the data storage parameters corresponding to the IP address. The IP address corresponds to the relationship between the host and the data storage parameter, and refers to the file name rule in the data storage parameter included in the host corresponding to the IP address, and the storage directory of the file having the file name rule in the host; Configure the distribution condition string or distribution criteria collection in the module configuration rules engine.
步骤 502: 规则引擎使用配置的分发条件字符串或分发条件集合, 判断话单是否符合分发条件, 如果符合分发条件执行步骤 504, 如果不 符合分发条件执行步骤 503。 Step 502: The rule engine uses the configured distribution condition string or the distribution condition set to determine whether the bill conforms to the distribution condition. If the distribution condition is met, the step 504 is performed, and if the distribution condition is not met, step 503 is performed.
本步骤中, 规则引擎中配置的分发条件字符串或分发条件集合, 与 前台配置模块给分发模块配置的分发参数的分发条件所包含的分发条 件字符串或分发条件集合相同, 以分发模块中优先级别最高的分发参数
的分发条件为例, 规则引擎在完成对分发条件字符串或分发条件集合编 译和执行后, 可以使用分发条件字符串或分发条件集合, 话单进程开始 后, 使用与上述优先级别最高的分发参数的分发条件对应的分发条件字 符串或分发条件集合, 匹配进程内话单的要素, 将匹配成功的话单作为 为该优先级别最高的分发参数选择的话单, 继续执行步骤 504, 如果匹 配不成功则执行步骤 503。 In this step, the distribution condition string or the distribution condition set configured in the rule engine is the same as the distribution condition string or the distribution condition set included in the distribution condition of the distribution parameter configured by the foreground configuration module to the distribution module, and is preferentially distributed in the distribution module. The highest level of distribution parameters For example, the rule engine can use the distribution condition string or the distribution condition set after completing the compilation and execution of the distribution condition string or the distribution condition set. After the CDR process starts, the distribution parameter with the highest priority is used. The distribution condition string or the distribution condition set corresponding to the distribution condition, and the element of the in-process CDR is matched, and the CDR that is successfully matched is selected as the CDR that is selected for the distribution parameter with the highest priority, and step 504 is continued, if the matching is unsuccessful Go to step 503.
步骤 503: 判断话单是否符合其他分发参数的分发条件。 Step 503: Determine whether the bill conforms to the distribution condition of other distribution parameters.
本步骤中, 针对步骤 502中匹配不成功的话单, 判断其是否符合其 他分发参数的分发条件, 判断的方法与步骤 502相同, 如果在步骤 502 中, 话单符合分发参数的分发条件, 则跳过本步骤直接执行步骤 504。 In this step, for the unsuccessful CDR in step 502, it is determined whether it meets the distribution condition of other distribution parameters, and the method of determining is the same as step 502. If the CDR complies with the distribution condition of the distribution parameter in step 502, the hop is skipped. Step 504 is directly executed through this step.
步骤 504: 规则引擎将匹配成功的话单, 提供给分发模块, 分发模 块判断分发参数中的目的类型, 如果是数据库存储执行步骤 505 , 如果 是数据存储执行步骤 506。 Step 504: The rule engine supplies the successfully matched bill to the distribution module, and the distribution module determines the destination type in the distribution parameter. If it is the database storage execution step 505, if it is the data storage execution step 506.
本步骤中, 规则引擎将与对应优先级别最高的一组分发参数中分发 条件字符串或分发条件集合匹配成功的话单, 提供给分发模块, 分发模 块按照该优先级别最高的分发参数处理话单。 如果该分发参数中的目的 类型是数据库, 继续执行步骤 505; 如果该分发参数中的目的类型是数 据存储, 则执行步骤 506。 In this step, the rule engine will provide a CDR that successfully matches the distribution condition string or the distribution condition set in the set of distribution parameters with the highest priority. The distribution module processes the CDR according to the distribution parameter with the highest priority. If the destination type in the distribution parameter is a database, proceed to step 505; if the destination type in the distribution parameter is a data store, then step 506 is performed.
步骤 505: 分发模块将话单分发到分发目的名定义的数据库中。 本步骤中, 如果优先级别最高的分发参数的目的类型中为数据库, 分发模块将按照该分发参数的分发目的名中定义的数据库表名, 将话单 直接分发到该数据库, 如果优先级别最高的分发参数的目的类型中为数 据存储, 则不执行本步骤, 直接执行步骤 506。 Step 505: The distribution module distributes the bill to the database defined by the distribution destination name. In this step, if the destination type of the highest priority distribution parameter is a database, the distribution module will directly distribute the CDR to the database according to the database table name defined in the distribution destination name of the distribution parameter, if the priority is the highest. If the destination type of the distribution parameter is data storage, the step is not performed, and step 506 is directly executed.
步骤 506: 分发模块在数据存储参数模块提供的数据存储参数中, 找到与分发目的名中定义的数据存储名相同的数据存储参数。
本步骤中, 分发参数的目的类型为数据存储, 分发目的名中定义了 数据存储名, 分发模块通过此数据存储名, 可以在数据存储参数模块提 供的数据存储参数中, 找到具有相同数据存储名的数据存储参数。 Step 506: The distribution module finds the same data storage parameter as the data storage name defined in the distribution destination name in the data storage parameter provided by the data storage parameter module. In this step, the destination type of the distribution parameter is data storage, and the data storage name is defined in the distribution destination name. The distribution module can find the same data storage name in the data storage parameter provided by the data storage parameter module through the data storage name. Data storage parameters.
步骤 507: 分发模块根据数据存储参数中的主机标识, 从传输通道 参数模块提供的传输通道参数中, 找到该主机标识对应的 IP地址。 Step 507: The distribution module finds an IP address corresponding to the host identifier from the transmission channel parameter provided by the transmission channel parameter module according to the host identifier in the data storage parameter.
本步骤中, 传输通道参数模块提供的传输通道参数中, 定义了主机 标识、 主机标识对应的 IP地址、 IP地址对应主机中包括的数据存储参 数、及 IP地址对应主机中符合数据存储参数文件名规则的文件在主机中 的文件存储目录。 分发模块根据数据存储参数中的主机标识, 从传输通 道参数中, 可以找到该主机标识对应的 IP地址。 In this step, the transmission channel parameter provided by the transmission channel parameter module defines the host identifier, the IP address corresponding to the host identifier, the data storage parameter included in the host corresponding to the IP address, and the data storage parameter file name corresponding to the host corresponding to the IP address. The rule file is in the file storage directory in the host. The distribution module can find the IP address corresponding to the host identifier from the transmission channel parameter according to the host identifier in the data storage parameter.
步骤 508: 分发模块判断主机标识对应的 IP地址, 如果主机标识对 应的 IP地址为本主机, 执行步骤 509, 如果主机标识对应的 IP地址为 其他主机, 执行步骤 510。 Step 508: The distribution module determines the IP address corresponding to the host identifier. If the IP address corresponding to the host identifier is the host, go to step 509. If the IP address corresponding to the host ID is another host, go to step 510.
本步骤中,分发模块判断步骤 507中找到的主机标识对应的 IP地址, 该 IP地址可能对应本主机, 也可能对应其他主机。 如果 IP地址对应本 主机, 执行步骤 509, 如果 IP地址对应其他主机, 则执行步骤 510。 In this step, the distribution module determines the IP address corresponding to the host identifier found in step 507, and the IP address may correspond to the host or may correspond to other hosts. If the IP address corresponds to the host, step 509 is performed. If the IP address corresponds to another host, step 510 is performed.
步骤 509: 分发模块将话单分发到本主机队列文件中, 数据存储参 数目录中的文件。 Step 509: The distribution module distributes the CDRs to the host queue file, and the data stores the files in the parameter directory.
本步骤中, 分发模块根据传输通道参数模块提供的传输通道参数, 将话单本主机队列文件中, 数据存储参数文件名规则对应的文件存储目 录中的文件。 In this step, the distribution module stores the files in the directory corresponding to the data storage parameter file name rule in the CDR list host file according to the transmission channel parameter provided by the transmission channel parameter module.
步骤 510: 分发模块将话单分发到本主机队列文件中特殊目录下的 文件。 Step 510: The distribution module distributes the CDRs to files in a special directory in the host queue file.
本步骤中, 主机的队列文件中有专门存储不符合本主机数据存储参 数话单的特殊目录文件, 分发模块将不符合本主机数据存储参数的话单
分发到该目录中的文件。 In this step, the queue file of the host specifically stores a special directory file that does not conform to the data storage parameter CDR of the host, and the distribution module does not conform to the CDR of the host data storage parameter. Files distributed to this directory.
在步骤 502~步骤 510中,描述了分发模块针对优先级别最高的分发 参数, 同时使用数据存储参数模块提供的数据存储参数, 及传输通道参 数模块提供的传输通道参数, 对规则引擎提供的话单进行分发的流程。 规则引擎会按照配置的分发条件字符串或分发条件集合, 依次为这些分 发条件字符串或分发条件集合对应的分发参数选择话单, 直到进程内话 单队列中的话单全部被选择完。 分发模块按照每一条分发参数对规则引 擎提供的话单进行分发, 均与此流程相同。 In step 502 to step 510, the distribution module describes the distribution parameter with the highest priority, and uses the data storage parameter provided by the data storage parameter module and the transmission channel parameter provided by the transmission channel parameter module to perform the CDR provided by the rule engine. The process of distribution. The rule engine selects the CDRs for the distribution condition strings or the distribution parameters corresponding to the distribution condition set according to the configured distribution condition string or distribution condition set, until all the CDRs in the in-process CDR queue are selected. The distribution module distributes the CDRs provided by the rule engine according to each distribution parameter, which is the same as this process.
步骤 511 : 分发模块判断分发参数中的分发类型, 如果为移动, 执 行步骤 512, 如果为拷贝, 执行步骤 513。 Step 511: The distribution module determines the distribution type in the distribution parameter. If it is mobile, execute step 512. If it is a copy, perform step 513.
本步骤中, 分发模块按照一条分发参数分发完话单之后, 通过分发 参数中的分发类型, 判断是否继续按照其他话单处理该话单, 如果为移 动, 执行步骤 512, 如果为拷贝, 执行步骤 513。 In this step, after the distribution module distributes the CDR according to a distribution parameter, it determines whether to continue processing the CDR according to the other CDRs by using the distribution type in the distribution parameter. If it is mobile, perform step 512. If it is a copy, perform the steps. 513.
步骤 512: 话单不按照其他分发参数进行分发。 Step 512: The CDR is not distributed according to other distribution parameters.
步骤 513: 分发模块拷贝话单, 将话单继续按照其他分发参数分发。 本步骤中, 分发模块先将话单拷贝, 然后将拷贝后的话单提供给规 则引擎, 规则引擎按照步骤 502中所述的方法, 匹配拷贝后的话单, 将 其选择为符合其他分发条件字符串或分发条件集合对应分发参数的话 单, 再继续进行分发, 分发流程与步骤 503~步骤 510相同。 Step 513: The distribution module copies the CDRs and continues to distribute the CDRs according to other distribution parameters. In this step, the distribution module first copies the CDRs, and then provides the copied CDRs to the rule engine. The rule engine matches the copied CDRs according to the method described in step 502, and selects them to conform to other distribution condition strings. Or the distribution condition set corresponds to the CDR of the distribution parameter, and the distribution is continued. The distribution process is the same as steps 503 to 510.
在上述步骤 501~步骤 513中, 话单完成了在主机 301中的分发, 由 于话单还需要在系统内的主机之间进行分发, 上述步骤进一步包括: 步骤 514: 主机传输模块从其他主机中, 读取符合本主机各组数据 存储参数的文件名规则的文件。 In the foregoing steps 501 to 513, the CDR completes the distribution in the host 301. Since the CDR needs to be distributed between the hosts in the system, the foregoing steps further include: Step 514: The host transmission module is from other hosts. , Read the file that meets the file name rules of each group of data storage parameters of the host.
本步骤中, 主机 311 中的主机传输模块 312, 及主机 321 中的主机 传输模块 322, 分别使用所属主机的传输通道参数模块提供的传输通道
参数,定时连接主机 301中的队列文件 303 ,从主机 301中队列文件 303 的特殊目录中, 读取符合本主机各个数据存储参数的文件名规则的文 件,再按照传输通道参数中配置的,各主机标识对应 IP地址与数据存储 参数的关系, 将读取的话单传输到各自主机队列文件中的目录存储。 其 中, 主机标识对应 IP地址与数据存储参数的关系即一个 IP地址对应的 主机包括的数据存储参数中的文件名规则, 以及具备这种文件名规则的 文件在 IP地址对应主机中的存储目录。 In this step, the host transmission module 312 in the host 311 and the host transmission module 322 in the host 321 respectively use the transmission channel provided by the transmission channel parameter module of the host. The parameter is connected to the queue file 303 in the host 301 periodically, and the file corresponding to the file name rule of each data storage parameter of the host is read from the special directory of the queue file 303 in the host 301, and then configured according to the parameters of the transmission channel, The host identifier corresponds to the relationship between the IP address and the data storage parameter, and the read CDR is transmitted to the directory storage in the respective host queue file. The relationship between the IP address and the data storage parameter of the host identifier, that is, the file name rule in the data storage parameter included in the host corresponding to one IP address, and the storage directory in the host corresponding to the IP address corresponding to the file with the file name rule.
图 3所示系统中的各个主机可以包括多个分发模块, 并且每个分发 模块中可以包括嵌套的下级模块, 则上述方法流程会有一些变化。 具体 来说, 如果装置中包括多个分发模块, 在步骤 501之前, 通过前台配置 模块,为每个分发模块配置一个标识,作为识别每一个分发模块的标志; 在步骤 501中, 为每一个分发模块配置分发参数; 在步骤 502之前, 先 通过配置的分发模块标识, 选择一个需要处理的分发模块, 规则引擎根 据对应该分发模块中分发参数中的分发条件字符串或分发条件集合, 匹 配话单要素。 如果系统在包括一个和多个分发模块的情况下, 各分发模 块中包括嵌套的下级分发模块, 在步骤 503中, 分发模块判断出分发参 数中的目的类型为下级分发模块时, 将先处理下级分发模块中的分发参 数, 在处理完下级分发模块中的分发参数后, 返回本级分发模块继续分 发参数的处理。 Each host in the system shown in Figure 3 may include multiple distribution modules, and each of the distribution modules may include nested subordinate modules, and the above method flow may have some changes. Specifically, if the device includes multiple distribution modules, before step 501, an identifier is configured for each distribution module through the foreground configuration module as a flag for identifying each distribution module; in step 501, for each distribution The module configures the distribution parameter; before step 502, first selects a distribution module to be processed through the configured distribution module identifier, and the rule engine matches the bill according to the distribution condition string or the distribution condition set in the distribution parameter in the corresponding distribution module. Elements. If the system includes one or more distribution modules, each of the distribution modules includes a nested lower-level distribution module. In step 503, when the distribution module determines that the destination type in the distribution parameter is a lower-level distribution module, the processing module first processes the first-level distribution module. The distribution parameters in the lower-level distribution module, after processing the distribution parameters in the lower-level distribution module, return to the processing of the distribution module to continue to distribute the parameters.
在本发明实施例中, 假设话单进程从主机 301开始, 实际应用中, 话单进程也可以从主机 311或主机 312开始, 话单分发的流程与上述流 程相同。 In the embodiment of the present invention, it is assumed that the CDR process starts from the host 301. In actual applications, the CDR process can also start from the host 311 or the host 312, and the CDR distribution process is the same as the above process.
综上所述, 以上仅为本发明的较佳实施例而已, 并非用于限定本发 明的保护范围。 凡在本发明的精神和原则之内, 所作的任何修改、 等同 替换、 改进等, 均应包含在本发明的保护范围之内。
In conclusion, the above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention. Any modifications, equivalents, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
Claims
1、 一种实现话单自动分发的方法, 其特征在于, 该方法包括: 选择符合分发条件的话单, 将话单按照所述分发条件所属的分发参 数与分发目的地的对应关系进行分发。 A method for realizing automatic bill distribution, the method comprising: selecting a bill that conforms to a distribution condition, and distributing the bill according to a correspondence between a distribution parameter to which the distribution condition belongs and a distribution destination.
2、 如权利要求 1所述的方法, 其特征在于, 该方法进一步包括: 预先配置具有分发条件的分发参数, 设置分发参数和分发目的地的 对应关系。 2. The method according to claim 1, wherein the method further comprises: pre-configuring a distribution parameter having a distribution condition, and setting a correspondence between the distribution parameter and the distribution destination.
3、 如权利要求 2所述的方法, 其特征在于, 所述预先配置具有分 发条件的分发参数为: 使用匹配话单要素的分发条件字符串或分发条件 集合标识分发条件, 使用分发条件、 分发目的名和目的类型配置所述具 有分发条件的分发参数; 3. The method according to claim 2, wherein the pre-configuring the distribution parameter having the distribution condition is: using a distribution condition string or a distribution condition set matching the CDR element to identify the distribution condition, using the distribution condition, and distributing The destination name and the destination type configure the distribution parameter having the distribution condition;
所述选择符合分发条件的话单, 将话单按照该分发条件所属的分发 参数与分发目的地的对应关系进行分发为: 编译和执行所述分发条件字 符串或分发条件集合, 使用编译和执行后的分发条件字符串或分发条件 集合匹配话单要素, 将匹配成功的话单作为符合分发条件的话单, 将话 单按照该分发条件所属的分发参数与分发目的地的对应关系进行分发。 The CDR corresponding to the distribution condition is selected, and the CDR is distributed according to the correspondence between the distribution parameter and the distribution destination to which the distribution condition belongs: compiling and executing the distribution condition string or the distribution condition set, after compiling and executing The distribution condition string or the distribution condition set matches the CDR element, and the CDR that matches the success is used as the CDR corresponding to the distribution condition, and the CDR is distributed according to the correspondence between the distribution parameter to which the distribution condition belongs and the distribution destination.
4、 如权利要求 3 所述的方法, 其特征在于, 所述目的类型为数据 存储, 所述设置分发参数与分发目的地的对应关系为: 配置包括数据存 储名的数据存储参数, 设置数据存储参数与分发目的地的对应关系, 将 所述分发参数中的分发目的名设置为与所述数据存储参数中数据存储 名相同; The method according to claim 3, wherein the destination type is data storage, and the correspondence between the setting distribution parameter and the distribution destination is: configuring a data storage parameter including a data storage name, and setting a data storage Corresponding relationship between the parameter and the distribution destination, setting the distribution destination name in the distribution parameter to be the same as the data storage name in the data storage parameter;
所述将选择的话单按照分发条件所属的分发参数与分发目的地的 对应关系进行分发为: 根据分发参数中配置的所述数据存储名, 查找相 同数据存储名的数据存储参数, 按照数据存储参数与分发目的地的对应 关系对话单进行分发。
And distributing the selected bill according to the correspondence between the distribution parameter and the distribution destination to which the distribution condition belongs: searching for the data storage parameter of the same data storage name according to the data storage name configured in the distribution parameter, according to the data storage parameter The correspondence with the distribution destination is distributed.
5、 如权利要求 4所述的方法, 其特征在于, 所述配置包括数据存 储名的数据存储参数, 设置数据存储参数与分发目的地的对应关系为: 为每组数据存储参数配置数据存储名和目的主机标识, 以及目的主机标 识对应的文件存储目录和文件名规则; 5. The method according to claim 4, wherein the configuration comprises a data storage parameter of a data storage name, and the correspondence between the data storage parameter and the distribution destination is set as follows: a data storage name is configured for each group of data storage parameters and The destination host identifier, and the file storage directory and file name rules corresponding to the destination host identifier;
所述按照数据存储参数与分发目的地的对应关系对话单进行分发 为: 按照数据存储参数中的目的主机标识, 将话单分发到该目的主机标 Distributing according to the correspondence relationship between the data storage parameter and the distribution destination: distributing the CDR to the destination host according to the destination host identifier in the data storage parameter
6、 如权利要求 5 所述的方法, 其特征在于, 所述按照数据存储定 义中的目的主机标识, 将话单分发到该目的主机标识对应的符合文件名 规则的文件存储目录下的文件中为: 配置包括目的主机标识、 目的主机 标识对应互联网协议 IP地址、以及目的主机与数据存储参数对应关系的 传输通道参数, 根据数据存储定义中的目的主机标识, 查找包括相同目 的主机标识的传输通道参数, 按照查找到的传输通道参数将话单分发到 7、 如权利要求 6所述的方法, 其特征在于, 所述目的主机与数据 存储参数的对应关系为: The method according to claim 5, wherein the CDR is distributed to a file in a file storage directory corresponding to the file name rule corresponding to the destination host identifier according to the destination host identifier in the data storage definition. The configuration includes: a destination host identifier, a destination host identifier corresponding to an Internet Protocol IP address, and a transmission channel parameter corresponding to the destination host and the data storage parameter, and searching for a transmission channel including the same destination host identifier according to the destination host identifier in the data storage definition. The method of distributing the CDR according to the found transmission channel parameter to the method of claim 6, wherein the correspondence between the destination host and the data storage parameter is:
所述 IP地址对应的目的主机中包含的数据存储参数,以及符合数据 存储参数中文件名规则的文件在目的主机中的文件存储目录。 The data storage parameter included in the destination host corresponding to the IP address, and the file storage directory in the destination host of the file conforming to the file name rule in the data storage parameter.
8、 如权利要求 6所述的方法, 其特征在于, 所述目的主机的 IP地 址对应其他主机, 所述根据传输通道参数, 将话单分发到对应的目的主 机中的文件存储目录的文件中为: 将话单分发到本主机特殊目录下的文 件。 The method of claim 6, wherein the IP address of the destination host corresponds to another host, and the CDR is distributed to the file storage directory file in the corresponding destination host according to the transmission channel parameter. To: Distribute the bill to a file in the special directory of this host.
9、 如权利要求 8所述的方法, 其特征在于, 该方法进一步包括: 其他主机按照其配置的传输通道参数, 从所述本主机的特殊目录 中, 读取符合其他主机中配置的数据存储参数的文件。
9. The method according to claim 8, wherein the method further comprises: the other host reads the data storage conforming to the configuration in the other host from the special directory of the host according to the configured transmission channel parameter. The file for the parameter.
10、 如权利要求 3所述的方法, 其特征在于, 所述目的类型为数据 库存储, 所述设置分发参数与分发目的地的对应关系为: 将分发参数的 分发目的名设置为数据库名, 通过该设置的数据库名关联分发参数与分 发目的地; The method according to claim 3, wherein the destination type is a database storage, and the correspondence between the setting distribution parameter and the distribution destination is: setting a distribution destination name of the distribution parameter as a database name, The database name of the setting is associated with the distribution parameters and the distribution destination;
所述将选择的话单按照分发条件所属的分发参数与分发目的地的 对应关系进行分发为: 将话单直接分发到所述数据库名对应的数据库 中。 The CDRs to be selected are distributed according to the correspondence between the distribution parameters to which the distribution conditions belong and the distribution destinations: the CDRs are directly distributed to the database corresponding to the database name.
11、 如权利要求 3所述的方法, 其特征在于, 所述使用分发条件、 分发目的名和目的类型配置分发参数后进一步包括: 在分发参数中配置 优先级别; The method according to claim 3, wherein the configuring the distribution parameter by using the distribution condition, the distribution destination name, and the destination type further comprises: configuring a priority level in the distribution parameter;
所述选择符合分发条件的话单为: 按照分发参数的优先级别, 依次 选择符合分发参数中分发条件的话单。 The CDRs that meet the distribution conditions are: According to the priority level of the distribution parameters, the CDRs that meet the distribution conditions in the distribution parameters are sequentially selected.
12、 如权利要求 3所述的方法, 其特征在于, 所述使用分发条件、 分发目的名和目的类型配置分发参数后进一步包括: 在分发参数中配置 包括移动或拷贝的分发类型; The method according to claim 3, wherein the configuring the distribution parameter by using the distribution condition, the distribution destination name, and the destination type further comprises: configuring a distribution type including moving or copying in the distribution parameter;
所述将选择的话单按照分发条件所属的分发参数与分发目的地的 对应关系进行分发之后进一步包括: 如果分发参数的分发类型为移动, 话单不进行其他分发参数的分发, 如果分发参数的分发类型为拷贝, 先 将话单拷贝, 再将拷贝的话单按照其他分发参数分发。 After the distribution of the selected bill according to the correspondence between the distribution parameter and the distribution destination to which the distribution condition belongs, the method further includes: if the distribution type of the distribution parameter is mobile, the CDR does not distribute other distribution parameters, if the distribution of the distribution parameter The type is copy, the CDR is copied first, and the copied CDRs are distributed according to other distribution parameters.
13、 如权利要求 12所述的方法, 其特征在于, 所述为分发参数配 置的分发类型为下级分发参数, 为分发参数预先配置嵌套下级分发参 数; The method according to claim 12, wherein the distribution type configured for the distribution parameter is a lower-level distribution parameter, and the nested lower-level distribution parameter is pre-configured for the distribution parameter;
所述将选择的话单按照分发条件所属的分发参数与分发目的地的 对应关系进行分发之前进一步包括: 先处理下级分发参数, 完成后返回 本级分发参数。
Before the distribution of the selected CDRs according to the correspondence between the distribution parameters and the distribution destinations to which the distribution conditions belong, the method further includes: processing the lower-level distribution parameters first, and returning to the current-level distribution parameters after completion.
14、 一种实现话单自动分发的装置, 其特征在于, 该装置包括前台 配置模块和分发处理模块; 14. An apparatus for realizing automatic distribution of bills, characterized in that the apparatus comprises a foreground configuration module and a distribution processing module;
所述前台配置模块, 用于为分发处理模块配置具有分发条件的分发 参数, 设置分发参数与分发目的地的对应关系; The foreground configuration module is configured to configure a distribution parameter with a distribution condition for the distribution processing module, and set a correspondence between the distribution parameter and the distribution destination;
所述分发处理模块, 用于存储前台配置模块配置的具有分发条件的 分发参数, 以及分发参数与分发目的地的对应关系, 选择符合分发条件 的话单, 将话单按照该分发条件所属的分发参数与分发目的地之间的对 应关系进行分发。 The distribution processing module is configured to store a distribution parameter with a distribution condition configured by the foreground configuration module, and a correspondence between the distribution parameter and the distribution destination, select a bill that meets the distribution condition, and follow the distribution parameter to which the distribution condition belongs. Distribute with the correspondence between the distribution destinations.
15、 如权利要求 14所述的装置, 其特征在于, 所述分发处理模块 包括分发模块和规则引擎; 15. The apparatus of claim 14, wherein the distribution processing module comprises a distribution module and a rules engine;
所述分发模块, 用于存储前台配置模块配置的具有分发条件的分发 参数, 以及分发参数与分发目的地的对应关系, 对规则引擎提供的符合 分发条件的话单, 按照分发条件所属的分发参数与分发目的地之间的对 应关系进行分发; The distribution module is configured to store a distribution parameter with a distribution condition configured by the foreground configuration module, and a correspondence between the distribution parameter and the distribution destination, and the CDR corresponding to the distribution condition provided by the rule engine, according to the distribution parameter to which the distribution condition belongs Distribute the correspondence between distribution destinations;
所述规则引擎, 用于存储前台配置模块配置的与分发参数中相同的 分发条件, 编译和执行配置的分发条件, 使用编译和执行后的分发条件 匹配话单要素, 将匹配成功的话单作为符合分发条件的话单提供给分发 模块。 The rule engine is configured to store the same distribution conditions configured in the foreground configuration module as the distribution parameters, compile and execute the configured distribution conditions, use the compiled and executed distribution conditions to match the CDR elements, and match the successfully matched CDRs. The bill for the distribution condition is provided to the distribution module.
16、 如权利要求 15 所述的装置, 其特征在于, 所述分发处理模块 中, 进一步包括数据存储参数模块, 用于存储前台配置模块配置的数据 存储参数, 将数据存储参数提供给所述分发模块使用。 The device according to claim 15, wherein the distribution processing module further includes a data storage parameter module, configured to store data storage parameters configured by the foreground configuration module, and provide data storage parameters to the distribution. The module is used.
17、 如权利要求 15 所述的装置, 其特征在于, 所述分发处理模块 中, 进一步包括传输通道参数模块, 用于存储前台配置模块配置的传输 通道参数, 将传输通道参数提供给所述分发模块使用。 The device according to claim 15, wherein the distribution processing module further includes a transmission channel parameter module, configured to store a transmission channel parameter configured by the foreground configuration module, and provide the transmission channel parameter to the distribution. The module is used.
18、 如权利要求 15 所述的装置, 其特征在于, 所述分发模块中进
一步包括嵌套的下级分发模块。 18. The apparatus according to claim 15, wherein the distribution module is One step includes a nested subordinate distribution module.
19、 如权利要求 14所述的装置, 其特征在于, 装置中进一步包括 第一传输模块和第二传输模块, 所述分发处理模块通过第一传输模块接 收话单, 并将话单通过第二传输模块分发。 The device according to claim 14, wherein the device further comprises a first transmission module and a second transmission module, wherein the distribution processing module receives the bill through the first transmission module, and passes the bill through the second The transmission module is distributed.
20、 一种实现话单自动分发的系统, 其特征在于, 该系统包括至少 一个主机, 主机中包括主机传输模块和分发处理模块, 分发处理模块中 包括传输通道参数模块; A system for realizing automatic bill distribution, the system comprising at least one host, the host includes a host transmission module and a distribution processing module, and the distribution processing module includes a transmission channel parameter module;
所述主机传输模块, 用于使用传输通道参数模块提供的传输通道参 数, 从其他主机中读取存储本主机话单的文件; The host transmission module is configured to read, by using a transmission channel parameter provided by the transmission channel parameter module, a file storing the host CDR from another host;
所述分发处理模块中的传输通道参数模块, 用于将存储的传输通道 参数提供给主机传输模块使用。 The transmission channel parameter module in the distribution processing module is configured to provide the stored transmission channel parameter to the host transmission module for use.
21、 如权利要求 20所述的系统, 其特征在于, 所述系统主机中进 一步包括前台配置模块, 所述分发处理模块中进一步包括分发模块、 规 则引擎和数据存储参数模块; The system according to claim 20, wherein the system host further includes a foreground configuration module, and the distribution processing module further includes a distribution module, a rule engine, and a data storage parameter module;
所述前台配置模块, 用于为分发处理模块中的分发模块配置具有分 发条件的分发参数以及分发参数与分发目的地的对应关系, 为分发处理 模块中的数据存储参数模块配置数据存储参数, 为分发处理模块中的传 输通道参数模块配置传输通道参数, 为分发处理模块中的规则引擎配置 与所述分发参数中相同的分发条件; The foreground configuration module is configured to configure a distribution parameter having a distribution condition and a correspondence between the distribution parameter and the distribution destination for the distribution module in the distribution processing module, and configure a data storage parameter for the data storage parameter module in the distribution processing module, The transmission channel parameter module in the distribution processing module configures the transmission channel parameter, and configures the same distribution condition in the distribution parameter as the rule engine in the distribution processing module;
所述分发处理模块中的分发模块, 用于存储前台配置模块配置的具 有分发条件的分发参数, 将规则引擎提供的符合分发条件的话单, 按照 分发条件所属分发参数与分发目的地的对应关系进行分发; The distribution module in the distribution processing module is configured to store the distribution parameter with the distribution condition configured by the foreground configuration module, and the CDR corresponding to the distribution condition provided by the rule engine is performed according to the correspondence between the distribution parameter and the distribution destination. Distribute
所述分发处理模块中的规则引擎, 用于存储前台配置的与所述分发 参数中相同的分发条件, 编译和执行配置的分发条件, 使用编译和执行 后的分发条件匹配话单要素, 将匹配成功的话单, 作为符合分发条件的
话单提供给所述分发模块; The rule engine in the distribution processing module is configured to store the same distribution conditions configured in the foreground as the distribution parameters, compile and execute the configured distribution conditions, and use the compiled and executed distribution conditions to match the CDR elements, and the matching Successful bills, as eligible for distribution a bill is provided to the distribution module;
所述分发处理模块中的数据存储参数模块, 用于存储前台配置模块 配置的数据存储参数, 将数据存储参数提供给分发模块。
The data storage parameter module in the distribution processing module is configured to store data storage parameters configured by the foreground configuration module, and provide data storage parameters to the distribution module.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2007800002734A CN101518043A (en) | 2007-01-30 | 2007-10-10 | Method, device and system for realizing automatic call ticket distribution |
EP08100939A EP1954020A3 (en) | 2007-01-30 | 2008-01-25 | Method and apparatus for distributing call detail record |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200710002775.2 | 2007-01-30 | ||
CN2007100027752A CN101005549B (en) | 2007-01-30 | 2007-01-30 | Method, device and system for realizing voice list automatic distribution |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2008092347A1 true WO2008092347A1 (en) | 2008-08-07 |
Family
ID=38704394
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2007/070869 WO2008092347A1 (en) | 2007-01-30 | 2007-10-10 | Method, apparatus and system for distributing charging list automatically |
Country Status (2)
Country | Link |
---|---|
CN (2) | CN101005549B (en) |
WO (1) | WO2008092347A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101547104A (en) * | 2008-03-25 | 2009-09-30 | 中兴通讯股份有限公司 | Database entering method for wireless application protocol service diary |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1649376A (en) * | 2004-01-19 | 2005-08-03 | 华为技术有限公司 | Feedback method and system for communication billing information |
CN1787588A (en) * | 2005-12-01 | 2006-06-14 | 大唐软件技术有限责任公司 | Method for processing multiprogress message and method for processing multiprogress talk ticket |
DE102005001905A1 (en) * | 2005-01-14 | 2006-07-27 | Siemens Ag | Multimedia service fees charging method for e.g. cellular mobile radio network, involves evaluating parameter of signaling message when sending message between two network units and forwarding evaluation result to fees charging center |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE69409445D1 (en) * | 1993-07-27 | 1998-05-14 | Ibm | Process monitoring in a multiple processing provider |
US6629237B2 (en) * | 2000-09-01 | 2003-09-30 | Intel Corporation | Solving parallel problems employing hardware multi-threading in a parallel processing environment |
-
2007
- 2007-01-30 CN CN2007100027752A patent/CN101005549B/en not_active Expired - Fee Related
- 2007-10-10 WO PCT/CN2007/070869 patent/WO2008092347A1/en active Application Filing
- 2007-10-10 CN CNA2007800002734A patent/CN101518043A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1649376A (en) * | 2004-01-19 | 2005-08-03 | 华为技术有限公司 | Feedback method and system for communication billing information |
DE102005001905A1 (en) * | 2005-01-14 | 2006-07-27 | Siemens Ag | Multimedia service fees charging method for e.g. cellular mobile radio network, involves evaluating parameter of signaling message when sending message between two network units and forwarding evaluation result to fees charging center |
CN1787588A (en) * | 2005-12-01 | 2006-06-14 | 大唐软件技术有限责任公司 | Method for processing multiprogress message and method for processing multiprogress talk ticket |
Also Published As
Publication number | Publication date |
---|---|
CN101518043A (en) | 2009-08-26 |
CN101005549B (en) | 2012-04-25 |
CN101005549A (en) | 2007-07-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102693132A (en) | Method for automatically sorting application program based on Android | |
CN103109293B (en) | A kind of user behavior processing system and method | |
CN103678662A (en) | Application program searching method and device | |
CN109743372A (en) | Gateway attaches device updating method and device | |
CN108734454A (en) | Reimbursement processing method and system | |
CN109542462A (en) | A kind of system environments dispositions method, storage medium and server | |
CN111767094A (en) | Route checking method, device, equipment and storage medium | |
JP5485946B2 (en) | Virtualized home gateway system | |
CN109753300A (en) | A kind of algorithm upgrade method, calculating task sending method and Related product | |
CN113381928A (en) | Gateway request chain management method and device, electronic equipment and computer medium | |
CN108920523A (en) | Data query method, apparatus, equipment, system and medium on block chain | |
CN101848430B (en) | Device and method for service request authentication, service request authentication system and method of service request authentication system | |
WO2008092347A1 (en) | Method, apparatus and system for distributing charging list automatically | |
CN108509440A (en) | A kind of data processing method and device | |
CN103617214A (en) | CIM (common information model) path query method and device | |
CN111124413B (en) | Method and device for compiling Maven project | |
CN110471739A (en) | Instruction retries method and device | |
CN111522635B (en) | Computing task processing method, computing task processing device, server and storage medium | |
JP2005301379A (en) | Software resource management method and system | |
CN110515841A (en) | A kind of method and apparatus and computer storage medium of order test | |
JP5804997B2 (en) | Program distribution management system | |
JP3947025B2 (en) | Content information registration method and apparatus, program, and computer-readable recording medium | |
CN116567579B (en) | Vehicle-mounted terminal data filling method and system | |
CN110610371A (en) | Latent user analysis method, system, and computer-readable storage medium | |
CN108845898A (en) | A kind of test method and test system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
WWE | Wipo information: entry into national phase |
Ref document number: 200780000273.4 Country of ref document: CN |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 07817060 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 07817060 Country of ref document: EP Kind code of ref document: A1 |