CN102572159B - Branch call ticket processing method and system, and device - Google Patents
Branch call ticket processing method and system, and device Download PDFInfo
- Publication number
- CN102572159B CN102572159B CN201010624257.6A CN201010624257A CN102572159B CN 102572159 B CN102572159 B CN 102572159B CN 201010624257 A CN201010624257 A CN 201010624257A CN 102572159 B CN102572159 B CN 102572159B
- Authority
- CN
- China
- Prior art keywords
- ticket
- minute
- user
- internal memory
- sequence number
- 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
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a branch call ticket processing method, a device and a branch call ticket processing system. The branch call ticket processing method comprises the following steps of: A, extracting branch call tickets of a corresponding user according to a user call ticket inquiry request sent by a call ticket inquiry client; and B, combining the branch call tickets, and feeding the combined call ticket to the call ticket inquiry client. According to the branch call ticket processing method, the device and the branch call ticket processing system, the branch call tickets are not combined until the user inquiries the call tickets according to the inquiry request of the user; and therefore, the user can inquiry the combined call ticket, the waste of the storage space is reduced, and the completeness of the combination of the branch call tickets is improved.
Description
Technical field
The present invention relates to business support technical field, relate in particular to a kind of minute call bill processing method, Apparatus and system.
Background technology
The requirement of arrearage being controlled in order to meet operator, network element device is generally taked this method: if certain key element of user's one-time-consumption behavior ticket surpasses certain amount, cut apart, form a plurality of minutes tickets, in each minute ticket, there is unique ticket sign to show the same consumer behavior that ticket belonged to user in these minute, also have a sign to show that these minute ticket is that first minute ticket, middle minute ticket, the last item divide ticket or be not a minute ticket.
These minute ticket is generally to represent to user by a minute ticket mode after by charge system acquisition process, when user inquires for example voice call of one-time-consumption behavior of oneself, a GPRS online like this, can inquire many minutes tickets, the misunderstanding that causes user session list, think it oneself is originally one-time-consumption behavior, by operator, cut into repeatedly, while particularly dividing ticketing to deal with improperly, customer complaint is more serious.
Therefore, for segmentation ticket, must divide ticket to merge and process, although the network element device of operator is cut apart, need to represent a complete ticket to user, to represent user's a complete consumer behavior.
For minute ticket, merging the requirement that represents processing is generally to take the time started that the minimum time started of all minutes tickets of segmentation ticket is Consolidate CDR, the duration that the duration sum of all minutes tickets of take is Consolidate CDR, the fee item expense that the fee item expense accumulative total sum of all minutes tickets of take is Consolidate CDR.
Existing minute ticket merges treatment technology and has following defect:
1, in existing minute ticket treatment technology, needing increases special merging module between charging processing and bill storage, that is to say and must wait for that ticket merges rear user and just can inquire ticket;
2, need jumbo memory spaces (MDB or memory queue) to preserve a minute ticket, because MDB or memory queue need to be persisted to hard disk, therefore need the dual space of internal memory and disk to preserve.
If 3 by above technology, take arrange duration threshold value, amount threshold or capacity of queue's threshold methods guarantee space can be occupied too much, can cause some minute ticket to be failed merged, thereby cause that user disputes on.
4, the order due to initial and end ticket arrival queue is not precedence relationship, but the order of various situations all likely, therefore take first ticket, interim UDR or tail ticket as sign merges processing, also can cause some minute ticket to be failed merged, thereby cause that user disputes on.
Summary of the invention
The object of the invention is to, a kind of minute call bill processing method, Apparatus and system are provided, reduce waste of storage space, improve the integrality that minute ticket merges.
For achieving the above object, according to an aspect of the present invention, provide a kind of minute call bill processing method, comprising:
Minute ticket of relative users is extracted in A, the user's CDR inquiry request sending according to CDR inquiry client; B, described minute ticket merged, and the ticket after merging is fed back to CDR inquiry client.
Wherein, steps A specifically comprises: according to the ticket of the described user in user's CDR inquiry requesting query call bill data storehouse; According to the request of described user's CDR inquiry, from call bill data storehouse, inquire about the ticket of corresponding ticket sequence number; From the ticket of corresponding ticket sequence number, extract a minute ticket; In step B, a minute ticket for corresponding ticket sequence number is merged.
In addition, step B also comprises: the described minute ticket inquiring is inserted in interim internal memory, minute ticket in described interim internal memory is merged; After being fed back to CDR inquiry client, ticket after merging empties described interim internal memory.
For achieving the above object, according to another aspect of the present invention, provide a kind of Dynamic merge device, comprising: receiver module, the user's CDR inquiry request sending for receiving CDR inquiry client; Enquiry module, for according to minute ticket of described user's CDR inquiry requesting query relative users; Merge module, for described minute ticket merged; Sending module, for feeding back to CDR inquiry client by the ticket after merging.
Wherein, merge module and comprise: interim internal memory, for preserving minute ticket of same ticket sequence number;
Merge submodule, minute ticket in described interim internal memory is merged, empty described interim internal memory after the ticket after merging is sent to described sending module.
Wherein, enquiry module comprises: inquiry submodule, for according to the ticket of the corresponding ticket sequence number in user's CDR inquiry requesting query call bill data storehouse;
Extract submodule, for the ticket from corresponding ticket sequence number, extract a minute ticket.
For achieving the above object, according to another aspect of the present invention, provide a kind of minute ticket treatment system, comprising: CDR inquiry client, for the request of user's CDR inquiry being sent to Dynamic merge device according to customer requirements; Described Dynamic merge device, for extract minute ticket of relative users from call bill data storehouse according to the request of described user's CDR inquiry, merges described minute ticket, and the ticket after merging is fed back to CDR inquiry client; Described call bill data storehouse, for storing user's ticket.
Wherein, the database of the database of described call bill data library file system form or ORACLE relational database form.Described Dynamic merge device, also, for after merging minute ticket, discharges its interim internal memory.
In addition, this system also comprises: message accounting, for a minute ticket is carried out after charging processing, is saved to described call bill data storehouse by described minute ticket.
Of the present invention minute call bill processing method, Apparatus and system, the inquiry request based on user just merges a minute ticket when user inquires about ticket, when guaranteeing the inquiry of user's Consolidate CDR, reduces waste of storage space, improves the integrality that minute ticket merges.
Accompanying drawing explanation
Fig. 1 is the flow chart that the present invention divides call bill processing method embodiment;
Fig. 2 is the structure chart of Dynamic merge device embodiment of the present invention;
Fig. 3 is the structure chart of enquiry module embodiment of the present invention;
Fig. 4 is the structure chart that the present invention merges module embodiment;
Fig. 5 is the structure chart that the present invention divides ticket treatment system embodiment.
Embodiment
Below in conjunction with accompanying drawing, the present invention is described in detail.
embodiment of the method
As shown in Figure 1, the present invention divides the embodiment of call bill processing method to comprise the following steps:
Wherein, user can arrange the request of user's CDR inquiry, requires the inquiry ticket of section sometime, or inquires about the ticket of a certain class business; In the ticket inquiring, may comprise the ticket of one or many consumer behavior; If the ticket inquiring is repeatedly the ticket of consumer behavior, according to following flow process, process, if the ticket inquiring is the ticket of one-time-consumption behavior, directly ticket is inserted in interim internal memory and merges;
Below by instantiation, the present invention is described in detail.
Receive and receive after user's inquiry request, all user's tickets of inquiry mobile phone number 1395511****, press ticket sequence number by this user's ticket and sort rear as shown in the table.
Phone number | The other side's number | Ticket sequence number | Divide ticket sign | |
Article 1, | 1395511**** | 1390551**01 | 0000001 | 01 |
Article 2, | 1395511**** | 1390551**01 | 0000001 | 99 |
Article 3, | 1395511**** | 1390551**02 | 0000002 | 00 |
Article 4, | 1395511**** | 1390551**03 | 0000003 | 01 |
Article 5, | 1395511**** | 1390551**03 | 0000003 | 99 |
The list of traversal user ticket, first judge whether the 1st be a minute ticket, after being judged as minute ticket by minute ticket sign, continue to judge whether the ticket sequence number of this ticket is same as a upper ticket sequence number of processing ticket, owing to being the 1st ticket processing, so the last ticket sequence number of processing ticket is empty, different with the ticket sequence number of the 1st ticket, therefore judge and in interim internal memory, whether have a minute ticket writing, interim internal memory is now empty, therefore this minute ticket is inserted in interim internal memory.
Continue to traverse the 2nd ticket, determine whether a minute ticket, after being judged as minute ticket by minute ticket sign, continue to judge whether the ticket sequence number of this ticket is same as a upper ticket sequence number of processing ticket, due to ticket sequence number identical (being all 0000001), therefore this minute ticket is inserted in interim internal memory.
Continue to traverse the 3rd ticket, determine whether a minute ticket, by a minute ticket sign judgement, it is not a minute ticket, directly export ticket, judge again in interim internal memory whether have a minute ticket writing, owing to there being minute ticket of 2 same sequence number in interim internal memory, minute ticket in interim internal memory is merged, after merging, empty interim internal memory, and the ticket after output merging;
Continue to traverse the 4th ticket, first judge whether the 4th be a minute ticket, after being judged as minute ticket by minute ticket sign, continue to judge whether the ticket sequence number of this ticket is same as a upper ticket sequence number of processing ticket, owing to being that the ticket sequence number of the 4th ticket is different with the ticket sequence number of the 3rd ticket, therefore judge and in interim internal memory, whether have described minute ticket writing, interim internal memory is now empty, therefore this minute ticket is inserted in interim internal memory.
Continue to traverse the 5th ticket, determine whether a minute ticket, after being judged as minute ticket by minute ticket sign, continue to judge whether the ticket sequence number of this ticket is same as a upper ticket sequence number of processing ticket, due to ticket sequence number identical (being all 0000003), therefore this minute ticket is inserted in interim internal memory.
After traversal finishes, again judge in interim internal memory whether have a minute ticket writing, now in interim internal memory, have 2 minutes ticket writings, need to merge, after merging, empty interim internal memory, and the ticket after output merging.
What in interim memory field, preserve is minute ticket writing of the each process of consumption of user (being same ticket sequence).
Need in both cases this ticket to be inserted into interim memory field: 1, current ticket is a minute ticket, and the ticket sequence number of this minute ticket is when identical with a upper ticket sequence number of processing ticket; 2, current ticket is a minute ticket, and the ticket sequence number of this minute ticket when different with a upper ticket sequence number of processing ticket but there is no record in internal memory temporarily.The 2nd, 5 tickets in above-mentioned example are the 1st kind of situations; Article 1, ticket is the 2nd kind of situation
Need in both cases the ticket in interim memory field to merge, export, and empty temporary area: if 1 current ticket is a minute ticket, and when the ticket sequence number of the ticket sequence number of this minute ticket and a upper processing ticket is different, in interim internal memory, there is ticket; 2, when ticket still has ticket in interim internal memory when all processing finishes.The 3rd ticket in above-mentioned example is the 1st kind of situation, and last processing is the 2nd kind of situation.
The method of the present embodiment, by adopting based on user's inquiry request, the mode of Dynamic merge ticket when user inquires about ticket, having solved prior art divides ticket merging treatment technology to need ticket to wait for, after merging, just can inquire about ticket, committed memory and disk space too much, a minute ticket fails the defect such as merged, guaranteeing, on the basis of timely inquiring user Consolidate CDR, to reduce waste of storage space, improve the integrality that minute ticket merges.
device embodiment
As shown in Figure 2, Dynamic merge device embodiment of the present invention comprises:
Receiver module 22, the user's CDR inquiry request sending for receiving CDR inquiry client;
Enquiry module 24, for according to minute ticket of described user's CDR inquiry requesting query relative users;
Merge module 26, for described minute ticket merged;
Sending module 28, for feeding back to CDR inquiry client by the ticket after merging.
Wherein, enquiry module 24 comprises:
Extract submodule 244, for the ticket from corresponding ticket sequence number, extract a minute ticket.
In addition, merging module 26 comprises:
Interim internal memory 262, for preserving minute ticket of same ticket sequence number;
Merge submodule 264, minute ticket in described interim internal memory is merged, empty described interim internal memory after the ticket after merging is sent to described sending module.
The Dynamic merge device of the present embodiment, by according to user's inquiry request, the mode of Dynamic merge ticket when user inquires about ticket, having solved prior art divides ticket merging treatment technology to need ticket to wait for, after merging, just can inquire about ticket, committed memory and disk space too much, a minute ticket fails the defect such as merged, guaranteeing, on the basis of timely inquiring user Consolidate CDR, to reduce waste of storage space, improve the integrality that minute ticket merges.
system embodiment
As shown in Figure 5, the present invention divides ticket treatment system embodiment to comprise:
Message accounting 52, for a minute ticket is carried out after charging processing, is saved to call bill data storehouse by described minute ticket; Ticket is no longer set before bill storage and merges module, what in call bill data storehouse, preserve is user's minute ticket, need to be in internal memory MDB and disk in former like this charge system minute ticket of dual preservation take up room and be reduced, only need in call bill data storehouse, preserve a ticket that divides;
CDR inquiry client 58, for according to customer requirements, the request of user's CDR inquiry being sent to Dynamic merge device, and receives the result that Dynamic merge device returns and represents;
Dynamic merge device 56, for extract minute ticket of relative users from call bill data storehouse according to the request of described user's CDR inquiry, merges described minute ticket, and the ticket after merging is fed back to CDR inquiry client; Because Dynamic merge device is to ask phone bill to merge according to all minutes tickets in storehouse based on user, therefore do not exist a minute ticket to leak merged situation, and apply for behind interim memory field while merging, after being passed to CDR inquiry client, the ticket after merging discharges interim memory field, and can committed memory or disk space;
Call bill data storehouse 54, for storing user's ticket, preserves minute ticket that charge system imports, and receives and feed back the inquiry request of Dynamic merge module in call bill data storehouse, inquiry request can be for example SQL statement of structured language; The database of the database of call bill data library file system form or ORACLE relational database form, as long as user's a minute ticket is stored in this database, can be queried, and to be combined just can be queried to afterwards such as does not need.Ticket in call bill data storehouse, except essential key element (as voice ticket: caller or called, calling number, called number, air time, the duration of call etc.), also needs to have ticket sequence identifier and a minute ticket sequence number.
Dynamic merge device 56, also, for after merging minute ticket, discharges its interim internal memory.Dynamic merge device 56 comprises interim memory field.What in interim memory field, preserve is minute ticket writing of the each process of consumption of user (being same ticket sequence), Dynamic merge for the ease of minute ticket, this district just applies for after minute ticket merges, being released dynamic assignment and release by interim internal memory when user divides ticket to merge.
The system of the present embodiment, by adopting based on user's inquiry request, the mode of Dynamic merge ticket when user inquires about ticket, having solved prior art divides ticket merging treatment technology to need ticket to wait for, after merging, just can inquire about ticket, committed memory and disk space too much, a minute ticket fails the defect such as merged, guaranteeing, on the basis of timely inquiring user Consolidate CDR, to reduce waste of storage space, improve the integrality that minute ticket merges.
It should be noted that: above embodiment is only unrestricted in order to the present invention to be described, the present invention is also not limited in above-mentioned giving an example, and all do not depart from technical scheme and the improvement thereof of the spirit and scope of the present invention, and it all should be encompassed in claim scope of the present invention.
Claims (5)
1. a minute call bill processing method, is characterized in that, comprising:
Minute ticket of relative users is extracted in A, the user's CDR inquiry request sending according to CDR inquiry client;
B, described minute ticket merged, and the ticket after merging is fed back to CDR inquiry client;
Described steps A specifically comprises:
According to the request of described user's CDR inquiry, from call bill data storehouse, inquire about the ticket of corresponding ticket sequence number;
From the ticket of corresponding ticket sequence number, extract a minute ticket;
In described step B, a minute ticket for corresponding ticket sequence number is merged;
Described step B specifically comprises:
The described minute ticket inquiring is inserted in interim internal memory, minute ticket in described interim internal memory is merged;
After being fed back to CDR inquiry client, ticket after merging empties described interim internal memory.
2. a Dynamic merge device, is characterized in that, comprising:
Receiver module, the user's CDR inquiry request sending for receiving CDR inquiry client;
Enquiry module, for according to minute ticket of described user's CDR inquiry requesting query relative users;
Merge module, for described minute ticket merged;
Sending module, for feeding back to CDR inquiry client by the ticket after merging;
Described merging module comprises:
Interim internal memory, for preserving minute ticket of same ticket sequence number;
Merge submodule, minute ticket in described interim internal memory is merged, empty described interim internal memory after the ticket after merging is sent to described sending module;
Described enquiry module comprises:
Inquiry submodule, for according to the ticket of the corresponding ticket sequence number in user's CDR inquiry requesting query call bill data storehouse;
Extract submodule, for the ticket from corresponding ticket sequence number, extract a minute ticket.
3. a minute ticket treatment system, is characterized in that, comprising:
CDR inquiry client, for being sent to Dynamic merge device according to customer requirements by the request of user's CDR inquiry;
Described Dynamic merge device, for inquiring about the ticket of corresponding ticket sequence number according to the request of described user's CDR inquiry from call bill data storehouse; From the ticket of corresponding ticket sequence number, extract a minute ticket; The described minute ticket inquiring is inserted in interim internal memory, minute ticket in described interim internal memory is merged; After being fed back to CDR inquiry client, ticket after merging empties described interim internal memory;
Described call bill data storehouse, for storing user's ticket.
4. according to claim 3 minute ticket treatment system, is characterized in that, the database of the database of described call bill data library file system form or ORACLE relational database form.
5. according to claim 3 minute ticket treatment system, is characterized in that, also comprises:
Message accounting, for a minute ticket is carried out after charging processing, is saved to described call bill data storehouse by described minute ticket.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010624257.6A CN102572159B (en) | 2010-12-31 | 2010-12-31 | Branch call ticket processing method and system, and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010624257.6A CN102572159B (en) | 2010-12-31 | 2010-12-31 | Branch call ticket processing method and system, and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102572159A CN102572159A (en) | 2012-07-11 |
CN102572159B true CN102572159B (en) | 2014-02-26 |
Family
ID=46416594
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010624257.6A Active CN102572159B (en) | 2010-12-31 | 2010-12-31 | Branch call ticket processing method and system, and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102572159B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114245330B (en) * | 2021-11-17 | 2024-04-02 | 中国联合网络通信集团有限公司 | Method, apparatus, device, computer readable storage medium and product for bill merging |
CN116684837B (en) * | 2023-07-19 | 2023-10-03 | 贵阳朗玛通信科技有限公司 | Billing preprocessing method and device for ticket |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1859505A (en) * | 2006-03-10 | 2006-11-08 | 华为技术有限公司 | Bill checking system and method |
CN101114915A (en) * | 2007-08-23 | 2008-01-30 | 华为技术有限公司 | Method and apparatus for call list combination and buffer queue state conservation |
EP2117162A1 (en) * | 2007-04-12 | 2009-11-11 | Huawei Technologies Co., Ltd. | Charging method, routing method and relative device based on number portability |
CN101729709A (en) * | 2008-11-03 | 2010-06-09 | 中国移动通信集团广西有限公司 | Method and device for processing branch ticket |
-
2010
- 2010-12-31 CN CN201010624257.6A patent/CN102572159B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1859505A (en) * | 2006-03-10 | 2006-11-08 | 华为技术有限公司 | Bill checking system and method |
EP2117162A1 (en) * | 2007-04-12 | 2009-11-11 | Huawei Technologies Co., Ltd. | Charging method, routing method and relative device based on number portability |
CN101114915A (en) * | 2007-08-23 | 2008-01-30 | 华为技术有限公司 | Method and apparatus for call list combination and buffer queue state conservation |
CN101729709A (en) * | 2008-11-03 | 2010-06-09 | 中国移动通信集团广西有限公司 | Method and device for processing branch ticket |
Also Published As
Publication number | Publication date |
---|---|
CN102572159A (en) | 2012-07-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102880956B (en) | Paying server and payment channel integration method | |
CN106959963A (en) | A kind of data query method, apparatus and system | |
CN100483411C (en) | Information searching method and device in relation ship data bank | |
CN106547612A (en) | A kind of multi-task processing method and device | |
CN105589864A (en) | Data inquiry method and apparatus | |
CN105303437A (en) | Processing method and device for account checking | |
CN102467525A (en) | Document associating method and system | |
CN101710320A (en) | Statistical index data processing method and device | |
CN101751475B (en) | Method for compressing section records and device therefor | |
CN107870982A (en) | Data processing method, system and computer-readable recording medium | |
CN102572159B (en) | Branch call ticket processing method and system, and device | |
CN101729709B (en) | Method and device for processing branch ticket | |
CN108563776A (en) | Off-line data acquisition methods and system, server and storage medium | |
CN110738528A (en) | Preprocessing method and system for regular freight rates | |
CN102486775A (en) | Method and device for querying business data | |
CN102737061A (en) | Distributed ticket query management system and method | |
CN107451301B (en) | Processing method, device, equipment and storage medium for real-time delivery bill mail | |
CN107656943B (en) | Task query method and server | |
CN105681287A (en) | Screening rule based user service allocation screening method | |
CN101217690A (en) | A system and method for realizing distributed storage of data operation and data information | |
CN101799803B (en) | Method, module and system for processing information | |
CN102043867B (en) | Internal memory dotting-based data calling method for acquisition system | |
CN101477654A (en) | Report generation system and method | |
CN106951452A (en) | The data query method and device reviewed for account | |
CN107070987A (en) | Data capture method and system for distributed objects storage 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 | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |