CN103490909B - Charge processing method and device - Google Patents

Charge processing method and device Download PDF

Info

Publication number
CN103490909B
CN103490909B CN201210194716.0A CN201210194716A CN103490909B CN 103490909 B CN103490909 B CN 103490909B CN 201210194716 A CN201210194716 A CN 201210194716A CN 103490909 B CN103490909 B CN 103490909B
Authority
CN
China
Prior art keywords
usage scenario
character string
business
business usage
charging
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210194716.0A
Other languages
Chinese (zh)
Other versions
CN103490909A (en
Inventor
乔立秋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201210194716.0A priority Critical patent/CN103490909B/en
Publication of CN103490909A publication Critical patent/CN103490909A/en
Application granted granted Critical
Publication of CN103490909B publication Critical patent/CN103490909B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a kind of charge processing method and device, this method includes, business usage scenario character string corresponding with business usage scenario is obtained according to business usage scenario, wherein, the field for forming business usage scenario character string is used for the attribute information of identification service usage scenario;Whether the business usage scenario character string for judging to obtain matches with the charging identifier character string pre-set;In the case where the judgment result is yes, rate according to corresponding to charging identifier character string carries out charging, pass through the present invention, solve in correlation technique when carrying out charging according to the charge information of complexity, it is numerous and diverse to there is charging, the problem of charging treatment effeciency is low and charging method autgmentability is not strong, and then charging flow simplification, charging treatment effeciency is greatly increased, and is easy to the effect of extension.

Description

Charge processing method and device
Technical field
The present invention relates to the communications field, in particular to a kind of charge processing method and device.
Background technology
When user uses service billing, accounting request is sent to charge system using network element from business, charge system receives Charging is carried out after accounting request.Following two situations be present using the mode of above-mentioned charging:One kind is that business uses network element to meter Charging identifier is carried in the accounting request that charge system is sent, charge system searches rate according to the charging identifier and carries out charging; It is for second without charging identifier is carried in accounting request, now charge system needs to analyze charge information in accounting request simultaneously The rate progress charging for meeting this business usage scenario is found, such as:Only one China user roams into the U.S. and sent an SMS to One Japanese friend;Or only one China user roams into Japan and sends the SMS to a short codes.
Situation for not carrying charging identifier in above-mentioned accounting request, i.e. the combination of miscellaneous service usage scenario is wrong Comprehensive complexity can cause billing logic to realize difficult, degraded performance and not expansible, in addition, when new business usage scenario produces When also due to can not find corresponding rate causes charging failure, made troubles to operator and user.
Therefore, in the prior art when carrying out charging according to the charge information of complexity, it is numerous and diverse charging to be present, charging processing Efficiency is low and the problem of charging method autgmentability is not strong.
The content of the invention
The invention provides a kind of charge processing method and device, at least to solve prior art when the charging according to complexity When information carries out charging, the problem of charging is numerous and diverse, and charging treatment effeciency is low and charging method autgmentability is not strong be present.
According to an aspect of the invention, there is provided a kind of charge processing method, including:Obtained according to business usage scenario Business usage scenario character string corresponding with the business usage scenario, wherein, form the business usage scenario character string Field is used for the attribute information for identifying the business usage scenario;Judge obtain the business usage scenario character string with advance Whether the charging identifier character string of setting matches;In the case where the judgment result is yes, according to the charging identifier character string institute Corresponding rate carries out charging.
Preferably, the business corresponding with the business usage scenario is obtained according to the business usage scenario and uses field Scape character string includes:The accounting request that network element is used from business is received, wherein, carried in the accounting request for institute State the charge information of business usage scenario request charging;The attribute that the business usage scenario is parsed according to the charge information is believed Breath;Business usage scenario word corresponding with the business usage scenario is determined with the corresponding relation of field by the attribute information Symbol string.
Preferably, judge whether are the business usage scenario character string obtained and the charging identifier character string that pre-sets Matching includes:By the charging identifier character string pre-set according to category corresponding to each field in the charging identifier character string Property value descending arrangement storage into internal memory;The business scenario character string for judging to obtain according to the arrangement of property value descending with depositing Whether the charging identifier character string stored up in internal memory matches.
Preferably, judge whether are the business usage scenario character string obtained and the charging identifier character string that pre-sets Matching includes:Determine the rule that business usage scenario character matches with charging identifier character;According to the business usage scenario The rule that character and the charging identifier character match, judge the business usage scenario character string that obtains with advance Whether the charging identifier character string of setting matches.
Preferably, it is with the charging identifier character string pre-set in the business usage scenario character string for judging to obtain Also include after no matching:It is empty meter in the business usage scenario character string of acquisition and all fields for pre-setting In the case that expense identification strings match, it is determined that the business usage scenario obtained is newly-increased business usage scenario, its In, the field does not differentiate between for empty expression to the business usage scenario;Add corresponding to the newly-increased business usage scenario Character string, and rate corresponding to character string corresponding to the newly-increased business usage scenario.
According to another aspect of the present invention, there is provided a kind of billing treatment plant, including:Acquisition module, for according to industry Usage scenario of being engaged in obtains business usage scenario character string corresponding with the business usage scenario, wherein, forming the business makes The attribute information for being used to identify the business usage scenario with the field of scene character string;First judge module, for judging to obtain Whether the business usage scenario character string taken matches with the charging identifier character string pre-set;Accounting module, for In the case that judged result is is, the rate according to corresponding to the charging identifier character string carries out charging.
Preferably, the acquisition module includes:Receiving module, the accounting request of network element is used from business for receiving, Wherein, carry the charge information for charging to be asked the business usage scenario in the accounting request;Parsing module, use In the attribute information that the business usage scenario is parsed according to the charge information;First determining module, for passing through the category Property information and field corresponding relation determine business usage scenario character string corresponding with the business usage scenario.
Preferably, first judge module includes:Memory module, for by the charging identifier character pre-set String is according to the descending arrangement storage of property value corresponding to each field in the charging identifier character string into internal memory;Second judges mould Block, the business scenario character string for judging to obtain are stored to the charging in internal memory with being arranged according to property value descending Whether identification strings match.
Preferably, first judge module includes:Second determining module, by determining business usage scenario character with based on The rule that expense mark character matches;3rd judge module, for according to the business usage scenario character and the charging mark The rule that character learning symbol matches, judges the business usage scenario character string obtained and the charging identifier word pre-set Whether symbol string matches.
Preferably, the 3rd determining module, for the business usage scenario character string in acquisition and the institute that pre-sets It is in the case that empty charging identifier character string matches, it is determined that the business usage scenario obtained is newly-increased to have field Business usage scenario, wherein, the field does not differentiate between for empty expression to the business usage scenario;Add module, for adding State the character string corresponding to newly-increased business usage scenario, and the character string pair corresponding to the newly-increased business usage scenario The rate answered.
By the present invention, field is used using business corresponding with the business usage scenario is obtained according to business usage scenario Scape character string, wherein, the field for forming the business usage scenario character string is used for the attribute for identifying the business usage scenario Information;Whether the business usage scenario character string for judging to obtain matches with the charging identifier character string pre-set;Sentencing In the case that disconnected result is is, the rate according to corresponding to the charging identifier character string carries out charging, solves correlation technique In when carrying out charging according to the charge information of complexity, it is numerous and diverse charging to be present, and charging treatment effeciency is low and charging method extension Property it is not strong the problem of, and then charging flow simplification greatly increases charging treatment effeciency, and be easy to extension Effect.
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of charge processing method according to embodiments of the present invention;
Fig. 2 is the structured flowchart of billing treatment plant according to embodiments of the present invention;
Fig. 3 is the preferred structure block diagram of the acquisition module 22 in billing treatment plant according to embodiments of the present invention;
Fig. 4 is the preferred structure block diagram of the first judge module 24 in billing treatment plant according to embodiments of the present invention One;
Fig. 5 is the preferred structure block diagram of the first judge module 24 in billing treatment plant according to embodiments of the present invention Two;
Fig. 6 is the structured flowchart of billing treatment plant according to the preferred embodiment of the invention;
Fig. 7 is the structured flowchart of charge system according to embodiments of the present invention;
Fig. 8 is the flow chart of business usage scenario according to embodiments of the present invention and charging identifier data configuration;
Fig. 9 is the flow chart of the charging method of string matching according to embodiments of the present invention;
Figure 10 is the flow chart of the charging method of string matching according to the preferred embodiment of the invention.
Embodiment
Describe the present invention in detail below with reference to accompanying drawing and in conjunction with the embodiments.It should be noted that do not conflicting In the case of, the feature in embodiment and embodiment in the application can be mutually combined.
A kind of charge processing method is provided in the present embodiment, and Fig. 1 is charging processing side according to embodiments of the present invention The flow chart of method, as shown in figure 1, the flow comprises the following steps:
Step S102, business usage scenario character string corresponding with business usage scenario is obtained according to business usage scenario, Wherein, the field for forming the business usage scenario character string is used for the attribute information of identification service usage scenario;
Step S104, judge the business usage scenario character string obtained and the charging identifier character string that pre-sets whether Match somebody with somebody;
Step S106, in the case where the judgment result is yes, the rate according to corresponding to charging identifier character string are counted Take.
By above-mentioned steps, the attribute information of business usage scenario is mapped with field, then passes through character string Matching relationship is come charging identifier corresponding to obtaining and the rate corresponding to charging identifier, so as to carry out charging, relative to existing Technology is directed to specific business usage scenario, and charging rate is come charging according to corresponding to obtaining the scene of analysis, by the meter of complexity It is simple character match to take logical abstraction, the problem of charging in the presence of prior art is numerous and diverse is not only solved, moreover, meter Expense identification strings are arranged by property value descending so that what is matched for the first time is that most accurately, enormously simplify logic judgment Complexity, improve the efficiency of charging processing, can be simply in addition, during for introducing new business usage scenario attribute Charging is realized by way of increasing character string, thus autgmentability is preferable.
The mode that corresponding with business usage scenario business usage scenario character string is obtained according to business usage scenario can be with It is a variety of, for example, can be provided by the main body of initiation business, for example, in the subject requests business of the business of initiation, will make with business Corresponding, correspondingly will to obtain afterwards character string carrying asking in initiation is carried out with the relevant attribute information of scene with corresponding character In asking.Although this kind of mode is more easy, since it is desired that numerous operations of user and influence Consumer's Experience, provide here A kind of preferably implementation, receives the accounting request that network element is used from business, wherein, carry and be used in the accounting request To the charge information of business usage scenario request charging;The attribute information of business usage scenario is parsed according to charge information;Pass through Attribute information determines business usage scenario character string corresponding with business usage scenario with the corresponding relation of field.I.e. according to request In field corresponding to entrained charge information parsing obtain business usage scenario character string corresponding to business usage scenario, at this Reason mode need not initiate numerous operations of the operator of business, and enable to obtain business usage scenario character string compared with To be accurate, beneficial to quickly realizing charging.
When whether the business usage scenario character string for judging to obtain matches with the charging identifier character string pre-set, it is More rapidly and accurately match the charging identifier character string pre-set, be able to will be pre-set before being matched Charging identifier character string, into internal memory, is arranged according to the descending arrangement storage of property value corresponding to each field in charging identifier character string The minimum attribute of sequence value is does not differentiate between, therefore, the character string sorting for the attribute not differentiated between to the end, in addition, the size of property value It can set, be illustrated by taking calling number type as an example:Property value can be defined as corresponding to calling number type:1- Domestic consumer, 2- short codes, it is that empty expression does not differentiate between, wherein, the property value 2 of short codes is big more than the property value 1 of domestic consumer In do not differentiate between for sky property value;The business scenario character string for judging to obtain according to the arrangement of property value descending with storing into internal memory Charging identifier character string whether match.By such processing, by the business usage scenario character string of acquisition with setting in advance When the charging identifier character string put is matched, priority match not only increases meter to charging identifier character string the most accurate The accuracy taken, also improve the efficiency of charging processing.
Whether the business usage scenario character string for judging to obtain matches with the charging identifier character string pre-set can also There are various ways, according to the different and different of specific application scenarios, can first determine business usage scenario character and charging mark The rule that matches of character learning symbol, the rule are used for the principle that definition matches, for example, it is equal or by one to define field value It is equal after fixed computing, such as:F (business usage scenario field, charging identifier corresponding field)=0 is to match, and is otherwise Unmatch, and function f there can be diversified forms as needed;The above-mentioned rule to match according to definition, judge the industry obtained Whether business usage scenario character string matches with the charging identifier character string pre-set, in addition, can be phase during matching Deng or forward direction fuzzy matching, depending on specific application scenarios.
The rate pre-set corresponding to the charging identifier character string that field is all empty is base rate, when business uses field When scape character string with charging identifier character string is that null character string matches, charging is carried out with the base rate, wherein, field is Sky represents not differentiating between the business usage scenario, in addition, in this case, subsequently can be according to the concrete condition of base rate Determine whether that pair business usage scenario character string that empty charging identifier string matching is all with the font sets new rate, In the case of it is determined that setting newly-increased rate, i.e. the business usage scenario character string in acquisition and all fields for pre-setting It is in the case that empty charging identifier character string matches, it is determined that the business usage scenario obtained uses field for newly-increased business Scape;Character string corresponding to the newly-increased business usage scenario of addition, and the character string corresponding to newly-increased business usage scenario Corresponding rate.By such processing, charging rate standard can be more clearly improved so that charging is more reasonable.
A kind of billing treatment plant is additionally provided in the present embodiment, and the device is used to realize above-described embodiment and preferred reality Mode is applied, had carried out repeating no more for explanation.As used below, term " module " can realize the soft of predetermined function The combination of part and/or hardware.Although device described by following examples is preferably realized with software, hardware, or The realization of the combination of software and hardware is also what may and be contemplated.
Fig. 2 is the structured flowchart of billing treatment plant according to embodiments of the present invention, as shown in Fig. 2 the device includes obtaining Modulus block 22, the first judge module 24 and accounting module 26, are illustrated to the device below.
Acquisition module 22, for obtaining business usage scenario word corresponding with business usage scenario according to business usage scenario Symbol string, wherein, the field for forming business usage scenario character string is used for the attribute information of identification service usage scenario;First judges Module 24, above-mentioned acquisition module 22 is connected to, for the business usage scenario character string for judging to obtain and the charging pre-set Whether identification strings match;Accounting module 26, above-mentioned first judge module 24 is connected to, for the feelings for being yes in judged result Under condition, the rate according to corresponding to charging identifier character string carries out charging.
Fig. 3 is the preferred structure block diagram of the acquisition module 22 in billing treatment plant according to embodiments of the present invention, such as Fig. 3 Shown, the acquisition module 22 includes receiving module 32, the determining module 36 of parsing module 34 and first.Below to the acquisition module 22 Illustrate.
Receiving module 32, the accounting request of network element is used from business for receiving, wherein, use is carried in accounting request In the charge information for asking business usage scenario charging;Parsing module 34, above-mentioned receiving module 32 is connected to, by based on Charge information parses the attribute information of business usage scenario;First determining module 36, above-mentioned parsing module 34 is connected to, for passing through Attribute information determines business usage scenario character string corresponding with business usage scenario with the corresponding relation of field.
Fig. 4 is the preferred structure block diagram of the first judge module 24 in billing treatment plant according to embodiments of the present invention One, as shown in figure 4, first judge module 24 includes the judge module 44 of memory module 42 and second, below to first judgement Module 24 illustrates.
Memory module 42, for the charging identifier character string that will pre-set according to each field pair in charging identifier character string The descending arrangement storage for the property value answered is into internal memory;Second judge module 44, above-mentioned memory module 42 is connected to, for judging Whether the business scenario character string of acquisition matches with according to the arrangement storage of property value descending to the charging identifier character string in internal memory.
Fig. 5 is the preferred structure block diagram of the first judge module 24 in billing treatment plant according to embodiments of the present invention Two, as shown in figure 5, first judge module 24 includes the 3rd judge module 52 and the second determining module 54.
Second determining module 52, the rule to match for determining business usage scenario character and charging identifier character;The Three judge modules 54, above-mentioned 3rd judge module 52 is connected to, for according to business usage scenario character and charging identifier character Whether the rule to match, the business usage scenario character string for judging to obtain match with the charging identifier character string pre-set.
Fig. 6 is the structured flowchart of billing treatment plant according to the preferred embodiment of the invention, as shown in fig. 6, the device removes Outside including all modules shown in Fig. 2, in addition to the 3rd determining module 62 and add module 64, below to the preferred embodiment Billing treatment plant illustrates.
3rd determining module 62, it is with all fields pre-set for the business usage scenario character string in acquisition In the case that empty charging identifier character string matches, it is determined that the business usage scenario obtained is newly-increased business usage scenario, Wherein, field does not differentiate between for empty expression to the business usage scenario;Add module 64, above-mentioned 3rd determining module 62 is connected to, For adding the character string corresponding to newly-increased business usage scenario, and the character string corresponding to newly-increased business usage scenario Corresponding rate.
The charging method and charge system based on string matching that above-described embodiment and preferred embodiment are provided, it is One kind is directed to complicated business usage scenario charging method and charge system, and this method efficiently, is easily realized, scalability is strong, and Charging failure when solving the problems, such as to introduce new business usage scenario.
A kind of charging method based on string matching is provided in the present embodiment, and this method comprises the following steps:
S1, business usage scenario is abstracted as charging identifier association attributes, more preferably, business usage scenario attribute can be by It is claimed below to be defined:Do not differentiated between for sky expression, non-NULL then represents specifically to be worth, for example, roaming into the U.S., then roaming place belongs to Property be configured to national code 1, and if billing requirements do not differentiate between roaming place, by the attribute configuration of roaming place for sky;
S2, configuration service usage scenario and charging identifier are simultaneously put in storage, and charging identifier in database and its association attributes are pressed Descending arrangement generation charging identifier character string imports internal memory, such as:Business usage scenario charging identifier.It is required that the meter that will do not differentiated between Behind expense scene properties are arranged in.Again a rate, i.e., after charging identifier determines, its rate are associated to each charging identifier Also determine;
S3, the accounting request that business uses network element to send is received, business usage scenario information is carried in accounting request;
S4, charging is carried out according to accounting request, if carrying charging identifier in accounting request, entered according to the charging identifier Row charging;If without charging identifier is carried in accounting request, with the charging identifier word in business usage scenario information and internal memory The charging identifier that symbol String matching arrives carries out charging.
More preferably, fields match can be defined according to claimed below:Charging identifier character string corresponding field can be Sky, when charging identifier String field is space-time, does not differentiate between and match with business usage scenario, charging identifier character string corresponds to word Section can also non-NULL, match with business usage scenario corresponding field during non-NULL(It should be noted that matching herein can be with It is equal, i.e., identical or forward direction fuzzy matching, depending on specific application scenarios).
Equally, string matching can be defined according to claimed below:All fields of current business usage scenario and meter Expense all fields of identification strings all match, and match just exit in time for the first time, charging identifier corresponding to return, no Down continue to match again.
The above-mentioned charging method based on string matching is incorporated into, one kind is additionally provided in the present embodiment and is based on character string The charge system of matching, Fig. 7 is the structured flowchart of charge system according to embodiments of the present invention, as shown in fig. 7, the system includes Protocol process module 72(Realize the partial function of above-mentioned acquisition module 22), number analysis module 74(Realize above-mentioned parsing module 34 function), charging adaptation module 76(Realize the function of above-mentioned matching module 24)With accounting module 78(Realize above-mentioned charging mould The function of block 26).The system is illustrated below.
Protocol process module 72, the accounting request of network element is used for receiving business, charging mark is carried in the accounting request The character learning field such as section and business usage scenario;Responding to business uses network element charging response simultaneously;Number analysis module 74, connection To above-mentioned protocol process module 72, the numbers of calling and called parties in network element accounting request and No. GT of caller are used for analyzing business Code, the business usage scenario information such as ownership place, the roaming place of calling and called user are obtained, so that charging adaptation module uses, number Analysis module method used by carried out analysis of checking numbers is:Carry out searching number data correlation using maximum match principle Table.Charging adaptation module 76, above-mentioned number analysis module 74 is connected to, for the business usage scenario information that will be received, with Charging identifier string matching in internal memory, the charging identifier that output matching arrives;Accounting module 78, it is connected to above-mentioned charging adaptation Module 76, get charging identifier for basis and carry out charging.
The billing logic of complexity is abstracted by charging method that above-described embodiment and preferred embodiment are provided, charge system For simple string matching, realize simple;Because charging identifier character string is by the arrangement of attribute descending, the meter not differentiated between ensure that Behind expense scene properties are arranged in, thus, it ensure that the charging identifier matched for the first time is most accurate, is greatly enhanced Systematic function;If in addition, introducing new business usage scenario attribute, the attribute only need to be appended to charging identifier character string In, you can meet accounting requirements, be easy to the flexibility that extension adds system.
More preferably, when being configured to business usage scenario and charging identifier, a base rate can be configured, at this All fields in the corresponding charging identifier character string of base rate are sky, the meeting when new business usage scenario produces This charging identifier is mixed, therefore, can be by inspecting periodically whether ticket is deposited using the record of base rate to check whether In new business usage scenario, and decide whether new business usage scenario being configured to a new rate.Efficiently solve The problem of new business usage scenario charging failure.
The embodiment of the present invention is illustrated with specific business usage scenario attribute combination accompanying drawing below.For example, business Usage scenario attribute can be whether roam, roaming place, calling number type, called number type, calling number, called number Code, called number ownership place etc., field corresponding to each attribute is with | segmentation.It is as follows to define the rule that field matches:
Each business usage scenario property value implication can be defined as follows:
Calling number type:1- domestic consumers, 2- short codes, do not differentiated between for empty expression.
Called number type:1- domestic consumers, 2- short codes, do not differentiated between for empty expression.
Calling number:Specific number, do not differentiated between for empty expression.
Called number:Specific number, do not differentiated between for empty expression.
Whether caller roams:1- is that 2- is no, is not differentiated between for empty expression.
Caller roaming place:National code is filled out, is not differentiated between for empty expression.
Called number ownership place:National code is filled out, is not differentiated between for empty expression.
Charging identifier character string is:Calling number type | called number type | calling number | called number | whether caller Roaming | caller roaming place | called number ownership place | charging identifier.
Expression does not differentiate between business usage scenario character string:|||||||1.
It is that the character strings of short codes is that calling number, which is that domestic consumer is called,:1|2||||||2.
Caller roams into the U.S. and is called:1|1|||1|1|81|3.
Caller roams into Indonesia and is called:11|||1|62|81|4.
It is 1 that caller, which roams into the U.S. and is called as the character string of Pakistani domestic consumer, | 1 | | | 11 | 92 | 5.
Fig. 8 is the flow chart of business usage scenario according to embodiments of the present invention and charging identifier data configuration, such as Fig. 8 institutes Show, the flow comprises the following steps:
Step S802, configuration service usage scenario and charging identifier, wherein, the business usage scenario and charging identifier pair Should, it is called for example, roaming into the U.S. by interface configurations caller as the common business usage scenario of Japan and charging identifier, and By the business usage scenario configured and charging identifier deposit database;
Step S804, the business usage scenario in database is exported and is loaded into by each attribute descending with charging identifier In internal memory, shown by table 1 is the charging identifier character string in internal memory, as shown in table 1.
Table 1
Fig. 9 is the flow chart of the charging method of string matching according to embodiments of the present invention, as shown in figure 9, this method Including following flow, illustrated in the flow by taking following scenes as an example:In this scenario:Calling number is 8613812345678, the caller roams into the U.S., called number 8119012345678, also, the called number as Japan Common subscriber number, according to pre-defined rule, the business usage scenario character string is:1|1|8613812345678| 8119012345678 | 1 | 1 | 81, including:
Step S902, by above-mentioned business usage scenario character string and internal memory(I.e. table 1 is shown)Charging identifier character String is matched one by one from top to down, and matching process is as shown in table 2, the overstriking and italic field does not match in table 2 Field;
Table 2
Step S904, from the matching process of table 2, above-mentioned business usage scenario character string:1|1|8613812345678 | 8119012345678 | 1 | 1 | 81 and charging identifier character string 11 | | | | 1 | 1 | 81 | 3 match, the charging identifier character string institute Corresponding charging identifier is 3, the charging identifier 3 that output matches for the first time.
Figure 10 is the flow chart of the charging method of string matching according to the preferred embodiment of the invention, as shown in Figure 10, Illustrated in the preferred embodiment by the way of charging method is combined with charge system.Include in the charge system: Protocol process module, charging adaptation module and accounting module, the flow of charging method comprise the following steps:
Step S1002, protocol process module receive business use network element accounting request, in request carry charge number, The attributes such as GT numbers;
Step S1004, protocol process module analysis request message, obtain accounting request and obtain numbers of calling and called parties, number class The information such as type, caller GT numbers;
Step S1006, the information such as numbers of calling and called parties, the type of number, GT numbers are submitted into number analysis module;
Step S1008, number analysis module are analyzed numbers of calling and called parties, number attribution, roaming corresponding to acquisition The business usage scenario information such as ground;
Step S1010, the business usage scenario information that number analysis module obtains is submitted into charging adaptation module;
Business usage scenario and charging identifier string matching are obtained charging identifier by step S1012, charging adaptation module;
Step S1014, charging identifier is submitted into accounting module;
Step S1016, accounting module carry out charging according to the rate information of charging identifier management.
Step S1018, charging result is submitted into protocol process module.
Charging result is transmitted to business and completes primary charging interaction using network element by step S1020, protocol process module.
The charging method and charge system provided by above-described embodiment and preferred embodiment, effectively by complexity Billing logic is reduced to simple string matching, easily realizes;Charging identifier character string is imported into internal memory, while matched for the first time It is upper to return to charging identifier, drastically increase performance;New business can be met by increasing field by charging identifier character string The increase of usage scenario attribute, easily extension;Meanwhile it is effectively prevented from asking for charging failure caused by new business usage scenario Topic.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and formed Network on, alternatively, they can be realized with the program code that computing device can perform, it is thus possible to they are stored Performed in the storage device by computing device, and in some cases, can be with different from shown in order execution herein The step of going out or describing, they are either fabricated to each integrated circuit modules respectively or by multiple modules in them or Step is fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific hardware and software combination.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should be included in the scope of the protection.

Claims (6)

  1. A kind of 1. charge processing method, it is characterised in that including:
    Business usage scenario character string corresponding with the business usage scenario is obtained according to business usage scenario, wherein, form The field of the business usage scenario character string is used for the attribute information for identifying the business usage scenario;
    Whether the business usage scenario character string for judging to obtain matches with the charging identifier character string pre-set;
    In the case where the judgment result is yes, the rate according to corresponding to the charging identifier character string carries out charging;
    Wherein, whether the business usage scenario character string for judging to obtain matches bag with the charging identifier character string pre-set Include:Determine the rule that business usage scenario character matches with charging identifier character;According to the business usage scenario character with The rule that the charging identifier character matches, judge the business usage scenario character string that obtains and pre-set Whether charging identifier character string matches;In the business usage scenario character string for judging to obtain and the charging identifier pre-set Whether character string also includes after matching:It is equal in the business usage scenario character string of acquisition and all fields for pre-setting In the case of matching for empty charging identifier character string, it is determined that the business usage scenario obtained uses for newly-increased business Scene, wherein, the field does not differentiate between for empty expression to the business usage scenario;Add the newly-increased business usage scenario institute Corresponding character string, and rate corresponding to character string corresponding to the newly-increased business usage scenario.
  2. 2. according to the method for claim 1, it is characterised in that obtained according to the business usage scenario makes with the business The business usage scenario character string includes corresponding to scene:
    The accounting request that network element is used from business is received, wherein, carried in the accounting request for making to the business With the charge information of scene request charging;
    The attribute information of the business usage scenario is parsed according to the charge information;
    Business usage scenario corresponding with the business usage scenario is determined with the corresponding relation of field by the attribute information Character string.
  3. 3. according to the method for claim 1, it is characterised in that judge the business usage scenario character string that obtains with it is pre- The charging identifier character string first set whether match including:
    By the charging identifier character string pre-set according to property value corresponding to each field in the charging identifier character string Descending arrangement storage into internal memory;
    The business scenario character string for judging to obtain according to the arrangement of property value descending with storing to the charging mark in internal memory Know whether character string matches.
  4. A kind of 4. billing treatment plant, it is characterised in that including:
    Acquisition module, for obtaining business usage scenario character corresponding with the business usage scenario according to business usage scenario String, wherein, the field for forming the business usage scenario character string is used for the attribute information for identifying the business usage scenario;
    First judge module, for the business usage scenario character string for judging to obtain and the charging identifier character pre-set Whether string matches;
    Accounting module, in the case where the judgment result is yes, the rate according to corresponding to the charging identifier character string to be entered Row charging;
    First judge module includes:Second determining module, for determining business usage scenario character and charging identifier character The rule to match;3rd judge module, for according to the business usage scenario character and the charging identifier character phase The rule matched somebody with somebody, judge the business usage scenario character string obtained and the charging identifier character string that pre-sets whether Match somebody with somebody;3rd determining module, for being sky in the business usage scenario character string of acquisition and all fields for pre-setting Charging identifier character string match in the case of, it is determined that the business usage scenario obtained uses field for newly-increased business Scape, wherein, the field does not differentiate between for empty expression to the business usage scenario;Add module, for adding the newly-increased industry Character string corresponding to usage scenario of being engaged in, and rate corresponding to character string corresponding to the newly-increased business usage scenario.
  5. 5. device according to claim 4, it is characterised in that the acquisition module includes:
    Receiving module, the accounting request of network element is used from business for receiving, wherein, carry and be used in the accounting request To the charge information of business usage scenario request charging;
    Parsing module, for parsing the attribute information of the business usage scenario according to the charge information;
    First determining module, for being determined and the business usage scenario pair by the corresponding relation of the attribute information and field The business usage scenario character string answered.
  6. 6. device according to claim 4, it is characterised in that first judge module includes:
    Memory module, for by the charging identifier character string pre-set according to each field in the charging identifier character string The descending arrangement storage of corresponding property value is into internal memory;
    Second judge module, the business scenario character string for judging to obtain are stored to interior with being arranged according to property value descending Whether the charging identifier character string in depositing matches.
CN201210194716.0A 2012-06-13 2012-06-13 Charge processing method and device Active CN103490909B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210194716.0A CN103490909B (en) 2012-06-13 2012-06-13 Charge processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210194716.0A CN103490909B (en) 2012-06-13 2012-06-13 Charge processing method and device

Publications (2)

Publication Number Publication Date
CN103490909A CN103490909A (en) 2014-01-01
CN103490909B true CN103490909B (en) 2018-03-27

Family

ID=49830881

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210194716.0A Active CN103490909B (en) 2012-06-13 2012-06-13 Charge processing method and device

Country Status (1)

Country Link
CN (1) CN103490909B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106331406A (en) * 2015-06-19 2017-01-11 中兴通讯股份有限公司 Telephone bill processing method and device
CN106097234A (en) * 2016-06-14 2016-11-09 北京交通大学 Harbour based on electronic contract dissipates break-bulk operation automatic charging method and device
CN108122113B (en) * 2017-12-20 2020-11-10 深圳乐信软件技术有限公司 Rate configuration method, device, server and storage medium
CN108197981B (en) * 2017-12-27 2021-04-20 东软医疗系统股份有限公司 Charging method and device for diagnostic medical image
CN109981548B (en) * 2017-12-28 2021-09-10 中移信息技术有限公司 Method and device for analyzing charging message
CN109996202B (en) * 2018-01-02 2021-04-13 中国移动通信有限公司研究院 Flow charging method and device
CN109523326A (en) * 2019-01-18 2019-03-26 北京磁云数字科技有限公司 A kind of charging is shared in the benefit system, method, computer equipment and storage medium
CN112036944A (en) * 2020-08-28 2020-12-04 中国建设银行股份有限公司 Method, device and equipment for determining charge rate and storage medium
CN112613288B (en) * 2020-12-26 2024-01-26 杭州搜车网科技有限公司 Method, device, computer equipment and storage medium for generating bill

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1674521A (en) * 2004-03-24 2005-09-28 华为技术有限公司 Method for realizing batched communication business valuation

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100365980C (en) * 2003-07-31 2008-01-30 华为技术有限公司 Method for realizing charging and charging system
CN100433624C (en) * 2004-03-24 2008-11-12 华为技术有限公司 Method for realizing communication business payment metering
CN100364268C (en) * 2005-04-14 2008-01-23 华为技术有限公司 Charging method
US20120233323A1 (en) * 2009-11-18 2012-09-13 Giuseppe Conte Method and apparatus for use in a communications network
CN101753324A (en) * 2009-12-22 2010-06-23 深圳市汇海科技开发有限公司 Rapid rate configuration and searching method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1674521A (en) * 2004-03-24 2005-09-28 华为技术有限公司 Method for realizing batched communication business valuation

Also Published As

Publication number Publication date
CN103490909A (en) 2014-01-01

Similar Documents

Publication Publication Date Title
CN103490909B (en) Charge processing method and device
CN104699718B (en) Method and apparatus for being rapidly introduced into business datum
CN110032511A (en) A kind of interface test method and interface testing equipment
CN104750760B (en) A kind of implementation method and device for recommending application software
CN106489144A (en) Search engine optimization for Resource TOC
CN102932775A (en) Method and device for carrying out terminal identification by combining IMEI and UA
CN102158541A (en) Shared information acquisition method, device, mobile terminal and server
CN113486051A (en) Industrial internet identification analysis method, system, node and storage medium
CN101420681B (en) Method and apparatus for processing multi-channel request subscription under service management platform
CN106255082A (en) The recognition methods of a kind of refuse messages and system
CN110061931A (en) Clustering method, device, system and the computer storage medium of industry control agreement
CN102014364A (en) Semiautomatic charging accuracy testing method based on virtual call test
CN106027284A (en) Network fault diagnosis method and device
CN106446289B (en) Information query method and device based on Pinpoint
CN103209102A (en) Web quality of service distributed measurement system and method
CN109861998A (en) A kind of plug-in type dynamic analysis system and method based on Big Dipper short message agreement
CN109964473B (en) Voice service response method and device
CN107018088B (en) Transmission link selection method and device
CN107769934A (en) Rate processing method and processing device
CN116821215A (en) OPC UA server searching method based on port inquiry
CN102999581B (en) Measure data access and real-time ordering system for business large user
CN109714378A (en) The recommended method and system of application program
CN105812411A (en) Customization information recommendation method and device
CN101141663B (en) Method and system for improving intelligent network access database efficiency
CN106506687A (en) A kind of information processing method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant