CN107708082A - One kind supplement charging method and device - Google Patents

One kind supplement charging method and device Download PDF

Info

Publication number
CN107708082A
CN107708082A CN201610644532.8A CN201610644532A CN107708082A CN 107708082 A CN107708082 A CN 107708082A CN 201610644532 A CN201610644532 A CN 201610644532A CN 107708082 A CN107708082 A CN 107708082A
Authority
CN
China
Prior art keywords
charging
bill
offline
offline bill
overtime
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.)
Granted
Application number
CN201610644532.8A
Other languages
Chinese (zh)
Other versions
CN107708082B (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.)
China Mobile Communications Group Co Ltd
China Mobile Group Hubei Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Hubei Co Ltd
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 China Mobile Communications Group Co Ltd, China Mobile Group Hubei Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201610644532.8A priority Critical patent/CN107708082B/en
Publication of CN107708082A publication Critical patent/CN107708082A/en
Application granted granted Critical
Publication of CN107708082B publication Critical patent/CN107708082B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing

Abstract

The embodiment of the invention discloses one kind to supplement charging method, including:Obtain the online telephone bill of the overtime not charging generated based on online charging mode;After the offline bill added with charging identifier is generated, each offline bill added with not charging identifier is obtained;In acquired each offline bill, the offline bill corresponding with the online telephone bill of the overtime not charging is found out;Based on the offline bill found out, charging processing is carried out.The embodiment of the invention also discloses one kind to supplement message accounting.

Description

One kind supplement charging method and device
Technical field
The present invention relates to charge on traffic technology, more particularly to a kind of supplement charging method and device, can pass through in user Charging phenomenon is leaked when mobile terminal accesses mobile internet, caused by switching with offline charging for online charging to enter Row supplement charging.
Background technology
User is by mobile terminal when accessing mobile internet at present, and the charging modes of caused network traffics can be with It is online charging mode or offline charging mode;Here, mobile internet can be 2G networks, 3G network or 4G Network, can be according to gateway general packet radio service (General Packet Radio for online charging mode Service, GPRS) supporting node (Gateway General Packet Radio Service Support Node, GGSN diameter credit control of the)/PDN Gateway (Public Data Network Gate Way, PGW) between BOSS charge systems (Diameter Credit Control, DCC) interacting message, realizes online charging, for offline charging mode, can pass through The offline bill that GGSN/PGW is issued carries out offline charging;Generally, in synchronization, determined to use online charging by GGSN/PGW Mode or offline charging mode.
When carrying out the charging of network traffics according to online charging mode, GGSN/PGW can issue simultaneously offline bill to from Line charge system, here, off-line accounting system can use Convergent Billing Engine (Convergence Billing Engine, CBE) charge system is realized, not charging identifier can be added with offline bill now, and exemplarily, charging identifier can be with for this For special marking (3136), charging identifier is not used to prompt the off-line accounting system offline bill by online charging mode to enter for this Row charging is handled, and the offline bill need not carry out repetition charging in off-line accounting system;Therefore, the meter of user is finally showed Nonsense list is:Based on the interacting message between GGSN/PGW, BOSS charge system and off-line accounting system, and tearing open according to setting The ticket of single output with conditions.
For user when accessing mobile internet by mobile terminal, the duration for accessing mobile internet may be from Several seconds to tens hours, GGSN/PGW can access the duration or flow threshold of mobile internet according to mobile terminal, Ticket fractionation is carried out according to the singulated rule of setting during mobile terminal access mobile internet, until user's active Shen Please mobile terminal from untill mobile internet is offline.
Below so that user's gprs service accesses mobile internet as an example, the process split to ticket illustrates.
Specifically, user opens a phone number to mobile operator applications first, in the mobile phone for being opened When number application opens gprs service, online charging function can be opened, charging mode that the phone number opened uses etc. Information can be written into opened phone number ownership place attaching position register (Home Location Register, HLR in)/home signature user server (Home Subscriber Server, HSS);User uses the cell-phone number opened When code uses gprs service, GGSN/PGW can read the data on ownership place HLR/HSS, and determine institute based on the data read Using the charging mode of network traffics, i.e. decision uses online charging mode or offline charging mode.
Usage behavior from access gprs service to gprs service in the time for stop using gprs service is referred to as once Gprs service session, when user uses gprs service using the phone number opened every time, GGSN/PGW can face to the user When distribute a gprs service session id, until user actively stops gprs service, the gprs service session id will not change; During using gprs service, GGSN/PGW will then send a diameter credit control if it is determined that the user has opened online charging function (Credit Control Request, CCR) (Initial) message is asked to carry out online charging to BOSS charge systems, application, Here, CCR (Initial) message include this gprs service session id, this gprs service session start time, this Gprs service session updates time, this gprs service session required GGSN/PGW volumes used when carrying out Network account Number, Serving GPRS Support Node (Serving GPRS Support Node, SGSN) used in this gprs service session compiles Number, the numbering of business used in this gprs service session;When actually implementing, used based on the phone number opened During gprs service, GGSN/PGW can carry out ticket fractionation when gprs service session meets the singulated condition of setting, As this gprs service session updates time at the time of the singulated condition that gprs service session meets to set.
BOSS charge systems are determined based on CCR (Initial) message received, and according to user's residual flow and expense Determine whether user can continue to use gprs service, and corresponding determination result is passed through into Credit Control Answer (Credit Control Answer, CCA) (Initial) message returns result to GGSN/PGW, and GGSN/PGW is according to the decision received Structure, control user are continuing with gprs service or user is stopped using gprs service.
Here, during gprs service is used based on the phone number opened, GGSN/PGW can be in gprs service When session meets the singulated condition of setting, an offline bill is split out, meanwhile, CCR can be reported to BOSS charge systems (Update) message, has prompted BOSS charge systems to split an online telephone bill, and BOSS charge systems are receiving CCR (Update) After message, user's residual flow can be calculated, and is based on user's residual flow, issues the authorization message of a quantitative flow extremely The authorization message that GGSN/PGW, GGSN/PGW issue according to BOSS charge systems, flow is distributed for the gprs service that user uses.
It should be noted that the singulated condition corresponding with online telephone bill of singulated condition corresponding to above-mentioned offline bill keeps one Cause, that is to say, that each online telephone bill forms corresponding relation with an offline bill;For example, online telephone bill/offline bill Singulated condition can be:The duration of this gprs service session reaches 30 minutes, or makes for this gprs service session Network traffics reach 2.5M, or are switched for this gprs service session using SGSN.
Caused first online telephone bill/offline bill is used for from this gprs service when user uses gprs service Session start time point to first time ticket splits network traffics caused by time point and carries out charging, and user uses gprs service When caused k-th of online telephone bill/offline bill split the time to kth time ticket with splitting time point from -1 ticket of kth Network traffics caused by point are corresponding, and k is the natural number more than 1.
As can be seen that during the entire process of user uses gprs service, when carrying out online charging/offline charging, only Singulated condition corresponding to meeting, will carry out corresponding to ticket split, until user actively stop using gprs service or GGSN/PGW control users stop using gprs service;In actual applications, GGSN/PGW controls user to stop using GPRS industry The condition of business can be:BOSS charge systems send to GGSN/PGW and use the last residual flow of gprs service comprising user CCA (Update) message of authorization message, has prompted GGSN/PGW after the completion of last residual flow use, and control user stops Use gprs service.
It is described further below for online charging process.
Specifically, after user initiates the request of access mobile internet by mobile terminal, GGSN/PGW is to CCR (Initial) message is to BOSS charge systems;BOSS charge systems are after CCR (Initial) message is received, by this movement eventually The Network session information (session) for terminating mobile internet is saved in session container (Session Store), Here, session container can use memory to realize;BOSS charge systems according to CCR (Initial) message of reception, to GGSN/PGW sends the permission usage amount information of network traffics;GGSN/PGW, can be to after it is determined that allowing usage amount use BOSS charge systems report CCR (Update) message, to ask BOSS charge systems to issue the permission of a new network traffics Usage amount information, BOSS charge systems can be according to CCR (Update) message of reception, it is determined that corresponding allow making for usage amount With situation, and online charging can be carried out according to the service condition of identified permission usage amount, while updated in session container Network session information.
It should be noted that this Network session knot when actively application is offline from mobile internet by user Beam, now, GGSN/PGW report Term message to give BOSS charge systems, BOSS charge systems based on the Term message received, Determine that the charging process of this Network session is completed;The process of mobile internet is accessed by mobile terminal in user In, BOSS charge systems can be according to the singulated condition of setting, and the content generation in dialogue-based container is at least one online Ticket, after BOSS charge systems receive the Term message that GGSN/PGW is reported, the last of this Network session can be generated One online telephone bill.
When GGSN/PGW interacts with BOSS charge systems abnormal, or GGSN/PGW interacts extremely with mobile terminal When, the charging mode of network traffics is switched to offline charging mode by GGSN/PGW by online charging mode, now, BOSS chargings system Follow-up CCR (Update) message and Term message will not be received by uniting, the network industry in BOSS charge system recording conversation containers Business session information, and this network is generated based on the Network session information recorded after the time-out time of setting is reached The last item online telephone bill of service conversation.
When GGSN/PGW interacts abnormal with BOSS charge systems, DCC message interrupts, GGSN/PGW may be caused A kind of concrete condition of exception is interacted with BOSS charge systems to be:GGSN/PGW interacts with BOSS charge systems Time-out, for example, after GGSN/PGW initiates CCR (Initial) message to BOSS charge systems, BOSS meters are not received in 3 timesharing The response message of charge system, then confirm that GGSN/PGW interacts time-out with BOSS charge systems.
After the charging mode of network traffics is switched to offline charging mode by GGSN/PGW by online charging mode, GGSN/ Addition needs charging identifier in the offline bill that PGW issues to off-line accounting system, and the needs off-line accounting system is needed to adding Added with needing the offline bill of charging identifier to carry out normal billing, and before this Network conversation end, will not again by Charging mode switchs to online charging mode by offline charging mode, that is to say, that follow-up caused by this Network session Network traffics carry out charging by offline charging mode.
As can be seen that online telephone bill is generated by BOSS charge systems, offline bill is generated by GGSN/PGW;By network flow When the charging mode of amount switchs to offline charging mode by online charging mode, BOSS charge systems can generate this Network meeting The last item online telephone bill of words;Meanwhile GGSN/PGW can generate the offline bill added with charging identifier.
At the time of the charging mode of network traffics is switched into offline charging mode by online charging mode, because BOSS is counted Charge system can not know the service condition of the operation usage amount of the network traffics of the last time, therefore, the generation of BOSS charge systems The last item online telephone bill of this Network session will not carry out charging, here it is possible to which BOSS charge systems are generated The last item online telephone bill of this Network session be designated as the online telephone bill of overtime not charging.
After the charging mode of network traffics is switched into offline charging mode by online charging mode, in order to avoid repeating to count Take, first offline bill that GGSN/PGW is issued still added with not charging identifier, so causes to include charging mode occurs Caused network traffics in a period of time at the time point of transformation, both will not by online charging mode charging, also will not by from Line charging mode charging, that is, generate Lou charging phenomenon.
It is illustrative to the generation principle for leaking charging phenomenon below by accompanying drawing.
Fig. 1 is the principle schematic of leakage charging phenomenon caused by being changed in the prior art by charging mode, as shown in figure 1, At the T0 moment, the mobile terminal of user starts to access mobile internet, this Network session start, now, by online Charging mode carries out charging, the singulated timing for the message initiated settings of CCA that GGSN/PGW can issue according to BOSS charge systems Device.
At the T1 moment, GGSN/PGW has found to reach the singulated condition of setting by singulated timer, and GGSN/PGW can be to BOSS charge systems report a CCR message, are carried in the CCR message big using flow in overtime duration threshold value, this duration Cell-phone number corresponding to small (from network traffics size used in the T0 moment to T1 moment mobile terminals), this Network session The GGSN/PGW that code, this Network session id, this Network session use is numbered, this Network session uses SGSN numberings, at the beginning of this Network session between point, ticket split identification information etc.;Here, overtime duration threshold Value is the threshold value set for GGSN/PGW and BOSS charge systems the interacting message time, as GGSN/PGW and BOSS chargings system When the failures such as network interruption occur for the interacting message of system, if waiting time exceedes overtime duration threshold value, by the meter of network traffics Expense mode switchs to offline charging mode by online charging mode;Overtime duration threshold value can be configured according to actual conditions, example Such as, overtime duration threshold value could be arranged to 1800 seconds;Ticket splits identification information and can serve to indicate that the spy carried in CCR message Calibration know, BOSS charge systems according to the specific identifier distinguish this Network session whether carry out it is singulated, for example, CCR disappears When specific identifier 203 is carried in breath, BOSS charge systems judge that this Network session needs progress singulated first.
Obviously, at the beginning of this Network session between point be the T0 moment;GGSN/PGW is in BOSS charge systems While reporting CCR message, an offline bill added with not charging identifier can be split out, will now be split out added with not The offline bill of charging identifier is designated as offline bill 1;BOSS charge systems can split out one online after CCR message is received Ticket, the online telephone bill now split out is designated as online telephone bill 1;Here, offline bill 1 and online telephone bill 1 with the T0 moment It is corresponding to network traffics caused by the T1 moment;Online telephone bill 1 is the meter of network traffics caused by the T0 moment to T1 moment Take foundation, the content of online telephone bill 1 is the content for the CCR message that GGSN/PGW is reported at the T1 moment to BOSS charge systems; BOSS charge systems while online telephone bill content, can inform GGSN/ at fractionation by issuing CCA message to GGSN/PGW The permission usage amount of network traffics of the PGW since the T1 moment, BOSS charging centers when issuing CCA message to GGSN/PGW, The overtime timer of setting can be started.
At the T2 moment, due to network failure, the reason such as signal receiving strength is low, access network switches, cause GGSN/ Exception is interacted between PGW and BOSS charge systems, BOSS charge systems will not receive what GGSN/PGW was reported from the T2 moment CCR message;The overtime timer that BOSS charge systems start persistently carries out overtime detection, and at the T4 moment, BOSS charge systems open The time of dynamic overtime timer reaches, and BOSS charge systems still do not receive the CCR message that GGSN/PGW is reported, BOSS chargings System at the T4 moment, can be born into the online telephone bill of overtime not charging, online telephone bill and the T1 moment to T4 of the time-out not charging Network traffics are corresponding caused by moment;Here, the online telephone bill of the time-out not charging can be used as the upper mistake of error bills addition Error code identifies, and the online telephone bill of overtime not charging can also be added in error bills table.
At the T3 moment, GGSN/PGW has found that this Network session meets the singulated condition of setting again, now, GGSN/PGW can report a CCR message to BOSS charge systems, and continue to split out one added with not charging identifier from Line ticket, the offline bill that the T3 moment splits out is designated as offline bill 2, starts simultaneously at and judge whether in the response of setting to determine When the time inscribed CCA message for receiving the return of BOSS charge systems, for example, the response timing set can be 3 seconds; GGSN/PGW determines to fail to receive the CCA message that BOSS charge systems return in the response timing of setting, afterwards, no CCR message is reported to BOSS charge systems.
Since the T3 moment, GGSN/PGW starts to carry out charging to network traffics using offline charging mode, until this Network conversation end, thus, the offline bill 3 split out afterwards are added with charging identifier, may be used as network traffics Rates ground.
With reference to Fig. 1, it can be seen that from the T1 moment to the T3 moment, BOSS charge systems fail to split out online telephone bill, until T4 moment BOSS charge system can just split out the online telephone bill of a time-out not charging, and GGSN/PGW is split out at the T3 moment One offline bill added with not charging identifier;That is, for from network flow caused by the T1 moment to T3 moment Amount, online telephone bill and offline bill cannot function as rates ground, cause charging loss occur.
The content of the invention
In order to solve the above technical problems, the embodiment of the present invention it is expected to provide a kind of supplement charging method and device, Ke Yi When user accesses mobile internet by mobile terminal, leak and count caused by being switched for online charging and offline charging Expense phenomenon carries out supplement charging.
The technical proposal of the invention is realized in this way:
The embodiments of the invention provide one kind to supplement charging method, and methods described includes:
Obtain the online telephone bill of the overtime not charging generated based on online charging mode;
After the offline bill added with charging identifier is generated, each offline bill added with not charging identifier is obtained;
In acquired each offline bill, the offline words corresponding with the online telephone bill of the overtime not charging are found out It is single;
Based on the offline bill found out, charging processing is carried out.
It is described in acquired each offline bill in such scheme, find out the online words with the overtime not charging Offline bill corresponding to single-phase, including:
In each offline bill of acquisition, the offline bill for meeting ticket matching condition is found out, the satisfaction found out is talked about The offline bill of single matching condition is as the offline bill corresponding with the online telephone bill of the overtime not charging;
The ticket matching condition is:Period corresponding to offline bill is corresponding with the online telephone bill of the overtime not charging Period there is lap.
In such scheme, methods described is applied to each Network session of mobile terminal access mobile internet, It is described to find out the offline bill corresponding with the online telephone bill of the overtime not charging in acquired each offline bill, Including:
By the way that the online telephone bill of the overtime not charging is carried out into fields match respectively with each offline bill, acquired Each offline bill in, find out the offline bill that there is identical setting field with the online telephone bill of the overtime not charging, To find out with the offline bill that the online telephone bill of the overtime not charging has identical setting field as:With the time-out The corresponding offline bill of the online telephone bill of not charging;
The setting field includes:Phone number, this Network session id, sheet corresponding to this Network session Gateway general packet radio service GPRS Support Node GGSN numberings, this Network meeting used in secondary Network session Serving GPRS Support Node SGSN numberings, the business of this Network session numbering and this Network meeting used in words Between at the beginning of words.
It is described based on the offline bill found out in such scheme, charging processing is carried out, including:It is offline by what is found out Not charging identifier in ticket is changed to charging identifier, draws the offline bill after mark renewal;After the mark renewal Offline bill, charging processing is carried out using offline charging mode.
In such scheme, the offline bill based on after the mark renewal, charging is carried out using offline charging mode Processing, including:Offline bill after the mark renewal is sent to off-line accounting system, the off-line accounting system is based on institute State the offline bill after mark renewal and carry out offline charging.
The embodiment of the present invention additionally provides a kind of supplement message accounting, and described device includes:First acquisition module, second are obtained Modulus block, search module and charging processing module;Wherein,
First acquisition module, for obtaining the online telephone bill of the overtime not charging generated based on online charging mode;
Second acquisition module, for after the offline bill added with charging identifier is generated, acquisition to be added with not charging mark The each offline bill known;
Search module, in acquired each offline bill, finding out the online telephone bill with the overtime not charging Corresponding offline bill;
Charging processing module, for based on the offline bill found out, carrying out charging processing.
In such scheme, the search module, specifically in each offline bill of acquisition, finding out and meeting ticket Offline bill with condition, using the offline bill for meeting ticket matching condition found out as online with the overtime not charging The corresponding offline bill of ticket;
The ticket matching condition is:Period corresponding to offline bill is corresponding with the online telephone bill of the overtime not charging Period there is lap.
In such scheme, described device is used for each Network session for mobile terminal access mobile internet Carry out charging;The search module, specifically for by the way that the online telephone bill of the overtime not charging is divided with each offline bill Fields match is not carried out, and in acquired each offline bill, find out has phase with the online telephone bill of the overtime not charging With setting field offline bill, with the online telephone bill of the overtime not charging there is identical to set field by finding out Offline bill is as the offline bill corresponding with the online telephone bill of the overtime not charging;
The setting field includes:Phone number, this Network session id, sheet corresponding to this Network session Gateway general packet radio service GPRS Support Node GGSN numberings, this Network meeting used in secondary Network session Serving GPRS Support Node SGSN numberings, the business of this Network session numbering and this Network meeting used in words Between at the beginning of words.
In such scheme, the charging processing module, specifically for by the not charging identifier in the offline bill found out Charging identifier is changed to, draws the offline bill after mark renewal;Based on the offline bill after the mark renewal, using offline meter Expense mode carries out charging processing.
In such scheme, the charging processing module, specifically for by it is described mark renewal after offline bill send to Off-line accounting system, the offline bill after the mark renewal are used for the rates ground as offline charging mode.
A kind of supplement charging method provided in an embodiment of the present invention and device, are obtained and are surpassed based on what online charging mode generated When not charging online telephone bill;After the offline bill added with charging identifier is generated, obtain added with each of not charging identifier Individual offline bill;In acquired each offline bill, find out it is corresponding with the online telephone bill of the overtime not charging from Line ticket;Based on the offline bill found out, charging processing is carried out;Moved in this way, can be accessed in user by mobile terminal During internet, leakage charging phenomenon carries out supplement charging caused by being switched for online charging and offline charging.
Brief description of the drawings
Fig. 1 is the principle schematic of leakage charging phenomenon caused by being changed in the prior art by charging mode;
Fig. 2 is the schematic flow sheet for the online telephone bill for generating overtime not charging in the prior art;
Fig. 3 is the flow chart that first embodiment of the invention supplements charging method;
Fig. 4 is another flow chart that first embodiment of the invention supplements charging method;
Fig. 5 is the flow chart that second embodiment of the invention supplements charging method;
Fig. 6 is the composition structural representation that the embodiment of the present invention supplements message accounting.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes.
Fig. 2 is the schematic flow sheet for the online telephone bill for generating overtime not charging in the prior art, as shown in Fig. 2 the flow Including:
Step 201:Check the Network session information stored in Session Store.
Step 202:Judge whether Network session occurs time-out, when Network session occurs overtime, perform step Rapid 203;When time-out does not occur for Network session, step 201 is back to.
Step 203:Generate the online telephone bill of simultaneously output overtime not charging.
In the prior art, it is merely capable of the online telephone bill of the overtime not charging of generation, it is impossible to existing leakage billing issues Supplement charging is carried out, for the above situation, the embodiments of the invention provide one kind supplement charging method and device, can obtained On the basis of the online telephone bill of overtime not charging, the supplement charging to leaking billing part is realized.
After step 203, flow is terminated.
First embodiment
Fig. 3 is the flow chart that first embodiment of the invention supplements charging method, as shown in figure 3, the flow includes:
Step 301:Obtain the online telephone bill of the overtime not charging generated based on online charging mode.
Here, the online telephone bill of overtime not charging can be:This Network session generated by BOSS charge systems The last item online telephone bill.
Step 302:After the offline bill added with charging identifier is generated, obtain added with not charging identifier it is each from Line ticket.
It is understood that in the prior art, offline charging can be carried out according to the offline bill added with charging identifier; However, for each offline bill added with not charging identifier, generally handled without charging;So, when overtime not charging Online telephone bill and any one offline bill added with not charging identifier when lap in time be present, just occur Leak charging phenomenon.
Step 303:In acquired each offline bill, find out corresponding with the online telephone bill of the overtime not charging Offline bill.
In a kind of implementation of this step, it can find out in each offline bill of acquisition and meet that ticket matches The offline bill of condition, using the offline bill for meeting ticket matching condition found out as the online words with the overtime not charging Offline bill corresponding to single-phase;Here, the ticket matching condition is:Period corresponding to offline bill is disregarded with the time-out Period corresponding to the online telephone bill of expense has lap.
As can be seen that meeting that period, online telephone bill are disregarded for time-out corresponding to the offline bill of ticket matching condition The online telephone bill taken, it is clear that without charging;Meeting period, offline bill corresponding to the offline bill of ticket matching condition In added with not charging identifier, so charging can not be carried out according to the offline bill;The embodiment of the present invention can be according to satisfaction The offline bill of ticket matching condition carries out supplement charging.
The supplement charging method of the embodiment of the present invention can apply to each net of mobile terminal access mobile internet Network service conversation, can be by by the online telephone bill of the overtime not charging and respectively in another implementation of this step Individual offline bill carries out fields match respectively, in acquired each offline bill, finds out and exists with the overtime not charging Line ticket has the offline bill of identical setting field, will find out with the online telephone bill of the overtime not charging have it is identical Setting field offline bill conduct:The offline bill corresponding with the online telephone bill of the overtime not charging.
Here, the setting field includes:Phone number, this Network session corresponding to this Network session Gateway general packet radio service GPRS Support Node GGSN numberings, this network used in ID, this Network session Serving GPRS Support Node SGSN numberings, the business of this Network session numbering and this network used in service conversation Between at the beginning of service conversation.
Step 304:Based on the offline bill found out, charging processing is carried out.
Exemplary, this step can include:Not charging identifier in the offline bill found out is changed to charging identifier, Draw the offline bill after mark renewal;Based on the offline bill after the mark renewal, counted using offline charging mode Take processing.
When actually implementing, the offline bill after the mark renewal can be sent to off-line accounting system, the mark The offline bill after renewal is known for the rates ground as offline charging mode.
The flow of the supplement charging method of the embodiment of the present invention can also be illustrated by Fig. 4, as shown in figure 4, the stream Journey includes:
Step 401~403:It is identical with step 201~203, repeat no more here.
Step 404:According to the online telephone bill of overtime not charging, each offline bill added with not charging identifier is checked, If the corresponding offline bill of the online telephone bill that can find out the overtime not charging, performs step 405;Otherwise, continue, Check each offline bill added with not charging identifier.
In this step, the implementation for finding out the corresponding offline bill of online telephone bill of the overtime not charging exists Make an explanation in step 303, repeat no more here.
Step 405:According to the offline bill found out and the online telephone bill of the overtime not charging, words are omitted in generation charging It is single.
In a kind of concrete implementation mode, the offline bill found out and the online words of the overtime not charging can be obtained Single period lap, afterwards, ticket is omitted using offline bill corresponding to the period lap as charging.
Step 406:Ticket is omitted according to charging and carries out charging, afterwards, terminates flow.
Here, ticket is omitted for charging, charging can be carried out using offline charging mode.
As can be seen that the supplement charging method of the embodiment of the present invention, can find out online charging mode and offline charging side Formula carries out supplement charging without the period of charging according to the offline bill of corresponding period;It so, it is possible to ensure stream It the reliability and accuracy that gauge takes, can avoid losing, ensure income.
Second embodiment
In order to more embody the purpose of the present invention, further lifted on the basis of first embodiment of the invention Example explanation.
The supplement charging method of second embodiment of the invention can apply to the every of mobile terminal access mobile internet Secondary Network session;Fig. 5 is the flow chart that second embodiment of the invention supplements charging method, and as Fig. 5 shows, the flow includes:
Step S1:GGSN/PGW sends the DCC message for indicating progress online charging, BOSS meters to BOSS charge systems CCR message is stored in Session Store by charge system.
When actually implementing, CCR (INT) message is stored in Session Store by BOSS charge systems, the CCR (INT) message is also referred to as CCR (Initial) message;Content entrained by CCR (INT) message includes but is not limited to this network Point, the renewal time of this Network session, this network industry between at the beginning of service conversation ID, this Network session SGSN numberings that GGSN/PGW numberings that business session uses, this Network session use, this Network session make Numbered with business, the session status of this Network session etc..
Here, the renewal time of this Network session is:Determine that this Network session meets the singulated of setting At the time of condition, for example, since the t1 moment, determine that this Network session meets the singulated condition of setting, then this net The renewal time of network service conversation is the t1 moment;This Network session is used for the current institute of instruction user using service conversation The Network needed to use, for example, user needs to access website 1, then this Network in this Network session Session is that business corresponding to website 1 is numbered using service conversation, and business numbering can be pre-set corresponding to each website;This The session status of secondary Network session includes but is not limited to session normal condition, session wait state, session error condition etc..
GGSN/PGW can split out an offline bill when gprs service session meets the singulated condition of setting, meanwhile, CCR (Update) message can be reported to BOSS charge systems, CCR (Update) message can be stored in by BOSS charge systems , can also be by CCR (Update) information reportings to CBE charge systems in Session Store.
Here the content entrained by CCR (Update) message includes but is not limited to:This Network session id, this Point, the renewal time of this Network session, this Network session use between at the beginning of Network session GGSN/PGW numbering, this Network session use SGSN numbering, this Network session use business numbering, section Only arrive uplink traffic, the renewal by the end of this Network session that the renewal time user of this Network session uses Downlink traffic that time user uses, by the end of letters such as the total flows that uses of renewal time user of this Network session Breath.
Step S2:After CBE charge systems receive CCR (UPDATE) message, what is stored in reading Session Store disappears Breath.
In this step, CCR (UPDATE) message and the message read out can be carried out fields match by CBE charge systems, When finding to exist identical ID Network session by fields match, by CCR (UPDATE) message from this network Each field assignment of the renewal time of this Network session is arrived between at the beginning of service conversation to corresponding variable, is utilized The field of message of the variable to being stored in Session Store after assignment is updated;Furthermore it is also possible to by the change after assignment Amount is output to the file directory specified according to binary file format after corresponding in each ticket field, while can also read use The information such as family present flow rate residue, remaining sum, User Status, carry out the calculating of next warrant quantity, and issue CCA (UPDATE) to GGSN/PGW, the process normal condition can be continued until that user is actively offline.
Step S3:It is overtime abnormal to judge whether this Network session occurs, if overtime exception does not occur, splits Go out normal online telephone bill, it is abnormal in the event of time-out, then perform step S4.
Actually implement when, it can be determined that between at the beginning of this Network session to this Network session Whether the time segment length of time started exceedes overtime duration threshold value, if it exceeds, it is determined that this Network session occurs It is overtime abnormal, otherwise, it determines overtime exception does not occur for this Network session.
Here overtime duration threshold value can be configured according to practical application scene, for example, overtime duration threshold value is 3600 seconds.
In a specific embodiment, GGSN/PGW can use whether judge this Network session in sequence of threads Generation time-out is abnormal.
Further, normal online telephone bill is the online telephone bill added with charging identifier, therefore can be used as online charging Foundation;In actual applications, the normal online telephone bill split out can be stored into inventory database by storage process, GGSN/PGW can read the normal online telephone bill of listings data library storage, in order to carry out online charging.
Step S4:Newest online telephone bill is split out according to CCR (UPDATE) message, the online telephone bill split out is stored To online error bills table.
Here, the online telephone bill that newest online telephone bill is overtime not charging is split out, entering library can be by time-out not The online telephone bill of charging is write in online error bills table.
Further, can also be by the session shape of this Network session in CCR (UPDATE) message in this step State is updated to session error condition, and deletes the overtime session stored in Session Store;Here, session error condition Mark can be 10.
Step S5:GGSN/PGW can normally split out offline bill, and FTP processes are deposited the offline bill split out Storage, afterwards, judges identifying whether as not charging identifier for offline bill, if it is, performing step S6, otherwise, performs step S7。
Here, FTP processes by the offline bill split out store into CBE charge systems, specifically, will split out from CBE CDR file storing directory of the line ticket storage to CBE charge systems.
Here, charging identifier can not be 3136, and charging identifier can be 3131, if offline bill is identified as 3136, then illustrate that the ticket need not carry out charging, if offline bill is identified as 3136, illustrate that the ticket need not enter Row offline charging.
Step S6:By offline bill storage to offline not in taximeter.
When actually implementing, offline bill can be output to not charging catalogue, afterwards, enter library and disregarded by reading Take catalogue, offline bill is written in offline not taximeter.
Step S7:By offline bill storage into inventory database.
Here it is possible to offline bill is stored into inventory database using the process of being put in storage, in this way, GGSN/PGW can be read The offline bill of listings data library storage is taken, in order to carry out offline charging.
In actual applications, can be carried out according to fields such as the roaming type in offline bill, the business used, flow values Charging wholesale price, while expense field is filled in into the expense after wholesale price, ticket write-in offline bill is entered into library directory, is put in storage process Ticket write into Databasce is read to inquire about for user.
Step S8:Mend one way sequence not in the offline bill in taximeter, find out offline with online error bills table Offline bill corresponding to online telephone bill, according to the offline bill found out, forms data is mended in generation, will be mended forms data and is added to benefit list In tables of data, meanwhile, for online telephone bill corresponding with the offline bill found out in online error bills table, update network industry The session status of business session.
It is to carry out the foundation of supplement charging mending forms data, for indicating that needs supplement flow, amount of money of charging etc. Data;Before the offline bill for meeting ticket matching condition is found out, the mark of the session status of Network session can be updated, In this way, it can be screened according to the mark of the session status of Network session, to reduce the online telephone bill number for participating in matching Amount, improves matching efficiency.
Further, the not charging identifier that the benefit forms data mended in forms data table carries can also be revised as charging mark Know;After it will mend forms data and be added to benefit forms data table, outbound process can collect the benefit forms data mended in forms data table In CBE charge systems, afterwards, normal offline charging can be carried out according to step S5 and step S7;As can be seen that the present invention second The offline bill that time-out is not engaged in charging by embodiment carries out charging again, and guarantee should individual particle Gui Cang if charging.
For finding out offline bill, two kinds of implementations are given below.
In one implementation, it is described using the offline bill for meeting ticket matching condition as the offline bill found out Ticket matching condition is:Period corresponding with online telephone bill period corresponding to offline bill has lap.
In another implementation, by the way that the online telephone bill of the overtime not charging is entered respectively with each offline bill Row fields match, in acquired each offline bill, find out has identical with the online telephone bill of the overtime not charging The offline bill of field is set, there is the offline of identical setting field with the online telephone bill of the overtime not charging by finding out Ticket conduct:The offline bill corresponding with the online telephone bill of the overtime not charging;
The setting field includes:Phone number, this Network session id, sheet corresponding to this Network session Gateway general packet radio service GPRS Support Node GGSN numberings, this Network meeting used in secondary Network session Serving GPRS Support Node SGSN numberings, the business of this Network session numbering and this Network meeting used in words Between at the beginning of words.
As can be seen that in Fig. 5, part more than dotted line is online charging handling process, and the part below dotted line is offline Handling process.
3rd embodiment
For the supplement charging method of first embodiment of the invention, third embodiment of the invention additionally provides a kind of supplement meter Take device.
Fig. 6 is the composition structural representation that the embodiment of the present invention supplements message accounting, as shown in fig. 6, the device includes:The One acquisition module 601, the second acquisition module 602, search module 603 and charging processing module 604;Wherein,
First acquisition module 601, for obtaining the online telephone bill of the overtime not charging generated based on online charging mode;
Second acquisition module 602, for after the offline bill added with charging identifier is generated, acquisition to be added with not charging Each offline bill of mark;
Search module 603, in acquired each offline bill, finding out the online words with the overtime not charging Offline bill corresponding to single-phase;
Charging processing module 604, for based on the offline bill found out, carrying out charging processing.
Specifically, the search module 603, specifically in each offline bill of acquisition, finding out and meeting ticket Offline bill with condition, using the offline bill for meeting ticket matching condition found out as online with the overtime not charging The corresponding offline bill of ticket;Here, the ticket matching condition is:Period corresponding to offline bill and the time-out are not Period corresponding to the online telephone bill of charging has lap.
Optionally, described device is used to carry out for each Network session of mobile terminal access mobile internet Charging;The search module 603, specifically for by the way that the online telephone bill of the overtime not charging is distinguished with each offline bill Carry out fields match, in acquired each offline bill, find out with the online telephone bill of the overtime not charging have it is identical Setting field offline bill, by find out with the online telephone bill of the overtime not charging have identical setting field from Line ticket is as the offline bill corresponding with the online telephone bill of the overtime not charging;
Here, the setting field includes:Phone number, this Network session corresponding to this Network session Gateway general packet radio service GPRS Support Node GGSN numberings, this network used in ID, this Network session Serving GPRS Support Node SGSN numberings, the business of this Network session numbering and this network used in service conversation Between at the beginning of service conversation.
Optionally, the charging processing module 604, by by the offline bill found out based on charging identifier is not changed to Take mark, draw the offline bill after mark renewal;Based on the offline bill after the mark renewal, using offline charging mode Carry out charging processing.
Optionally, the charging processing module 604, the offline bill after by the mark renewal are sent to based on offline Charge system, the offline bill after the mark renewal are used for the rates ground as offline charging mode.
In actual applications, at first acquisition module 601, the second acquisition module 602, search module 603 and charging Managing module 604 can be by the central processing unit (Central Processing Unit, CPU) in GGSN/PGW, microprocessor Device (Micro Processor Unit, MPU), digital signal processor (Digital Signal Processor, DSP) or Field programmable gate array (Field Programmable Gate Array, FPGA) etc. is realized.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the shape of the embodiment in terms of the present invention can use hardware embodiment, software implementation or combination software and hardware Formula.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more to use storage The form for the computer program product that medium is implemented on (including but is not limited to magnetic disk storage and optical memory etc.).
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.

Claims (10)

1. one kind supplement charging method, it is characterised in that methods described includes:
Obtain the online telephone bill of the overtime not charging generated based on online charging mode;
After the offline bill added with charging identifier is generated, each offline bill added with not charging identifier is obtained;
In acquired each offline bill, the offline bill corresponding with the online telephone bill of the overtime not charging is found out;
Based on the offline bill found out, charging processing is carried out.
2. according to the method for claim 1, it is characterised in that it is described in acquired each offline bill, find out with The corresponding offline bill of online telephone bill of the time-out not charging, including:
In each offline bill of acquisition, the offline bill for meeting ticket matching condition is found out, meets ticket by what is found out Offline bill with condition is as the offline bill corresponding with the online telephone bill of the overtime not charging;
The ticket matching condition is:When period corresponding to offline bill is corresponding with the online telephone bill of the overtime not charging Between section there is lap.
3. according to the method for claim 1, it is characterised in that methods described is applied to mobile terminal access mobile Internet Each Network session of network, it is described in acquired each offline bill, find out online with the overtime not charging The corresponding offline bill of ticket, including:
By the way that the online telephone bill of the overtime not charging is carried out into fields match respectively with each offline bill, acquired each In individual offline bill, the offline bill that there is identical setting field with the online telephone bill of the overtime not charging is found out, will be looked for The offline bill conduct with overtime not charging online telephone bill with identical setting field that is going out:Disregard with the time-out The corresponding offline bill of the online telephone bill that takes;
The setting field includes:Phone number, this Network session id, this net corresponding to this Network session Gateway general packet radio service GPRS Support Node GGSN numberings, this Network session institute used in network service conversation Serving GPRS Support Node SGSN numberings, the business of this Network session numbering and this Network session used Time started.
4. according to the method described in any one of claims 1 to 3, it is characterised in that it is described based on the offline bill found out, enter Row charging is handled, including:Not charging identifier in the offline bill found out is changed to charging identifier, after drawing mark renewal Offline bill;Based on the offline bill after the mark renewal, charging processing is carried out using offline charging mode.
5. according to the method for claim 4, it is characterised in that the offline bill based on after the mark renewal, adopt Charging processing is carried out with offline charging mode, including:Offline bill after the mark renewal is sent to off-line accounting system, The off-line accounting system carries out offline charging based on the offline bill after the mark renewal.
6. one kind supplement message accounting, it is characterised in that described device includes:First acquisition module, the second acquisition module, search Module and charging processing module;Wherein,
First acquisition module, for obtaining the online telephone bill of the overtime not charging generated based on online charging mode;
Second acquisition module, for after the offline bill added with charging identifier is generated, obtaining added with not charging identifier Each offline bill;
Search module is relative with the online telephone bill of the overtime not charging in acquired each offline bill, finding out The offline bill answered;
Charging processing module, for based on the offline bill found out, carrying out charging processing.
7. device according to claim 6, it is characterised in that the search module, specifically for acquisition it is each from In line ticket, the offline bill for meeting ticket matching condition is found out, the offline bill for meeting ticket matching condition found out is made For the offline bill corresponding with the online telephone bill of the overtime not charging;
The ticket matching condition is:When period corresponding to offline bill is corresponding with the online telephone bill of the overtime not charging Between section there is lap.
8. device according to claim 6, it is characterised in that described device is used for for mobile terminal access mobile interchange Each Network session of network carries out charging;The search module, specifically for by the way that the overtime not charging is existed Line ticket carries out fields match respectively with each offline bill, in acquired each offline bill, finds out and the time-out The online telephone bill of not charging has the offline bill of identical setting field, the online words with the overtime not charging that will be found out Single offline bill with identical setting field is as the offline bill corresponding with the online telephone bill of the overtime not charging;
The setting field includes:Phone number, this Network session id, this net corresponding to this Network session Gateway general packet radio service GPRS Support Node GGSN numberings, this Network session institute used in network service conversation Serving GPRS Support Node SGSN numberings, the business of this Network session numbering and this Network session used Time started.
9. according to the device described in any one of claim 6 to 8, it is characterised in that the charging processing module, specifically for inciting somebody to action Not charging identifier in the offline bill found out is changed to charging identifier, draws the offline bill after mark renewal;Based on described Offline bill after mark renewal, charging processing is carried out using offline charging mode.
10. device according to claim 9, it is characterised in that the charging processing module, specifically for by the mark Offline bill after renewal is sent to off-line accounting system, and the offline bill after the mark renewal is used to be used as offline charging side The rates ground of formula.
CN201610644532.8A 2016-08-08 2016-08-08 Supplementary charging method and device Active CN107708082B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610644532.8A CN107708082B (en) 2016-08-08 2016-08-08 Supplementary charging method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610644532.8A CN107708082B (en) 2016-08-08 2016-08-08 Supplementary charging method and device

Publications (2)

Publication Number Publication Date
CN107708082A true CN107708082A (en) 2018-02-16
CN107708082B CN107708082B (en) 2021-04-23

Family

ID=61169177

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610644532.8A Active CN107708082B (en) 2016-08-08 2016-08-08 Supplementary charging method and device

Country Status (1)

Country Link
CN (1) CN107708082B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112073926A (en) * 2020-09-30 2020-12-11 北京思特奇信息技术股份有限公司 Flow auditing method and system based on message charging

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1983940A (en) * 2006-06-09 2007-06-20 华为技术有限公司 System and method combined on-line charge with off-line charge
CN101431580A (en) * 2008-10-24 2009-05-13 中国移动通信集团山东有限公司 Voice service charging method and apparatus thereof
CN102075897A (en) * 2009-11-20 2011-05-25 中国移动通信集团江苏有限公司 Method and system for charging mobile data service
CN102355650A (en) * 2011-07-15 2012-02-15 华为软件技术有限公司 Service processing method and system thereof
CN104717627A (en) * 2013-12-13 2015-06-17 中国移动通信集团公司 Billing ticket establishing method, data service billing method and related device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1983940A (en) * 2006-06-09 2007-06-20 华为技术有限公司 System and method combined on-line charge with off-line charge
CN101431580A (en) * 2008-10-24 2009-05-13 中国移动通信集团山东有限公司 Voice service charging method and apparatus thereof
CN102075897A (en) * 2009-11-20 2011-05-25 中国移动通信集团江苏有限公司 Method and system for charging mobile data service
CN102355650A (en) * 2011-07-15 2012-02-15 华为软件技术有限公司 Service processing method and system thereof
CN104717627A (en) * 2013-12-13 2015-06-17 中国移动通信集团公司 Billing ticket establishing method, data service billing method and related device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112073926A (en) * 2020-09-30 2020-12-11 北京思特奇信息技术股份有限公司 Flow auditing method and system based on message charging
CN112073926B (en) * 2020-09-30 2022-02-01 北京思特奇信息技术股份有限公司 Flow auditing method and system based on message charging

Also Published As

Publication number Publication date
CN107708082B (en) 2021-04-23

Similar Documents

Publication Publication Date Title
EP2297986B1 (en) Synchronizing real-time and off-line accounts for communications
US20110161248A1 (en) Online charging correlation in ims networks
CN102685709B (en) Method and device for auditing charging
CN108632047B (en) Method and device for determining tariff data
US20100145838A1 (en) Method, system, and apparatus for opening accounting data capabilities
US8838488B1 (en) Maintaining a common identifier for a user session on a communication network
CN105050068A (en) Billing bill recording, detection, and correction method, apparatus, and bill processing system
EP2590358A1 (en) Method, device and system for prepayment charging
CN106936603A (en) A kind of data service billing method, device and system
EP3104550B1 (en) Mobile digital cellular telecommunication system with advanced functionality for rating correction
CN107708082A (en) One kind supplement charging method and device
US10171466B2 (en) Maintaining a common identifier for a user session on a communication network
CN1322706C (en) Method of realizing real time segmental charging
CN108964932A (en) A kind of charging method, device and computer readable storage medium
CN109963260A (en) A kind of method and device that determining business terminates
CN110324153A (en) Charging method and system
CN101183957B (en) Online charging method, system and equipment
WO2016192441A1 (en) Method and system for deducting fee
CN108270580B (en) Reminding method, device and system for online charging
CN105722048A (en) Charging method and equipment for online charging system
US9432523B1 (en) System, method, and computer program for rerating customer events in parallel with executing one or more open sessions in a consumer telecommunication network
EP2706768A1 (en) User transfer control method and service control point
US20220279325A1 (en) System and method for online charging telecommunication services in real time
US9264557B2 (en) Charging systems and methods for telecommunications
CN105873003B (en) A kind of billing information processing method and device

Legal Events

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