WO2017101443A1 - Method and device for charging processing and charging system - Google Patents

Method and device for charging processing and charging system Download PDF

Info

Publication number
WO2017101443A1
WO2017101443A1 PCT/CN2016/091567 CN2016091567W WO2017101443A1 WO 2017101443 A1 WO2017101443 A1 WO 2017101443A1 CN 2016091567 W CN2016091567 W CN 2016091567W WO 2017101443 A1 WO2017101443 A1 WO 2017101443A1
Authority
WO
WIPO (PCT)
Prior art keywords
charging
charging device
request message
avpp
communication request
Prior art date
Application number
PCT/CN2016/091567
Other languages
French (fr)
Chinese (zh)
Inventor
郑金华
王修中
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017101443A1 publication Critical patent/WO2017101443A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1403Architecture for metering, charging or billing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/61Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources taking into account QoS or priority requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing

Definitions

  • This document relates to, but is not limited to, the field of communication technologies, and more particularly to a billing processing method, apparatus, and billing system.
  • the billing system is to realize the communication billing between users in the communication network.
  • One of the important features is an important guarantee for operators to achieve revenue.
  • IP Internet Protocol
  • IMS Internet Multimedia Subsystem
  • PCSCF Proxy Call Session Control Function
  • SCSCF Serving Call Session Control Function
  • AS Application Server
  • MGCF Media Gateway Control Function
  • CDR Charging Data Record
  • the charging center usually needs to be based on multiple The CDRs generated by the charging network elements are used as the final charging basis after the charging and association is performed.
  • the IMS Charging Identifier is the basis of the IMS domain charging field merge association; in a session or transaction, the ICID is used by all sessions or
  • the IMS charging network element involved in the transaction is shared, and is outputted in the charging request message (Accounting Request, abbreviated as: ACR) and the CDR generated according to the charging network element, and the charging data function (Charging Data) Function, abbreviated as: CDF) or the billing center may merge and associate the billing field of the session or transaction according to the ICID, as the key information of the billing merge association.
  • the 3GPP stipulates that the ICID is consistent in all the charging network elements of a session or a transaction.
  • the current IMS industry uses the accounting network element AS.
  • the segment information is used as a supplement, and the billing field information of the other billing network elements (for example, SCSCF, PCSCF, and MGCF) is supplemented, and the associated bills include the common field information of the AS and other billing network elements. Private field information.
  • the common field information is always based on the AS, and the billing bills generated in the application scenarios of some specific services are inaccurate.
  • the common field information is based on the AS network element, which results in some specific services.
  • the billing bills generated in the application scenario are inaccurate.
  • an embodiment of the present invention provides a billing processing method, device and billing system, which can improve the accuracy of bill billing.
  • a charging processing method including:
  • Each hop charging device adds the charging field priority information AVPP of the current charging device to the received communication request message, and the added AVPP includes priority information and private information of the public charging field of the current charging device. Priority information of the billing field;
  • Each hopping charging device forwards the processed communication request message in turn;
  • Each hopping charging device sequentially receives a communication response message
  • the aging device sends a charging request message (ACR) to the CDR device, and each of the ACRs includes an AVPP that is sent by the charging device that sends the ACR, and the sent ACR is used to indicate the CDR.
  • ACR charging request message
  • the device performs combined charging according to each of the ACR, the network protocol IP multimedia subsystem charging identifier ICID, the charging subject identifier, and each of the AVPPs.
  • the priority information of the common charging field that is added to the charging device by each hop is set after the next hop charging device receives the processed communication request message.
  • the charging device includes a first charging device, a second charging device, and a third charging device, where The number of the second charging devices is one or more;
  • the hopping device adds the charging field priority information AVPP of the current charging device to the received communication request message, and sequentially forwards the processed communication request message, including:
  • the first charging device After receiving the communication request message sent by the first communication device, the first charging device adds the AVPP of the first charging device to the communication request message, and sends the processing to the second charging device.
  • Post communication request message ;
  • the second charging device After receiving the communication request message sent by the last hop charging device, the second charging device adds the AVPP of the second charging device to the communication request message, and sets the last hop charging device.
  • the third charging device After receiving the communication request message sent by the second TTL device, the third charging device adds the AVPP of the third charging device to the communication request message, and sets the last hop.
  • the hop charging device receives the communication request message
  • the charging field priority information AVPP of the current charging device is added, including:
  • Each hopping charging device adds a priority parameter in a header field of the received communication request message, and carries the AVPP of the current charging device in the priority parameter.
  • an embodiment of the present invention provides a charging processing method, including:
  • the billing device receives the charging request message ACR including the charging field priority information AVPP sent by each hop charging device; wherein the AVPP in each of the ACRs is received by the charging device that sends the ACR
  • the AVPP of the charging device added in the communication request message includes the priority information of the public charging field of the charging device and the priority information of the private charging field;
  • the billing device performs combined charging according to each of the ACR, the network protocol IP multimedia subsystem charging identifier ICID, the charging subject identifier, and each of the AVPPs.
  • the public charging in the added AVPP The priority information of the field is set after the next hop charging device receives the communication request message.
  • the charging device includes a first charging device, a second charging device, and a third charging device, where The number of the second charging devices is one or more;
  • the AVPP in the ACR sent by the first charging device is the first meter added by the first charging device to the communication request message after receiving the communication request message sent by the first communication device.
  • the AVPP in the ACR sent by the second charging device is the first that the second charging device adds in the communication request message after receiving the communication request message sent by the last hop charging device.
  • the AVPP of the second charging device, and the priority information of the public charging field of the last hop charging device after the second charging device is set, wherein the last hop charging device is the first a billing device or a second billing device;
  • the AVPP in the ACR sent by the third charging device is the location that the third charging device joins in the communication request message after receiving the communication request message sent by the second charging device of the last hop.
  • the AVPP of the third charging device and the public charging field of the second charging device of the last hop after the third charging device is set.
  • the billing device performs a combination according to each of the ACR, the network protocol IP multimedia subsystem charging identifier ICID, the charging subject identifier, and each of the AVPPs. Fees, including:
  • the bill device generates a CDR corresponding to the billing data of each billing device according to each of the ACRs;
  • the billing device combines and charges each of the CDRs according to the ICID, the billing subject identifier, and each of the AVPPs, and the generated billed bill includes all the priorities of the billing devices.
  • the combined charging The unicast includes the highest priority public charging field obtained by the CDR device and the private charging field of each charging device.
  • the AVPP in each of the ACRs is The charging device adds a priority parameter in the header field of the received communication request message, and adds the AVPP of the charging device to the priority parameter.
  • an embodiment of the present invention provides a charging processing apparatus, which is configured in a hopping device of a network protocol IP multimedia subsystem IMS, where the charging processing includes:
  • a receiving module configured to receive a communication request message; receive a communication response message;
  • the adding module is configured to add, in the communication request message received by the receiving module, the charging field priority information AVPP of the charging device to which the charging processing device belongs, where the added AVPP includes: the charging processing device belongs to Priority information of a public charging field of the charging device and priority information of a private charging field;
  • a sending module configured to forward the communication request message processed by the adding module, and send an accounting request message ACR to the CDR device, where each ACR includes an AVPP that is sent by the charging device that sends the ACR, and the sent The ACR is configured to instruct the billing device to perform combined charging according to each of the ACR, the IMS charging identifier ICID, the charging subject identifier, and each of the AVPPs.
  • the priority information of the public charging field added by the adding module is set after the next hop charging device receives the communication request message.
  • the charging processing device is respectively disposed on the first charging device, the second charging device, and the third charging device Wherein the number of the second charging devices is one or more;
  • the adding module is configured to add an AVPP of the charging device to which the charging processing device belongs in the communication request message received by the receiving module, and the sending module is configured to forward the communication after the adding module is processed.
  • Request message including:
  • the adding module of the first charging device is configured to add the AVPP of the first charging device to the communication request message after receiving the communication request message sent by the first communication device;
  • the sending module of the first charging device is configured to send the communication request message processed by the adding module to the second charging device;
  • the adding module of the second charging device is configured to add the AVPP of the second charging device to the communication request message after receiving the communication request message sent by the last hop charging device. And setting the priority information of the public charging field of the last hop charging device, where the last hop charging device is the first charging device or the last hop second charging device;
  • the sending module of the second charging device is configured to send the communication request message processed by the adding module to the next hop second charging device or the third charging device;
  • the adding module of the third charging device is configured to add the third charging device to the communication request message after receiving the communication request message sent by the second charging device of the last hop AVPP, setting priority information of a public charging field of the second TTL device of the last hop;
  • the sending module disposed in the third charging device is configured to send a communication request message for deleting all AVPPs to the second communication device.
  • the adding module is configured to be implemented in the receiving module by: Adding the AVPP of the charging device to which the charging processing device belongs to the received communication request message:
  • Adding a priority parameter to a header field of the communication request message received by the receiving module, and carrying an AVPP of the charging device to which the charging processing device belongs is carried in the priority parameter.
  • an embodiment of the present invention provides a charging processing apparatus, which is configured in a billing device of a network protocol IP multimedia subsystem IMS, where the charging processing apparatus includes:
  • a receiving module configured to receive an accounting request message ACR including a charging field priority information AVPP sent by each hop charging device, where the AVPP in each of the ACRs is receiving the charging device that sends the ACR
  • the AVPP of the charging device added to the incoming communication request message includes the priority information of the public charging field of the charging device and the priority information of the private charging field;
  • the combined charging module is configured to perform combined charging according to each ACR received by the receiving module, and an IMS charging identifier ICID, a charging subject identifier, and each AVPP.
  • the priority information of the public charging field in the added AVPP is set after the next hop charging device receives the communication request message.
  • the charging device includes a first charging device, a second charging device, and a third charging device, where The number of the second charging devices is one or more;
  • the AVPP in the ACR sent by the first charging device is the first meter added by the first charging device to the communication request message after receiving the communication request message sent by the first communication device.
  • the AVPP in the ACR sent by the second charging device is the first that the second charging device adds in the communication request message after receiving the communication request message sent by the last hop charging device.
  • the AVPP of the second charging device, and the priority information of the public charging field of the last hop charging device after the second charging device is set, wherein the last hop charging device is the first a billing device or a second billing device;
  • the AVPP in the ACR sent by the third charging device is the location that the third charging device joins in the communication request message after receiving the communication request message sent by the second charging device of the last hop.
  • the AVPP of the third charging device and the public charging field of the second charging device of the last hop after the third charging device is set.
  • the combined charging module includes:
  • a data generating unit configured to generate, according to each ACR received by the receiving module, a charging data record CDR corresponding to each of the charging devices;
  • the combined charging unit is configured to combine the charging of each of the CDRs generated by the data generating unit according to the ICID, the charging entity identifier, and each of the AVPPs, and the generated consolidated charging bill includes The public charging field with the highest priority among all the charging devices and the private charging field of each charging device.
  • the consolidated charging The unicast includes the highest priority public charging field obtained by the CDR device and the private charging field of each charging device.
  • the AVPP in each of the ACRs is, sending the ACR
  • the charging device adds a priority parameter in the header field of the received communication request message, and adds the AVPP of the charging device to the priority parameter.
  • an embodiment of the present invention provides a charging system, which includes: a charging device and a charging bill respectively set in a service layer, a control layer, and an access layer in a network protocol IP multimedia subsystem IMS, where each The billing device is provided with the billing processing device according to any one of the preceding aspects, wherein the billing bill is provided with the billing processing device according to any one of the above fourth aspects.
  • the charging processing method, device, and charging system provided by the embodiment of the present invention add the AVPP of the current charging device to the received communication request message by using the hopping charging device, and the added AVPP includes the current charging device.
  • the priority information of the public charging field and the priority information of the private charging field are respectively sent to the CDR device after the hopping device sequentially forwards the processed communication request message and sequentially receives the communication response message.
  • Each ACR sent is used to indicate that the bill device performs combined billing according to each ACR, ICID, billing subject identifier, and each AVPP, so that the common field information in the bill of the combined billing is prioritized in the AVPP.
  • FIG. 1 is a schematic structural diagram of a charging function entity in an IMS according to related art
  • FIG. 2 is a flowchart of a charging processing method according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of another charging processing method according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of signaling interaction of a charging processing method according to an embodiment of the present disclosure
  • FIG. 5 is a flowchart of still another charging processing method according to an embodiment of the present invention.
  • FIG. 6 is a flowchart of still another charging processing method according to an embodiment of the present invention.
  • FIG. 7 is a flowchart of signaling interaction of another charging processing method according to an embodiment of the present disclosure.
  • FIG. 8 is a flowchart of signaling interaction of another charging processing method according to an embodiment of the present disclosure.
  • FIG. 9 is a flowchart of signaling interaction of another charging processing method according to an embodiment of the present invention.
  • FIG. 10 is a flowchart of signaling interaction of a charging processing method according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic structural diagram of a charging processing apparatus according to an embodiment of the present disclosure.
  • FIG. 12 is a schematic structural diagram of another charging processing apparatus according to an embodiment of the present disclosure.
  • FIG. 13 is a schematic structural diagram of still another charging processing apparatus according to an embodiment of the present invention.
  • FIG. 1 is a schematic structural diagram of a charging function entity in an IMS provided by the related art.
  • Figure 1 shows the composition of the charging function entity and the relationship between each functional entity.
  • the Charging Trigger Function (CTF) is embedded in each network element of the 3GPP IMS (including In the inbound layer network element, the control layer network element, and the service layer network element, the main function is to collect the charging field according to the monitored usage of the network resource, and pass the Rf interface (Offline Charging Reference Point).
  • Sending ACR to CDF the main function of the CDF is to receive the ACR sent by the CTF, construct it into a CDR, and send it to the Charging Gateway Function (CGF) through the Ga interface.
  • the main function of the CGF is, The CDRs received from the CDF are stored and managed, and the CDR files are sent to the billing domain (Billing Domain, BD for short) through the Bi interface.
  • the IMS industry currently adopts the charging mode based on the common field information of the charging network AS, which may result in application scenarios in some specific services.
  • the inaccuracy of the billing bills generated in the following is an example of the inaccurate billing bills in the application scenarios of specific services:
  • Application scenario 1 When a user carries a number portability service, for example, the user needs to query the MGCF for the number portability database (NPDB) service.
  • NPDB number portability database
  • the value of the Called-Party-Address generated by the SCSCF, the PCSCF, and the AS is not the same. In the related art, it is incorrect to obtain the called number Called-Party-Address from the CDRs generated by the AS. Instead, the Called-Party-Address should be obtained from the SCSCF as the final called number after the merge association.
  • Application scenario 2 When the user of the IMS domain (Private Branch Exchange, PBX) calls the Circuit Switched (CS) domain user, the charging entity identifier in the MGCF calling bill is That is, the value of the Role-Of-Node is Incoming_Business_trunking_proxy(5), which is different from the value of the caller Role-Of-Node(0) generated by the AS.
  • the CDF needs to obtain the value of the Role-Of-Node from the MGCF. The final value after the association is merged.
  • the CDF since the CDRs generated during each call include a service delivery start time stamp and a service delivery end time stamp, the CDF must start with the CDRs obtained from the same charging network element.
  • the service delivery start time stamp and the service delivery end time stamp are filled in the final CDRs of the merged association. If there is no unified network time protocol between each service network element in the IMS (Network Time Protocol) , referred to as: NTP) time synchronization, CDF obtains the service delivery start time stamp from the SCSCF, and then obtains the service delivery end time stamp from the AS. It is possible that the two time differences Especially the distance is large, so the duration of the final merged associated bills will be very large, which will cause the incorrect length of the merged association, which is obviously not the actual bill of the user.
  • NTP Network Time Protocol
  • the charging device is a charging network element that has a charging function
  • the CDR device is a physical device with a CDF function.
  • the fee processing refers to charging the call side branch that performs communication, that is, the calling side and the called side are separately charged, and the charging methods of the calling side and the called side are the same, and the following embodiments of the present invention
  • the charging method on the calling side is taken as an example, which may be based on a certain technical field, or may include content in a plurality of technical fields.
  • the following specific embodiments of the present invention may be combined with each other, and the same or similar concepts or processes may not be described in some embodiments.
  • FIG. 2 is a flowchart of a charging processing method according to an embodiment of the present invention.
  • This embodiment provides The charging processing method is applicable to the case where the charging is performed by the plurality of charging devices in the IMS, the method may be performed by the charging processing device, and the charging processing device is implemented by combining hardware and software.
  • the device can be integrated into the processor of the billing device for use by the processor.
  • the method in this embodiment may include:
  • Each hop charging device adds the Attibue value pair priority (AVPP) of the current charging device to the received communication request message, and the added AVPP includes the current charging device.
  • AVPP Attibue value pair priority
  • the charging processing method provided in this embodiment relates to an application scenario in which a plurality of charging devices perform charging for one session or transaction in the IMS, and each hop charging device sequentially receives a communication request message, where the communication request message is, for example, a session.
  • An initial protocol Session Initiation Protocol, SIP for short
  • the first hop charging device receives a SIP request message sent by the first communication device, where the first communication device is, for example, a calling side device of the communication;
  • the charging device receives the SIP request message forwarded by its last hop charging device.
  • each hop charging device in the embodiments of the present invention does not directly forward the received communication request message to the next hop charging device or the second communication device.
  • the second communication device is, for example, the called side device of the current communication, but adds the AVPP in the received communication request message, and the added AVPP includes the priority information and the private information of the public charging field of the current charging device. Priority information for the billing field. That is to say, each charging device records its own AVPP before forwarding the communication request message.
  • the priority of all charging fields may be represented by type, length, and value (abbreviated as: TLV), ending with 0xFE0xFF0xFE0xFF; optionally, T in the TLV AVP code (Code), which occupies 4 bytes, L represents the Vendor ID (Vendor-Id), occupies 4 bytes, V indicates priority, and occupies 1 byte. The larger the value, the higher the priority.
  • the value of the priority can be defined, for example, as a value of "1" for LOWEST_PRIORITY, a value of "2" for LOWER_PRIORITY, a value of "3” for NORMAL_PRIORITY, a value of "4" for HIGH_PRIORITY, and a value of "5" for HIGHEST_PRIORITY.
  • the priority information of all charging fields that can be added by default is NORMAL_PRIORITY, where public charging The priority information of the field can be modified in the next hop charging device.
  • Each hop charging device forwards the processed communication request message.
  • Each hop charging device sequentially receives a communication response message.
  • the first hop charging device sends and adds its own AVPP to the next hop charging device until the last hop charging device sends a communication request.
  • the message is sent to the called side device, that is, each hop charging device sequentially receives the communication request message, and correspondingly, the processed communication request message is sequentially forwarded.
  • the called side device responds to it, that is, sends a communication response message, for example, a 200 OK response message, at this time, according to each The hopping device sends the communication request message in the reverse order, and sequentially feeds back the communication response message, and finally returns the communication response message to the calling side device.
  • the charging process refers to charging the call side branch that performs communication, that is, the calling side and the called side are separately charged, and therefore, although the last hop
  • the charging device adds its own AVPP in the received communication request message, and deletes all AVPPs in the communication request message before the last hop charging device sends a communication request message to the called side device to ensure one-sided The principle of billing.
  • each hop charging device sends an ACR to the CDR device, and each ACR includes an AVPP that is sent by the charging device that sends the ACR, and the sent ACR is used to indicate that the CDR device is configured according to each of the ACRs.
  • the AVPP, ICID, and billing subject identifiers in the ACR are combined and billed.
  • each hop charging device may send an ACR to the CDR device, and each transmitted ACR has an AVPP corresponding to the charging device.
  • the combination of the billing bills is based on the ICID and the billing subject identifier, and the common field information is based on the AS. Therefore, in the application scenario of the above special services, the billing merge bill is inaccurate;
  • the basis for performing the combined charging in the embodiments of the present invention increases the AVPP, and the AVPP is used to determine the merged bill by using the priority information of the common field of each charging device when selecting the common field information. Which public field information is subject to which.
  • each hop charging device since each hop charging device needs to add its own AVPP when receiving the communication request message, it is not simple to perform the combined charging.
  • the common field information of the specific charging device is based on, for example, the common field information of the AS is always used.
  • This embodiment has different charging modes for different application scenarios, that is, different common field information can be used for charging. In order to achieve flexible billing, the accuracy of the combined billing is improved.
  • the charging processing method provided in this embodiment adds the AVPP of the current charging device to the received communication request message by the hop charging device, and the added AVPP includes the priority of the public charging field of the current charging device.
  • Priority information of the level information and the private charging field after each hop charging device sequentially forwards the processed communication request message and sequentially receives the communication response message, respectively sends an ACR to the CDR device, and each ACR sent It is used to indicate that the bill device performs combined billing according to each ACR, ICID, billing subject identifier, and each AVPP, so that the common field information in the bill of the combined billing is based on the priority in the AVPP, which is not simple.
  • the standard for flexible charging is implemented.
  • the method provided in this embodiment can avoid the public field in the charging process of combining bills through multiple charging network elements. The information is based on the AS network element, and the charging bills generated in the application scenarios of some specific services are inaccurate.
  • the priority information of the public charging field added by each hop charging device in this embodiment may be set in the next hop charging device, for example, each charging device may remain unchanged or modified.
  • the priority information of the public charging field added by the last hop charging device, whether the modification may be preset in the configuration information of the charging device.
  • the setting mode corresponding to different application scenarios may be pre-configured in the charging device, and the priority information of the common field added by the last hop charging device may be set to ensure the application scenario in the special service. The correct public field information can be used.
  • the physical quantity of the charging device in the embodiments of the present invention is at least three, corresponding to the service layer, the control layer, and the access layer, that is, the charging device having at least one entity in each layer.
  • the charging device in the embodiments of the present invention includes: a first charging device, a second charging device, and a third charging device, wherein the number of the second charging device is one or more One.
  • FIG. 3 is a flowchart of another charging processing method according to an embodiment of the present invention. In this embodiment, on the basis of the foregoing embodiment shown in FIG.
  • S110 includes the following S111.
  • S112 and S113 S120 includes the following S121, S122, and S123
  • S121, S122, and S123 The order of execution of S111, S112, and S113 and S121, S122, and S123 in the embodiment is shown in the order of FIG.
  • the first charging device After receiving the communication request message sent by the first communication device, the first charging device adds the AVPP of the first charging device to the communication request message.
  • the first charging device sends the processed communication request message to the second charging device.
  • the second charging device After receiving the communication request message sent by the last hop charging device, the second charging device adds the AVPP of the second charging device to the communication request message, and sets a public charging field of the last hop charging device.
  • the priority information wherein the last hop charging device is the first charging device or the last hop second charging device.
  • the second charging device sends the processed communication request message to the second charging device or the third charging device to the next hop.
  • the third charging device After receiving the communication request message sent by the second charging device of the last hop, the third charging device adds the AVPP of the third charging device to the communication request message, and sets the second charging device of the last hop. Priority information for the public billing field.
  • the third charging device sends a communication request message for deleting all AVPPs to the second communication device.
  • the manner in which the AVPP of each hop charging device in the embodiment is added may include: adding a priority parameter in a header field of the communication request message that is received, and carrying the AVPP of the current charging device.
  • a priority parameter is added in the P-Charging-Vector of the SIP request message, and the parameter is used to carry all AVPPs, and Set whether to carry the AVPP in the SIP request message. If the billing center does not need to merge the associated bills, you can configure it to not carry any AVPP. Determining whether to carry the AVPP according to the requirements of the billing center is beneficial to reducing the message traffic in the network.
  • the method for adding a priority parameter in the header field of the SIP request message in this embodiment may be, for example, adding a priority parameter list, where each priority parameter in the list carries an AVPP; Priority parameter, which carries all AVPPs.
  • the logical relationship of the charging device is: the first charging device is an initial charging device, the second charging device is a middle charging device, and the third charging device is a final (Last) charging device, wherein the first and third charging devices have only one, and the second charging device may have multiple, as shown in FIG. 4, which is a charging process provided by an embodiment of the present invention.
  • the signaling interaction flowchart of the method, the charging in FIG. 4 is directed to the calling party user, and the charging network element includes a network element (NE element) 1, NE2, NE3, and NE4, wherein the state of the NE2 is The billing function is disabled, that is, the NE2 is not charged, and the billing device is not included in the embodiment of the present invention.
  • NE1 is the first billing device
  • NE3 is the second billing device
  • NE4 is the third.
  • Billing equipment, bill devices are represented by CDF.
  • the charging processing method provided by the embodiment shown in FIG. 4 includes the following steps:
  • the calling side device sends a SIP request message to NE1.
  • NE1 adds the AVPP of NE1 to the SIP request message it receives.
  • the NE1 sends a SIP request message of the AVPP joining the NE1 to the NE2.
  • the NE2 forwards the SIP request message it receives to the NE3. Since the accounting function of the NE2 is disabled, the accounting is not performed and the AVPP of the local network element is not required.
  • the NE3 adds the AVPP of the NE3 to the SIP request message it receives.
  • the NE3 sends an SIP request message of the AVPP joining the NE3 to the NE4.
  • the NE4 adds the AVPP of the NE4 to the SIP request message it receives.
  • the NE4 sends a SIP request message for deleting all AVPPs to the called side device.
  • the called side device sends a SIP response message to NE4.
  • NE4 sends a SIP response message to NE3.
  • NE3 sends a SIP response message to NE2.
  • NE2 sends a SIP response message to NE1.
  • NE1 sends a SIP response message to the calling side device.
  • the charging devices NE1, NE3, and NE4 that enable the charging function send an ACR to the CDF, and each ACR carries an AVPP corresponding to the charging device.
  • the CDF separately generates, according to the ACR sent by each charging device, a CDR corresponding to each charging device, including: NE1 CDR, NE3 CDR, and NE4 CDR.
  • the CDF fills in all the CDRs generated above into the merge buffer, and all the CDRs
  • the combined charging is performed according to the ICID, the charging subject identifier, and each AVPP.
  • the ACR sent by each charging device to the CDR device is used to indicate that the CDR device performs the combined charging, and generates a merged CDR; the CDR device performs the combined charging.
  • the method is: generating, according to each ACR, a CDR corresponding to each charging device, and combining and charging each CDR according to an ICID, a charging entity identifier, and each AVPP, and the generated consolidated charging bill includes all The highest priority public charging field in the charging device and the private charging field of each charging device.
  • the CDR device when the CDR device receives the ACR sent by each charging device, the ACR sent by each charging device is configured as a CDR, and the CDR generated by each charging device includes AVPP. Then, the CDR device adds all the CDRs generated by the session or the transaction structure to the merge buffer for combined charging.
  • the principle of the combined charging is to combine all the CDRs according to the ICID, the charging subject identifier, and the AVPP, and then generate the CDR.
  • the logic of the merged charging in this embodiment may be, for example, collecting the CDRs of the session branch side (calling side or called side) according to the ICID and the charging subject identifier as keywords, according to each generated CDR.
  • the AVPP in the collection collects the highest priority public charging field among all the charging devices, collects the private charging fields of all charging devices, and collects the highest priority public charging field and the private of all charging devices.
  • the charging field is filled in the final bill for the billing center to collect billing.
  • the priority information of the common charging field of at least two charging devices is the same, and at the same time is the highest priority.
  • Level that is, at least the highest priority of the common charging field in the AVPP is the same.
  • the consolidated charging bill can include the highest priority public charging field obtained by the bill device. Private billing field for each billing device.
  • the generated CDF is added to the merging buffer, and then, when collecting the highest priority public charging field among all the charging devices, if different If the priority information of a charging field of the fee device is the same, the final charging bill is generated based on the public charging field of the merging buffer of the first CDR device.
  • the present invention does not limit the execution order of S209-S213 and S214 in the foregoing embodiment shown in FIG. 4, and does not limit the order in which S1, NE3, and NE4 respectively perform S214; alternatively, S209-S213 sequentially Executed sequentially, NE4 can execute S214 after executing S209. After executing S210, NE3 can execute S214. After executing S212, NE1 can execute S214, that is, each charging device can send an ACR to the billing device after receiving the SIP response message, and at the same time, Limit the order in which each billing device sends ACRs.
  • FIG. 5 is a flowchart of still another charging processing method according to an embodiment of the present invention.
  • the charging processing method provided in this embodiment is applicable to the case where the charging is performed by multiple charging devices in the IMS, and the method may be performed by the charging processing device, where the charging processing device is combined by hardware and software.
  • the device can be integrated in the processor of the billing device for the processor to call.
  • the method in this embodiment may include:
  • the CDR device receives an ACR including an AVPP sent by each hop charging device, where the AVPP in each ACR is a charging device that is added by the charging device that sends the ACR to the received communication request message.
  • the added AVPP includes priority information of the public charging field of the charging device and priority information of the private charging field.
  • the charging processing method provided in this embodiment relates to an application scenario in which a plurality of charging devices perform charging for one session or transaction in the IMS, and each hop charging device may sequentially receive a communication request message, and the communication request message may also be Sending an ACR to the CDR device after receiving the returned communication response message in sequence; since each hop charging device receives the communication request message, it does not directly forward the received communication request message, but The AVPP of the current charging device is added to the message. That is to say, each charging device records its own AVPP before forwarding the communication request message.
  • each hop charging device receives and transmits a communication request message
  • the manner in which its own AVPP is added in the communication request message the manner in which the communication response message is received and forwarded, and the priority of the charging field
  • the representations are the same as those in the above embodiment, and therefore will not be described herein.
  • the charging process refers to separately performing charging on the calling side that performs communication, that is, the calling side and the called side separately perform charging, and therefore, although the last hop is performed,
  • the charging device adds its own AVPP in the received communication request message, and deletes all AVPPs in the communication request message before the last hop charging device sends a communication request message to the called side device to ensure one-sided The principle of billing.
  • S320 The bill device performs combined billing according to each ACR, ICID, billing subject identifier, and each AVPP.
  • each ACR received by the bill device has an AVPP corresponding to the billing device.
  • the combination of the billing bills is based on the ICID and the billing subject identifier, and the common field information is based on the AS. Therefore, in the application scenario of the above special services, the billing merge bill is inaccurate;
  • the basis for performing the combined charging in the embodiments of the present invention increases the AVPP, and the AVPP is used to determine the priority information of the common field of each charging device when the public field information is selected. Which common field information is used in the merged bill.
  • the AVPP corresponding to the charging device is included in each ACR received by the CDR device, so that when the CDR device performs the combined charging, the specific charging is not simple.
  • the common field information of the device is based on, for example, the common field information of the AS is always used.
  • This embodiment has different charging modes for different application scenarios, that is, different common field information can be used for charging, thereby achieving flexibility. Billing increases the accuracy of combined billing.
  • the charging processing method provided in this embodiment receives the ACR sent by each hop charging device by using the CDR device, and each charging device includes the charging device added by the corresponding charging device in the received communication request message.
  • AVPP the added AVPP includes the priority information of the public charging field of the current charging device and the priority information of the private charging field, and the CDR device according to each ACR, ICID, charging subject identifier and each AVPP Performing combined charging, so that the common field information in the CDRs of the combined charging is based on the priority in the AVPP, and is not simply based on the public field information of the specific charging device, thereby implementing the flexible charging standard;
  • the method provided in this embodiment avoids the charging process in the case of combining the bills through multiple charging network elements, and the common field information is determined by the AS network element, which is generated in the application scenario of some specific services. The billing bill is inaccurate.
  • the priority information of the public charging field added to the AVPP by each hop charging device may be set in the next hop charging device, and the public that the last hop charging device joins is set.
  • the manner of the priority information of the charging field is the same as that in the foregoing embodiment, and details are not described herein again.
  • the physical quantity of the charging device in the embodiments of the present invention is at least three, corresponding to the service layer, the control layer, and the access layer, that is, the charging device having at least one entity in each layer.
  • the charging device in the embodiments of the present invention includes: a first charging device, a second charging device, and a third charging device, wherein the number of the second charging device is one or more.
  • the interaction between the first, second, and third charging devices in this embodiment may also refer to the foregoing embodiment shown in FIG. 3 and FIG. 4, and the specific content of the ACR in this embodiment may be:
  • the AVPP in the ACR sent by the device is the AVPP of the first charging device added by the first charging device after receiving the communication request message sent by the first communication device, and the second charging device sends the
  • the AVPP in the ACR is the AVPP of the second charging device added by the second charging device after receiving the communication request message sent by the last hop charging device, and the second charging device is set after the second charging device is set.
  • the priority information of the public charging field of the last hop charging device wherein the last hop charging device is the first charging device or the last hop second charging device; and the third charging device sends the ACR.
  • the AVPP is the AVPP of the third charging device added by the third charging device after receiving the communication request message sent by the second charging device of the last hop, and the third charging device is set after the third charging device is set.
  • Last hop of the second billing device Total billing field.
  • the third charging device in this embodiment adds its own AVPP to the communication request message
  • the AVPP is used to send the ACR to the CDR device, because of the principle of single-side charging, All AVPPs have been deleted from the communication request message sent by the third charging device to the called side device.
  • the AVPP in each ACR in this embodiment includes: the charging device that sends the ACR adds a priority parameter in a header field of the received communication request message, and adds the meter to the priority parameter.
  • AVPP for fee devices The manner of setting the priority parameter in the embodiment and the manner of configuring the AVPP are the same as those in the foregoing embodiment, and the logical relationship of the charging device is the same as that in the foregoing embodiments, and details are not described herein again.
  • FIG. 6 is a flowchart of still another charging processing method according to an embodiment of the present invention.
  • the S320 may include: S321, and the CDR device generates, according to each ACR, a corresponding to each charging device.
  • CDR; S322, the CDR device combines and charges each CDR according to the ICID, the charging entity identifier, and each AVPP, and the generated combined charging bill includes the highest priority public charging field among all the charging devices. And the private billing field for each billing device.
  • the specific implementation manner of performing the combined charging in this embodiment has been described in the foregoing embodiment, and therefore will not be further described herein.
  • the consolidated charging bill includes the public charging field with the highest priority obtained by the bill device and the private charging field of each billing device.
  • the application mode of the charging processing method provided by the embodiment of the present invention is described in the following specific examples. Each specific example has a specific application scenario, and any application scenario can be charged by the foregoing embodiments of the present invention.
  • the processing method is combined charging.
  • FIG. 7 is a flowchart of signaling interaction of another charging processing method according to an embodiment of the present invention.
  • the application scenario shown in FIG. 7 is that the IMS user A calls the Public Switched Telephone Network (PSTN) user B.
  • PSTN Public Switched Telephone Network
  • FIG. 7 shows the charging of the calling party of the session as an example.
  • the charging processing method provided in the embodiment shown in FIG. 7 specifically includes the following steps:
  • a user equipment (User Equipment, UE for short) A sends a SIP request message to the PCSCF-A.
  • the PCSCF-A after receiving the SIP request message, the PCSCF-A adds the AVPP of the PCSCF-A in the header field of the SIP request message, and the AVPP includes all public charging fields of the PCSCF-A.
  • the priority information, the priority information of the private charging field, and the priority information of all the charging fields by default is NORMAL_PRIORITY.
  • the specific content of the AVPP added by the PCSCF-A can be expressed, for example, by the following list 1:
  • PCSCF public billing information (AvpCode, Vendor-id) priority SIP-Method (824, 10415) NORMAL_PRIORITY(3) Role-of-Node (829, 10415) NORMAL_PRIORITY(3) Origin-Host(264,0) NORMAL_PRIORITY(3) User-Session-Id (830, 10415) NORMAL_PRIORITY(3) Calling-Party-Address (831, 10415) NORMAL_PRIORITY(3) called-Party-Address(832,10415) NORMAL_PRIORITY(3) SIP-Request-Timestamp (834, 10415) NORMAL_PRIORITY(3) SIP-Response-Timestamp (835, 10415) NORMAL_PRIORITY(3) Inter-Operator-Identifier (838, 10415) NORMAL_PRIORITY(3)
  • the AVPP value carried in the priority parameter in the P-Charging-Vector field of the SIP request message can be represented by the following list 2:
  • the PCSCF-A sends a SIP request message to the SCSCF-A to join the AVPP.
  • the SCSCF-A After receiving the SIP request message, the SCSCF-A needs to forward the SIP request message to the AS-A because the user subscribes to the supplementary service. Because the SCSCF-A enables the charging function, the SCSCF is added in the header field of the SIP request message. A's AVPP, which has the priority of the private billing field added Level information, defaults to NORMAL_PRIORITY. At the same time, SCSCF-A can remain unchanged or modify the previous hop charging device, that is, the priority information of the public charging field that PCSCF-A joins. (Number portability service: Called-Party- The Address priority is HIGHEST_PRIORITY).
  • the specific content of the AVPP added by the SCSCF-A can be expressed, for example, by the following list:
  • SCSCF public billing information (AvpCode, Vendor-id) priority SIP-Method (824, 10415) NORMAL_PRIORITY(3) Role-of-Node (829, 10415) NORMAL_PRIORITY(3) Origin-Host(264,0) NORMAL_PRIORITY(3) User-Session-Id (830, 10415) NORMAL_PRIORITY(3) Calling-Party-Address (831, 10415) NORMAL_PRIORITY(3) called-Party-Address(832,10415) NORMAL_PRIORITY(3) SIP-Request-Timestamp (834, 10415) NORMAL_PRIORITY(3) SIP-Response-Timestamp (835, 10415) NORMAL_PRIORITY(3) Inter-Operator-Identifier (838, 10415) NORMAL_PRIORITY(3) Cause-Code(861,10415) NORMAL_PRIORITY(3) IMS-Charging-Identifier (841,104
  • the AVPP value carried in the priority parameter in the P-Charging-Vector field of the SIP request message can be represented by the following list 4:
  • the SCSCF-A sends an SIP request message to the AS-A to join the AVPP.
  • the specific content of the AVPP added by the AS-A can be expressed, for example, by the following list:
  • SIP-Request-Timestamp (834, 10415) HIGHER_PRIORITY(4) SIP-Response-Timestamp (835, 10415) HIGHER_PRIORITY(4) Inter-Operator-Identifier (838, 10415) HIGHER_PRIORITY(4) Cause-Code(861,10415) HIGHER_PRIORITY(4) IMS-Charging-Identifier (841,10415) HIGHER_PRIORITY(4) SDP-Session-Description (842, 10415) HIGHER_PRIORITY(4) SDP-Media-Component (843,10415) HIGHER_PRIORITY(4) GGSN-Address (847,10415) HIGHER_PRIORITY(4) Message-Body (889,10415) HIGHER_PRIORITY(4) Associated-URI (856, 10415) HIGHER_PRIORITY(4) Event(825,10415) HIGHER_PRIORITY(4) Access-Network-Information(1263,10415) HIGHER_PRIORITY(4) Service-Context-Id(461,0
  • the AVPP value carried in the priority parameter in the P-Charging-Vector field of the SIP request message can be represented by the following list 4:
  • the AS-A returns an SIP request message for joining the AVPP to the SCSCF-A.
  • the AS-A since the SCSCF-A is the control layer network element and the AS-A is the service layer network element, the AS-A needs to send the SIP request message to the SCSCF after adding the AVPP message to the message. A sends a receipt.
  • the SCSCF-A sends a SIP request message to the Exitout Gateway Control Function (BGCF)-A.
  • BGCF Gateway Control Function
  • the BGCF-A After receiving the SIP request message, the BGCF-A sends the SIP request message directly to the MGCF-A because the BGCF-A does not enable the charging function. This step does not add the AVPP of the BGCF-A.
  • the MGCF-A after receiving the SIP request message, the MGCF-A adds the charging function to the MGCF-A, so the AVPP of the MGCF-A is added in the header field of the SIP request message, and the priority information of the added private charging field is defaulted. It is NORMAL_PRIORITY; at the same time, MGCF-A can remain unchanged according to the configuration or modify the priority information of the previous hop charging device, that is, the public charging field added by SCSCF-A.
  • the specific content of the AVPP added by the MGCF-A can be expressed, for example, by the following list:
  • MGCF public billing information (AvpCode, Vendor-id) priority SIP-Method (824, 10415) NORMAL_PRIORITY(3) Role-of-Node (829, 10415) NORMAL_PRIORITY(3) Origin-Host(264,0) NORMAL_PRIORITY(3) User-Session-Id (830, 10415) NORMAL_PRIORITY(3) Calling-Party-Address (831, 10415) NORMAL_PRIORITY(3) called-Party-Address(832,10415) NORMAL_PRIORITY(3) SIP-Request-Timestamp (834, 10415) NORMAL_PRIORITY(3) SIP-Response-Timestamp (835, 10415) NORMAL_PRIORITY(3) Inter-Operator-Identifier (838, 10415) HIGHEST_PRIORITY(5)
  • NORMAL_PRIORITY(3) IMS-Charging-Identifier (841,10415) NORMAL_PRIORITY(3)
  • SDP-Session-Description 842, 10415) NORMAL_PRIORITY(3)
  • SDP-Media-Component 843,10415) NORMAL_PRIORITY(3)
  • MGCF private accounting information AvpCode, Vendor-id) priority Trunk-Group-Id (851, 10415) NORMAL_PRIORITY(3)
  • the AVPP value carried in the priority parameter in the P-Charging-Vector field of the SIP request message can be represented by the following list 8:
  • the MGCF-A sends a SIP request message to the PSTN-B where the UE B is located, and the request does not include the AVPP information.
  • the PSTN-B After the UE B answers, the PSTN-B returns a SIP response message to the MGCF-A, and the SIP response message is, for example, a 200 OK message.
  • the MGCF-A returns a SIP response message to the BGCF-A.
  • the BGCF-A returns a SIP response message to the SCSCF-A.
  • the SCSCF-A returns a SIP response message to the AS-A.
  • the AS-A sends a SIP response message to the SCSCF-A as a receipt.
  • SCSCF-A returns a SIP response message to PCSCF-A.
  • PCSCF-A returns a SIP response message to UE A.
  • the charging devices MGCF-A, AS-A, SCSCF-A, and PCSCF-A that enable the charging function send an ACR message to the CDF, and the ACR message sent by each charging device carries the AVPP corresponding to the setting.
  • the CDF separately generates, according to the ACR sent by each charging device, a CDR corresponding to each charging device, including: MGCF-A CDR, AS-A CDR, SCSCF-A CDR, and PCSCF-A. CDR.
  • the CDR fills in all the CDRs generated above into the merge buffer, and combines all the CDRs according to the ICID, the charging subject identifier, and each AVPP.
  • the manner and principle of performing the combined charging in this embodiment are the same as those in the foregoing embodiment, and therefore are not described herein again.
  • the AVPP may specifically include a priority parameter in the header field P-Charging-Vector of the SIP request message, the parameter carrying AVPP, the AVPP being organized in a TLV manner, ending with 0xFE0xFF0xFE0xFF; each charging network in FIG.
  • the billing information in the meta is only an example, and the actual billing information is determined by the actual environment.
  • FIG. 8 is a flowchart of signaling interaction of another charging processing method according to an embodiment of the present invention.
  • the application scenario shown in FIG. 8 is that IMS user A calls IMS user B, and FIG. 8 shows an example of charging the called side of the session.
  • the charging processing method provided in the embodiment shown in FIG. 8 includes the following steps:
  • S501 The network where the calling UE A is located, that is, the calling side network element sends an SIP request message to the SCSCF-B.
  • S502 After receiving the SIP request message, the SCSCF-B needs to forward the SIP request message to the AS-B because the user subscribes to the AS-B; and because the SCSCF-B enables the charging function, in the header field of the SIP request message.
  • Add the AVPP of SCSCF-B which includes the priority information of all public charging fields of SCSCF-B (number portability service: Called-Party-Address priority is HIGHEST_PRIORITY), priority information of private charging field, default The priority information for all billing fields is NORMAL_PRIORITY.
  • the specific content of the AVPP added by the SCSCF-B can refer to the content shown in Table 3 above, wherein the AVPP value carried in the priority parameter of the P-Charging-Vector of the SIP request message can refer to the above.
  • Table 4 shows the content.
  • the SCSCF-B sends an SIP request message to the AS-B to join the AVPP.
  • the AS-B After receiving the SIP request message, the AS-B adds the accounting function of the AS-B in the header field of the SIP request message, and adds the priority information of the private charging field to the default. For NORMAL_PRIORITY, at the same time, AS-B can remain unchanged according to the configuration. Or modify the previous hop charging device, that is, the priority information of the public charging field added by the SCSCF-B (the CDR start time serviceDeliveryStartTimeStamp and the CDR end time serviceDeliveryEndTimeStamp, the priority is HIGHEST_PRIORITY).
  • the specific content of the AVPP added by the AS-B can refer to the content shown in Table 5 above, wherein the AVPP value carried in the priority parameter of the P-Charging-Vector of the SIP request message can refer to the above.
  • Table 6 shows the content.
  • the AS-B returns a SIP request message for joining the AVPP to the SCSCF-B.
  • the AS-B since the SCSCF-B is the control layer network element and the AS-B is the service layer network element, the AS-B needs to send the SIP request message to the SCSCF after adding the AVPP message to the message. B sends a receipt.
  • the SCSCF-B sends a SIP request message to the PCSCF-B.
  • the PCSCF-B after receiving the SIP request message, the PCSCF-B adds the AVPP of the PCSCF-B in the header field of the SIP request message because the PCSCF-B starts the charging function; at the same time, the PCSCF-B can remain unchanged or modified according to the configuration.
  • the previous hop charging device that is, the priority information of the public charging field added by the SCSCF-B.
  • the specific content of the AVPP added by the PCSCF-B can refer to the content shown in Table 1 above, wherein the AVPP value carried in the priority parameter of the P-Charging-Vector of the SIP request message can refer to the above.
  • Table 2 shows the content.
  • the PCSCF-B sends a SIP request message to the UE B, where the request does not include AVPP information.
  • S509 After responding by the UE B, return a SIP response message to the PCSCF-B, where the SIP response message is, for example, a 200 OK message.
  • the PCSCF-B returns a SIP response message to the SCSCF-B.
  • the SCSCF-B returns a SIP response message to the AS-B.
  • the AS-B sends a SIP response message to the SCSCF-B as a receipt.
  • the SCSCF-B returns a SIP response message to the calling side network element.
  • the billing devices PCSCF-B, AS-B, and SCSCF-B that enable the billing function are directed to the CDF.
  • the ACR message is sent, and the AVP message sent by each charging device carries the AVPP corresponding to the setting.
  • the CDF separately generates, according to the ACR sent by each charging device, a CDR corresponding to each charging device, including: a PCSCF-B CDR, an AS-B CDR, and an SCSCF-B CDR.
  • the CDR fills in all the CDRs generated above into the merge buffer, and combines all the CDRs according to the ICID, the charging subject identifier, and each AVPP.
  • the manner and principle of performing the combined charging in this embodiment are the same as those in the foregoing embodiment, and therefore are not described herein again.
  • the actual message flow in the embodiment shown in FIG. 8 also involves other signaling interaction processes, and the steps for simplifying the charging processing method are appropriately omitted; the AVPP added in steps S502, S504, and S507 in FIG. Specifically, a priority parameter is added in a header field (P-Charging-Vector) of the SIP request message, and the parameter carries an AVPP, and the AVPP is organized in a TLV manner, ending with 0xFE0xFF0xFE0xFF; each charging network in FIG.
  • P-Charging-Vector a header field of the SIP request message
  • the parameter carries an AVPP
  • the AVPP is organized in a TLV manner, ending with 0xFE0xFF0xFE0xFF
  • the billing information in the meta is only an example, and the actual billing information is determined by the actual environment.
  • FIG. 9 is a flowchart of signaling interaction of another charging processing method according to an embodiment of the present invention.
  • the application scenario shown in FIG. 9 is that the IMS user A calls the China Mobile User B.
  • the CDR needs to carry the NP (number portability) information through the called number, and the MGCF queries the current network NPDB to obtain the NP information.
  • 9 is shown by taking the charging of the calling side of the session as an example.
  • the charging processing method provided in the embodiment shown in FIG. 9 specifically includes the following steps:
  • the calling UE A sends a SIP request message to the PCSCF-A.
  • the PCSCF-A after receiving the SIP request message, the PCSCF-A adds the AVPP of the PCSCF-A in the header field of the SIP request message, and the AVPP includes all public charging fields of the PCSCF-A.
  • the priority information, the priority information of the private charging field, and the priority information of all the charging fields by default is NORMAL_PRIORITY.
  • the specific content of the AVPP added by the PCSCF-A can refer to the content shown in Table 1 above, wherein the AVPP value carried in the priority parameter of the P-Charging-Vector of the SIP request message can refer to the above.
  • Table 2 shows the content.
  • the PCSCF-A sends a SIP request message to the SCSCF-A to join the AVPP.
  • the SCSCF-A After receiving the SIP request message, the SCSCF-A needs to forward the SIP request message to the AS-A because the user subscribes to the supplementary service. Because the SCSCF-A enables the charging function, the SIP is enabled in the SIP. The AVPP of the SCSCF-A is added to the header field of the request message, and the priority information of the added private charging field is defaulted to NORMAL_PRIORITY. At the same time, the SCSCF-A can remain unchanged or modify the previous hop charging device according to the configuration, that is, The priority information of the public charging field that PCSCF-A joins (number portability service: Called-Party-Address priority is HIGHEST_PRIORITY).
  • the specific content of the AVPP added by the SCSCF-A can refer to the content shown in Table 3 above, wherein the AVPP value carried in the priority parameter of the P-Charging-Vector of the SIP request message can refer to the above.
  • Table 4 shows the content.
  • the SCSCF-A sends an SIP request message to the AS-A to join the AVPP.
  • the specific content of the AVPP added by the AS-A can refer to the content shown in Table 5 above, wherein the AVPP value carried in the priority parameter of the P-Charging-Vector of the SIP request message can refer to the above.
  • Table 6 shows the content.
  • the AS-A returns an SIP request message for joining the AVPP to the SCSCF-A.
  • the AS-A since the SCSCF-A is the control layer network element and the AS-A is the service layer network element, the AS-A needs to send the SIP request message to the SCSCF after adding the AVPP message to the message. A sends a receipt.
  • the SCSCF-A sends a SIP request message to the MGCF-A.
  • the MGCF-A after receiving the SIP request message, the MGCF-A adds the charging function to the MGCF-A, so the AVPP of the MGCF-A is added in the header field of the SIP request message, and the priority information of the added private charging field is defaulted. It is NORMAL_PRIORITY; at the same time, MGCF-A needs to query the called number information from the NPDB, which can be kept unchanged or modify the previous hop charging device, that is, the priority information of the public charging field added by SCSCF-A (calledpartyAddress first) The level is HIGHEST_PRIORITY).
  • the specific content of the AVPP added by the MGCF-A can refer to the content shown in Table 7 above, except that the priority of the "Called-Party-Address" is "HIGHER_PRIORITY", where the header field of the SIP request message (For the AVPP value carried in the priority parameter in (P-Charging-Vector), refer to the contents shown in Table 8 above.
  • the MGCF-A sends a SIP request message to the NPDB database.
  • the NPDB database sends a SIP request message to the mobile UE B, where the request does not include AVPP information.
  • the UE B After the UE B answers, the UE B returns a SIP response message to the NPDB database, where the SIP response message is, for example, a 200 OK message.
  • the NPDB database returns a SIP response message to the MGCF-A.
  • the MGCF-A returns a SIP response message to the SCSCF-A.
  • the SCSCF-A returns a SIP response message to the AS-A.
  • the AS-A sends a SIP response message to the SCSCF-A as a receipt.
  • SCSCF-A returns a SIP response message to PCSCF-A.
  • the PCSCF-A returns a SIP response message to the UE A.
  • the charging devices MGCF-A, AS-A, SCSCF-A, and PCSCF-A that enable the charging function send an ACR message to the CDF, and the ACR message sent by each charging device carries the AVPP corresponding to the setting.
  • the CDF separately generates, according to the ACR sent by each charging device, a CDR corresponding to each charging device, including: an MGCF-A CDR, an AS-A CDR, an SCSCF-A CDR, and a PCSCF-A CDR.
  • the CDR fills in all the CDRs generated above into the merge buffer, and combines all the CDRs according to the ICID, the charging subject identifier, and each AVPP.
  • the manner and principle of performing the combined charging in this embodiment are the same as those in the foregoing embodiment, and therefore are not described herein again.
  • AVPP specifically, in the header field of the SIP request message
  • a priority parameter is added to the P-Charging-Vector.
  • the parameter carries the AVPP.
  • the AVPP is organized in TLV mode and ends with 0xFE0xFF0xFE0xFF.
  • the charging information in each charging network element in FIG. 9 is only an example, and the actual charging information is used. It is determined by the actual environment.
  • FIG. 10 is a flowchart of signaling interaction of a charging processing method according to an embodiment of the present invention.
  • the application scenario shown in Figure 10 is that the IMS domain PBX user A calls the CS domain user B.
  • the Role-Of-Node value of the MGCF calling CDR is Incoming_Business_trunking_proxy(5), and the calling CDR generated by the AS The value of the Role-Of-Node(0) is different.
  • the CDF needs to obtain the final value of the Role-Of-Node from the MGCF as the merged association.
  • FIG. 10 shows the charging of the calling side of the session as an example.
  • the charging processing method provided in the embodiment shown in FIG. 10 specifically includes the following steps:
  • the calling UE A sends a SIP request message to the PCSCF-A.
  • the AVPP of the PCSCF-A is added in the header field of the SIP request message, and the AVPP includes all public charging fields of the PCSCF-A.
  • the priority information, the priority information of the private charging field, and the priority information of all the charging fields by default is NORMAL_PRIORITY.
  • the specific content of the AVPP added by the PCSCF-A can refer to the content shown in Table 1 above, wherein the AVPP value carried in the priority parameter of the P-Charging-Vector of the SIP request message can refer to the above.
  • Table 2 shows the content.
  • the PCSCF-A sends a SIP request message to the SCSCF-A to join the AVPP.
  • the SCSCF-A After receiving the SIP request message, the SCSCF-A needs to forward the SIP request message to the AS-A because the user subscribes to the supplementary service. Because the SCSCF-A enables the charging function, the SCSCF is added in the header field of the SIP request message. A's AVPP, in which the priority information of the private charging field is added, the default is NORMAL_PRIORITY. At the same time, the SCSCF-A can remain unchanged or modify the previous hop charging device according to the configuration, that is, the public charging field added by the PCSCF-A. Priority information (number portability service: Called-Party-Address priority is HIGHEST_PRIORITY).
  • the specific content of the AVPP added by the SCSCF-A can refer to the content shown in Table 3 above, wherein the AVPP value carried in the priority parameter of the P-Charging-Vector of the SIP request message can refer to the above.
  • Table 4 shows the content.
  • the SCSCF-A sends an SIP request message to the AS-A to join the AVPP.
  • the AS-A after receiving the SIP request message request, the AS-A adds the accounting function of the AS-A, and then adds the AVPP of the AS-A in the header field of the SIP request message, and the priority information of the added private charging field, The default is HIGH_PRIORITY; at the same time, AS-A can remain unchanged or modify the previous hop charging device, that is, the priority information of the public charging field that SCSCF-A joins (serviceDeliveryStartTimeStamp, serviceDeliveryEndTimeStamp priority is HIGH_PRIORITY).
  • the specific content of the AVPP added by the AS-A can refer to the content shown in Table 5 above, wherein the AVPP value carried in the priority parameter of the P-Charging-Vector of the SIP request message can refer to the above.
  • Table 6 shows the content.
  • the AS-A returns a SIP request message for joining the AVPP to the SCSCF-A.
  • the AS-A since the SCSCF-A is the control layer network element and the AS-A is the service layer network element, the AS-A needs to send the SIP request message to the SCSCF after adding the AVPP message to the message. A sends a receipt.
  • the SCSCF-A sends a SIP request message to the MGCF-A.
  • the specific content of the AVPP added by the MGCF-A can refer to the content shown in Table 7 above, except that the priority of the "Role-Of-Node" is "HIGHER_PRIORITY", where the header field of the SIP request message (For the AVPP value carried in the priority parameter in (P-Charging-Vector), refer to the contents shown in Table 8 above.
  • the MGCF-A sends a SIP request message to the CS domain UE B, where the request does not include AVPP information.
  • the MGCF-A returns a SIP response message to the SCSCF-A.
  • the SCSCF-A returns a SIP response message to the AS-A.
  • the AS-A sends a SIP response message to the SCSCF-A as a receipt.
  • the SCSCF-A returns a SIP response message to the PCSCF-A.
  • the PCSCF-A returns a SIP response message to the IMS domain UE A.
  • the charging devices MGCF-A, AS-A, SCSCF-A, and PCSCF-A that enable the charging function send an ACR message to the CDF, and the ACR message sent by each charging device carries the AVPP corresponding to the setting.
  • the CDF separately generates, according to the ACR sent by each charging device, a CDR corresponding to each charging device, including: an MGCF-A CDR, an AS-A CDR, an SCSCF-A CDR, and a PCSCF-A CDR.
  • the CDR fills in all the CDRs generated above into the merging buffer, and combines all the CDRs according to the ICID, the charging subject identifier, and each AVPP.
  • the manner and principle of performing the combined charging in this embodiment are the same as those in the foregoing embodiment, and therefore are not described herein again.
  • the AVPP may specifically include a priority parameter in the header field P-Charging-Vector of the SIP request message, the parameter carrying AVPP, the AVPP being organized in a TLV manner, ending with 0xFE0xFF0xFE0xFF; each charging network in FIG.
  • the billing information in the meta is only an example, and the actual billing information is determined by the actual environment.
  • FIG. 11 is a schematic structural diagram of a charging processing apparatus according to an embodiment of the present invention.
  • the charging processing apparatus provided by this embodiment is applicable to the case where the charging is performed by multiple charging devices in the IMS, and the charging processing apparatus can be implemented by combining hardware and software, and the apparatus can be integrated into the meter.
  • the processor of the fee device is used by the processor to call.
  • the charging processing apparatus provided in this embodiment includes: a receiving module 11, an adding module 12, and a sending module 13.
  • the receiving module 11 is configured to receive a communication request message.
  • the adding module 12 is configured to add, in the communication request message received by the receiving module 11, the charging field priority information AVPP of the charging device to which the charging processing device belongs, and the added AVPP includes: the charging device to which the charging processing device belongs Priority information of the public charging field and priority information of the private charging field.
  • the charging processing apparatus provided in this embodiment is related to an application scenario in which a plurality of charging devices perform charging for a session or a transaction in an IMS, that is, a meter provided in this embodiment is provided in each charging device of the IMS.
  • Fee processing device The receiving module 11 in each hop charging device sequentially receives the communication request message, and the communication request message can also be a SIP request message; and the receiving module 11 does not directly forward the communication request message after receiving the communication request message, but
  • the AVPP is added to the received communication request message by the adding module 12, and the added AVPP includes the priority information of the public charging field of the charging device to which the charging processing device belongs and the priority information of the private charging field. That is to say, each billing processing device records its own AVPP before forwarding the communication request message.
  • the sending module 13 is configured to forward the communication request message processed by the adding module 12.
  • the receiving module 11 is further configured to receive a communication response message.
  • the priority of the fee field is expressed in the same manner as in the above embodiment, and therefore will not be described herein.
  • the charging process refers to charging the call side branch that performs communication, that is, the calling side and the called side are separately charged, and therefore, although the last hop
  • the charging device adds its own AVPP in the received communication request message, and deletes all AVPPs in the communication request message before the last hop charging device sends a communication request message to the called side device to ensure one-sided The principle of billing.
  • the sending module 13 is further configured to send an accounting request message ACR to the CDR device, where each ACR includes an AVPP that is sent by the charging device that sends the ACR, and the sent ACR is used to indicate that the CDR device is calculated according to each ACR and IMS.
  • the fee identification ICID, the billing subject ID, and each AVPP are combined and billed.
  • the sending module 13 may send an ACR to the CDR device, and each ACR received by the CDR device has an AVPP corresponding to the charging device. Therefore, the basis for performing the combined charging in the embodiments of the present invention increases the AVPP, and the AVPP is used to determine, in the merged bill, the priority information of the common field of each charging device when the public field information is selected. Which public field information is correct.
  • the charging processing apparatus provided by the embodiment of the present invention is used to perform the charging processing method provided by the embodiment shown in FIG. 2 of the present invention, and has a corresponding functional module, and the implementation principle and the technical effect thereof are similar, and details are not described herein again.
  • the priority information of the public charging field added by the adding module 12 in the embodiment is set after the next hop charging device receives the communication request message, and the public charging field added by the last hop charging device is set.
  • the manner of the priority information is the same as that in the above embodiment, and therefore will not be described herein.
  • the physical quantity of the charging device in the embodiments of the present invention is at least three, corresponding to the service layer, the control layer, and the access layer, that is, the charging device having at least one entity in each layer.
  • the charging device in the embodiments of the present invention includes: a first charging device, a second charging device, and a third charging device, wherein the number of the second charging device is one or more One.
  • the specific implementation manners of the adding module 12 and the sending module 13 in the first, second, and third charging devices are described below:
  • the adding module 12 of the first charging device is configured to: after receiving the communication request message sent by the first communication device, add the AVPP of the first charging device to the communication request message; correspondingly, set in the first
  • the sending module 13 of a charging device is configured to send a communication request message processed by the adding module 12 to the second charging device.
  • the adding module 12 of the second charging device is configured to: after receiving the communication request message sent by the last hop charging device, add the AVPP of the second charging device to the communication request message, and set the last hopping device.
  • the priority information of the public charging field of the fee device wherein the last hop charging device is the first charging device or the last hop second charging device; correspondingly, the sending module 13 of the second charging device is disposed. And sending, to the next hop, the second charging device or the third charging device, the communication request message processed by the adding module 12.
  • the adding module 12 of the third charging device is configured to add the AVPP of the third charging device to the communication request message after receiving the communication request message sent by the second charging device of the last hop, and set the last hop.
  • the priority information of the public charging field of the second charging device; correspondingly, the sending module 13 of the third charging device is configured to send a communication request message for deleting all AVPPs to the second communication device.
  • the adding module 12 of the third charging device in this embodiment will itself The AVPP is added to the communication request message, and the AVPP is sent to the CDR device when the ACR is sent. Due to the principle of single-side charging, the sending module 13 of the third charging device sends a communication request message to the called side device. All AVPPs have been deleted.
  • the charging processing apparatus provided by the embodiment of the present invention is used to perform the charging processing method provided by the embodiment shown in FIG. 3 of the present invention, and has a corresponding functional module, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • the adding module 12 in this embodiment is configured to implement the joining of the AVPP by adding a priority parameter in the header field of the communication request message received by the receiving module 11, and charging the charging processing device.
  • the AVPP of the device is carried in this priority parameter.
  • the manner of setting the priority parameter in the embodiment and the manner of configuring the AVPP are the same as those in the foregoing embodiment, and the logical relationship of the charging device is the same as that in the foregoing embodiments, and details are not described herein again.
  • the ACR sent by the sending module 13 to the CDR device is used to indicate that the CDR device performs combined charging, and generates a merged CDR; optionally, the sent ACR is used to indicate The CDR device generates a CDR corresponding to each charging device according to each ACR, and combines and charges each CDR according to the ICID, the charging entity identifier, and each AVPP, and the generated consolidated charging bill includes all The highest priority public charging field in the charging device and the private charging field of each charging device.
  • the specific implementation manner of performing the combined charging in this embodiment has been described in the foregoing embodiment, and therefore will not be further described herein.
  • the consolidated charging bill includes the public charging field with the highest priority obtained by the bill device and each meter.
  • the private billing field of the fee device is the public charging field with the highest priority obtained by the bill device and each meter.
  • FIG. 12 is a schematic structural diagram of another charging processing apparatus according to an embodiment of the present invention.
  • the charging processing device provided in this embodiment is applicable to the case where the charging is performed by multiple charging devices in the IMS, and the charging processing device can be implemented by combining hardware and software, and the device can be integrated in the message.
  • the processor of a single device is used by the processor to call.
  • the charging processing apparatus provided in this embodiment includes: a receiving module 21 and a combined charging module 22.
  • the receiving module 21 is configured to receive an accounting request message ACR including the charging field priority information AVPP sent by each hop charging device, where the AVPP in each ACR is the charging device that sends the ACR.
  • the AVPP of the charging device added in the received communication request message, The added AVPP includes priority information of the public charging field of the charging device and priority information of the private charging field.
  • the charging processing apparatus relates to an application scenario in which a plurality of charging devices perform charging for one session or transaction in the IMS, and each hop charging device may sequentially receive a communication request message, and the communication request message may also be Sending an ACR to the CDR device after receiving the returned communication response message in sequence; since each hop charging device receives the communication request message, it does not directly forward the received communication request message, but The AVPP of the current charging device is added to the message, and the priority information of the public charging field added by each hop charging device can be set in its next hop charging device. That is to say, each charging device records its own AVPP before forwarding the communication request message.
  • each hop charging device receives and sends a communication request message, adds its own AVPP mode in the communication request message, and sets priority information of the public charging field added by the last hop charging device.
  • the manner of receiving and forwarding the communication response message, and the manner of indicating the priority of the charging field are the same as those in the foregoing embodiment, and therefore will not be further described herein.
  • the charging process refers to charging the call side branch that performs communication, that is, the calling side and the called side are separately charged, and therefore, although the last hop
  • the charging device adds its own AVPP in the received communication request message, and deletes all AVPPs in the communication request message before the last hop charging device sends a communication request message to the called side device to ensure one-sided The principle of billing.
  • the merge charging module 22 is configured to perform combined charging according to each ACR received by the receiving module 21, and the IMS charging identifier ICID, the charging subject identifier, and each AVPP.
  • each ACR received by the receiving module 21 has an AVPP corresponding to the charging device.
  • the basis for performing the combined charging in the embodiments of the present invention adds AVPP, and the AVPP is used to determine the merged message by using the priority information of the common field of each charging device when the common field information is selected.
  • the setting of the common field corresponding to the different application scenarios may be pre-configured in the charging device to set the priority information of the common field added by the last hop charging device. Ensure that the correct public field information can be used in the application scenario of a special service.
  • the charging processing apparatus provided by the embodiment of the present invention is used to perform the embodiment provided by the embodiment shown in FIG. 5 of the present invention.
  • the billing processing method has the corresponding function module, and its implementation principle and technical effect are similar, and will not be described here.
  • the priority information of the public charging field added to the AVPP by each hop charging device may be set in the next hop charging device, and the public that the last hop charging device joins is set.
  • the manner of the priority information of the charging field is the same as that in the foregoing embodiment, and details are not described herein again.
  • the physical quantity of the charging device in the embodiments of the present invention is at least three, corresponding to the service layer, the control layer, and the access layer, that is, the charging device having at least one entity in each layer.
  • the charging device in the embodiments of the present invention includes: a first charging device, a second charging device, and a third charging device, wherein the number of the second charging device is one or more One.
  • the interaction between the first, second, and third charging devices in this embodiment may also refer to the foregoing embodiment shown in FIG. 3 and FIG. 4, and the specific content of the ACR in this embodiment may be:
  • the AVPP in the ACR sent by the device is the AVPP of the first charging device added by the first charging device after receiving the communication request message sent by the first communication device, and the second charging device sends the
  • the AVPP in the ACR is the AVPP of the second charging device added by the second charging device after receiving the communication request message sent by the last hop charging device, and the second charging device is set after the second charging device is set.
  • the priority information of the public charging field of the last hop charging device wherein the last hop charging device is the first charging device or the last hop second charging device; and the third charging device sends the ACR.
  • the AVPP is the AVPP of the third charging device added by the third charging device after receiving the communication request message sent by the second charging device of the last hop, and the third charging device is set after the third charging device is set.
  • Last hop of the second billing device Total billing field.
  • the adding module of the third charging device in this embodiment adds its own AVPP to the communication request message
  • the AVPP is used to send the ACR to the CDR device, because of the one-side charging.
  • all AVPPs have been deleted from the communication request message sent by the sending module of the third charging device to the called side device.
  • the AVPP in each ACR received by the receiving module 21 in this embodiment is specifically: the charging device that sends the ACR adds a priority parameter in the header field of the received communication request message, and The AVPP of the charging device added to the priority parameter.
  • Priority parameter in this embodiment The manner of setting the number and the manner of configuring the AVPP are the same as those of the foregoing embodiment, and the logical relationship of the charging device is the same as that of the foregoing embodiments, and therefore no further details are provided herein.
  • FIG. 13 is a schematic structural diagram of still another charging processing apparatus according to an embodiment of the present invention.
  • the merge charging module 22 in this embodiment includes: a data generating unit 23 configured to generate, according to each ACR received by the receiving module 21, corresponding to each meter.
  • the merge billing unit 24 is configured to combine the billing of each CDR generated by the data generating unit 23 according to the ICID, the billing subject identifier, and each AVPP, and the generated combined billing words
  • the single includes the highest priority public charging field of all charging devices and the private charging field of each charging device.
  • the consolidated charging bill includes the public charging field with the highest priority obtained by the bill device and each meter.
  • the private billing field of the fee device is the public charging field with the highest priority obtained by the bill device and each meter.
  • the charging processing apparatus provided by the embodiment of the present invention is used to perform the charging processing method provided by the embodiment shown in FIG. 6 of the present invention, and has a corresponding functional module, and the implementation principle and the technical effect thereof are similar, and details are not described herein again.
  • the billing system provided by the embodiment of the present invention can be referred to the relationship between the billing entity functions in the IMS shown in FIG. 1.
  • the billing system provided in this embodiment includes: a service layer and a control layer respectively set in the IMS. And the charging device of the access layer and the charging bill.
  • Each charging device is provided with the charging processing device in any of the embodiments shown in FIG. 11 , and the charging bill is set as shown in FIG. 12 and FIG.
  • the charging system in this embodiment is used to perform the charging processing method provided in any of the embodiments shown in FIG. 4 and FIG. 7 to FIG. 10, and has a corresponding physical device, and the implementation principle and the technical effect are similar. I won't go into details here.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the method described in the foregoing embodiments.
  • each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function.
  • the invention is not limited to any specific form of combination of hardware and software.
  • the foregoing technical solution implements flexible charging, and avoids the application of some specific services in the charging process of combining bills through multiple charging network elements, because the common field information is based on the AS network element. The accounting bill generated in the scenario is inaccurate.

Abstract

A method and device for charging processing and a charging system. The method for charging processing comprises: each hop of charging device adds charging field priority information (AVPP) of the current charging device into a received communication request message; each hop of charging device sequentially forwards the processed communication request message; each hop of charging device sequentially receives a communication response message; each hop of charging device respectively transmits an accounting request message (ACR) to a call record device, where each ACR comprises the AVPP added by the charging device that transmitted the ACR, the ACR transmitted is used for instructing the call record device to perform combined charging on the basis of each ACR, an internet protocol (IP) multimedia subsystem charging identifier (ICID), a charging subject identifier, and each AVPP. The technical solution implements flexible and accurate charging for call records.

Description

一种计费处理方法、装置和计费系统Billing processing method, device and charging system 技术领域Technical field
本文涉及但不限于通信技术领域,尤指一种计费处理方法、装置和计费系统。This document relates to, but is not limited to, the field of communication technologies, and more particularly to a billing processing method, apparatus, and billing system.
背景技术Background technique
随着通信网络的发展和应用的提高,在第三代合作伙伴计划(3rd Generation Partnership Project,简称为:3GPP)描述的通信网络中,计费系统是实现通信网络中用户之间通信计费的重要功能部件之一,是运营商实现营收的重要保障。With the development of communication networks and applications, in the communication network described by the 3rd Generation Partnership Project (3GPP), the billing system is to realize the communication billing between users in the communication network. One of the important features is an important guarantee for operators to achieve revenue.
通常地,网络协议(Internet Protocol,简称为:IP)多媒体子系统(IP Multimedia Sub System,简称:IMS)中的计费网元有很多种,例如,代理呼叫会话控制功能(Proxy Call Session Control Function,简称为:PCSCF)、服务呼叫会话控制功能(Serving Call Session Control Function,简称为:SCSCF)、应用服务器(Application Server,简称为:AS)和媒体网关控制功能(Media Gateway Control Function,简称为:MGCF)等,根据不同计费网元生成的计费数据记录(Charging Data Record,简称为:CDR)都有其自身网元特有的信息,为了实现准确计费,计费中心通常需要将根据多个计费网元生成的CDR进行计费合并关联后作为最终的计费依据。举例来说,在3GPP描述的计费原则中,IMS计费标识(IMS Charging Identifier,简称:ICID)是IMS域计费字段合并关联的基础;在一次会话或事务中,ICID会被所有会话或事务涉及的IMS计费网元共享,并在计费网元发送的计费请求消息(Accounting Request,简称为:ACR)和根据计费网元生成的CDR中输出,计费数据功能(Charging Data Function,简称为:CDF)或计费中心可以根据ICID合并关联此次会话或事务的计费字段,作为计费合并关联的关键信息。3GPP规定了ICID在一次会话或事务的所有计费网元中保持一致,在通过多种计费网元进行话单合并的计费过程中,目前的IMS业界都是以计费网元AS的话单字 段信息为准,其它计费网元(例如:SCSCF、PCSCF、MGCF)的话单字段信息作为补充,通过上述计费方式合并关联后的话单中包含AS的公共字段信息和其它计费网元的私有字段信息。然而,公共字段信息总以AS为准,在一些特定业务的应用场景中生成的计费话单是不准确的。Generally, there are many types of charging network elements in the Internet Protocol (IP) Multimedia Subsystem (IMS), for example, Proxy Call Session Control Function. , referred to as: PCSCF), Serving Call Session Control Function (SCSCF), Application Server (AS), and Media Gateway Control Function (referred to as: MGCF), etc., the Charging Data Record (CDR) generated by different charging network elements has its own unique information of the network element. In order to achieve accurate charging, the charging center usually needs to be based on multiple The CDRs generated by the charging network elements are used as the final charging basis after the charging and association is performed. For example, in the charging principle described in the 3GPP, the IMS Charging Identifier (ICID) is the basis of the IMS domain charging field merge association; in a session or transaction, the ICID is used by all sessions or The IMS charging network element involved in the transaction is shared, and is outputted in the charging request message (Accounting Request, abbreviated as: ACR) and the CDR generated according to the charging network element, and the charging data function (Charging Data) Function, abbreviated as: CDF) or the billing center may merge and associate the billing field of the session or transaction according to the ICID, as the key information of the billing merge association. The 3GPP stipulates that the ICID is consistent in all the charging network elements of a session or a transaction. In the charging process of combining bills through multiple charging network elements, the current IMS industry uses the accounting network element AS. Single word The segment information is used as a supplement, and the billing field information of the other billing network elements (for example, SCSCF, PCSCF, and MGCF) is supplemented, and the associated bills include the common field information of the AS and other billing network elements. Private field information. However, the common field information is always based on the AS, and the billing bills generated in the application scenarios of some specific services are inaccurate.
综上所述,相关技术中的计费方式,在通过多种计费网元进行话单合并的计费过程中,由于公共字段信息均以AS网元为准,而导致在一些特定业务的应用场景中生成的计费话单不准确。In summary, in the charging method in the related art, in the charging process of combining bills through multiple charging network elements, the common field information is based on the AS network element, which results in some specific services. The billing bills generated in the application scenario are inaccurate.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供了一种计费处理方法、装置和计费系统,能够提高话单计费的准确性。第一方面,本发明实施例提供一种计费处理方法,包括:The embodiment of the invention provides a billing processing method, device and billing system, which can improve the accuracy of bill billing. In a first aspect, an embodiment of the present invention provides a charging processing method, including:
每一跳计费设备在接收到的通信请求消息中加入当前计费设备的计费字段优先级信息AVPP,所加入的AVPP包括所述当前计费设备的公共计费字段的优先级信息和私有计费字段的优先级信息;Each hop charging device adds the charging field priority information AVPP of the current charging device to the received communication request message, and the added AVPP includes priority information and private information of the public charging field of the current charging device. Priority information of the billing field;
每一跳所述计费设备依次转发处理后的通信请求消息;Each hopping charging device forwards the processed communication request message in turn;
每一跳所述计费设备依次接收通信响应消息;Each hopping charging device sequentially receives a communication response message;
每一跳所述计费设备分别向话单设备发送计费请求消息ACR,每个所述ACR中包括发送所述ACR的计费设备加入的AVPP,所发送的ACR用于指示所述话单设备根据每个所述ACR、网络协议IP多媒体子系统计费标识ICID、计费主体标识和每个所述AVPP进行合并计费。The aging device sends a charging request message (ACR) to the CDR device, and each of the ACRs includes an AVPP that is sent by the charging device that sends the ACR, and the sent ACR is used to indicate the CDR. The device performs combined charging according to each of the ACR, the network protocol IP multimedia subsystem charging identifier ICID, the charging subject identifier, and each of the AVPPs.
在第一方面的第一种可能的实现方式中,每一跳所述计费设备加入的公共计费字段的优先级信息在下一跳计费设备接收到处理后的通信请求消息后进行设置。In a first possible implementation manner of the first aspect, the priority information of the common charging field that is added to the charging device by each hop is set after the next hop charging device receives the processed communication request message.
根据第一方面的第一种可能的实现方式中,在第二种可能的实现方式中,所述计费设备包括第一计费设备、第二计费设备和第三计费设备,其中,所述第二计费设备的数量为一个或多个; According to a first possible implementation manner of the first aspect, in a second possible implementation, the charging device includes a first charging device, a second charging device, and a third charging device, where The number of the second charging devices is one or more;
所述每一跳计费设备在接收到的通信请求消息中加入当前计费设备的计费字段优先级信息AVPP,并依次转发处理后的通信请求消息,包括:The hopping device adds the charging field priority information AVPP of the current charging device to the received communication request message, and sequentially forwards the processed communication request message, including:
所述第一计费设备在接收到第一通信设备发送的通信请求消息后,在所述通信请求消息中加入所述第一计费设备的AVPP,并向所述第二计费设备发送处理后的通信请求消息;After receiving the communication request message sent by the first communication device, the first charging device adds the AVPP of the first charging device to the communication request message, and sends the processing to the second charging device. Post communication request message;
所述第二计费设备在接收到上一跳计费设备发送的通信请求消息后,在所述通信请求消息中加入所述第二计费设备的AVPP,设置所述上一跳计费设备的公共计费字段的优先级信息,其中,所述上一跳计费设备为所述第一计费设备或上一跳第二计费设备,并向下一跳第二计费设备或所述第三计费设备发送处理后的通信请求消息;After receiving the communication request message sent by the last hop charging device, the second charging device adds the AVPP of the second charging device to the communication request message, and sets the last hop charging device. The priority information of the public charging field, wherein the last hop charging device is the first charging device or the second hop second charging device, and the next hop second charging device or device Transmitting, by the third charging device, the processed communication request message;
所述第三计费设备在接收到上一跳第二计费设备发送的通信请求消息后,在所述通信请求消息中加入所述第三计费设备的AVPP,设置所述上一跳第二计费设备的公共计费字段的优先级信息,并向第二通信设备发送删除全部AVPP的通信请求消息。After receiving the communication request message sent by the second TTL device, the third charging device adds the AVPP of the third charging device to the communication request message, and sets the last hop. The priority information of the public charging field of the second charging device, and sending a communication request message for deleting all AVPPs to the second communication device.
根据第一方面、第一方面的第一种和第二种可能的实现方式中任意一种,在第三种可能的实现方式中,所述每一跳计费设备在接收到的通信请求消息中加入当前计费设备的计费字段优先级信息AVPP,包括:According to the first aspect, any one of the first and second possible implementation manners of the first aspect, in a third possible implementation manner, the hop charging device receives the communication request message The charging field priority information AVPP of the current charging device is added, including:
每一跳所述计费设备在接收到的通信请求消息的头域中加入优先级参数,并将所述当前计费设备的AVPP携带在所述优先级参数中。Each hopping charging device adds a priority parameter in a header field of the received communication request message, and carries the AVPP of the current charging device in the priority parameter.
第二方面,本发明实施例提供一种计费处理方法,包括:In a second aspect, an embodiment of the present invention provides a charging processing method, including:
话单设备接收每一跳计费设备发送的包括计费字段优先级信息AVPP的计费请求消息ACR;其中,每个所述ACR中的AVPP为发送所述ACR的计费设备在接收到的通信请求消息中加入的所述计费设备的AVPP,所加入的AVPP包括所述计费设备的公共计费字段的优先级信息和私有计费字段的优先级信息;The billing device receives the charging request message ACR including the charging field priority information AVPP sent by each hop charging device; wherein the AVPP in each of the ACRs is received by the charging device that sends the ACR The AVPP of the charging device added in the communication request message includes the priority information of the public charging field of the charging device and the priority information of the private charging field;
所述话单设备根据每个所述ACR、网络协议IP多媒体子系统计费标识ICID、计费主体标识和每个所述AVPP进行合并计费。The billing device performs combined charging according to each of the ACR, the network protocol IP multimedia subsystem charging identifier ICID, the charging subject identifier, and each of the AVPPs.
在第二方面的第一种可能的实现方式中,所加入的AVPP中的公共计费 字段的优先级信息在下一跳计费设备接收到通信请求消息后进行设置。In a first possible implementation of the second aspect, the public charging in the added AVPP The priority information of the field is set after the next hop charging device receives the communication request message.
根据第二方面的第一种可能的实现方式中,在第二种可能的实现方式中,所述计费设备包括第一计费设备、第二计费设备和第三计费设备,其中,所述第二计费设备的数量为一个或多个;According to a first possible implementation manner of the second aspect, in a second possible implementation manner, the charging device includes a first charging device, a second charging device, and a third charging device, where The number of the second charging devices is one or more;
所述第一计费设备发送的ACR中的AVPP为,所述第一计费设备在接收到第一通信设备发送的通信请求消息后,在所述通信请求消息中加入的所述第一计费设备的AVPP;The AVPP in the ACR sent by the first charging device is the first meter added by the first charging device to the communication request message after receiving the communication request message sent by the first communication device. AVPP for fee equipment;
所述第二计费设备发送的ACR中的AVPP为,所述第二计费设备在接收到上一跳计费设备发送的通信请求消息后,在所述通信请求消息中加入的所述第二计费设备的AVPP,以及所述第二计费设备设置后的所述上一跳计费设备的公共计费字段的优先级信息,其中,所述上一跳计费设备为所述第一计费设备或上一跳第二计费设备;The AVPP in the ACR sent by the second charging device is the first that the second charging device adds in the communication request message after receiving the communication request message sent by the last hop charging device. The AVPP of the second charging device, and the priority information of the public charging field of the last hop charging device after the second charging device is set, wherein the last hop charging device is the first a billing device or a second billing device;
所述第三计费设备发送的ACR中的AVPP为,所述第三计费设备在接收到上一跳第二计费设备发送的通信请求消息后,在所述通信请求消息中加入的所述第三计费设备的AVPP,以及所述第三计费设备设置后的所述上一跳第二计费设备的公共计费字段。The AVPP in the ACR sent by the third charging device is the location that the third charging device joins in the communication request message after receiving the communication request message sent by the second charging device of the last hop. The AVPP of the third charging device and the public charging field of the second charging device of the last hop after the third charging device is set.
在第二方面的第三种可能的实现方式中,所述话单设备根据每个所述ACR、网络协议IP多媒体子系统计费标识ICID、计费主体标识和每个所述AVPP进行合并计费,包括:In a third possible implementation manner of the second aspect, the billing device performs a combination according to each of the ACR, the network protocol IP multimedia subsystem charging identifier ICID, the charging subject identifier, and each of the AVPPs. Fees, including:
所述话单设备根据每个所述ACR生成对应于每个所述计费设备的计费数据记录CDR;The bill device generates a CDR corresponding to the billing data of each billing device according to each of the ACRs;
所述话单设备将每个所述CDR根据所述ICID、计费主体标识和每个所述AVPP进行合并计费,所生成的合并计费话单中包括全部所述计费设备中优先级最高的公共计费字段和每个所述计费设备的私有计费字段。The billing device combines and charges each of the CDRs according to the ICID, the billing subject identifier, and each of the AVPPs, and the generated billed bill includes all the priorities of the billing devices. The highest public charging field and the private charging field for each of the charging devices.
根据第二方面的第三种可能的实现方式中,在第四种可能的实现方式中,当至少两个所述AVPP中的公共计费字段的最高优先级相同时,所述合并计费话单中包括所述话单设备先获取到的优先级最高的公共计费字段和每个所述计费设备的私有计费字段。 According to a third possible implementation manner of the second aspect, in a fourth possible implementation, when the highest priority of the common charging field in the at least two of the AVPPs is the same, the combined charging The unicast includes the highest priority public charging field obtained by the CDR device and the private charging field of each charging device.
根据第二方面、第二方面的第一种到第四种可能的实现方式中任意一种,在第五种可能的实现方式中,每个所述ACR中的AVPP为,发送所述ACR的计费设备在接收到的通信请求消息的头域中加入优先级参数,并在所述优先级参数中加入的所述计费设备的AVPP。According to the second aspect, any one of the first to fourth possible implementation manners of the second aspect, in a fifth possible implementation, the AVPP in each of the ACRs is The charging device adds a priority parameter in the header field of the received communication request message, and adds the AVPP of the charging device to the priority parameter.
第三方面,本发明实施例提供一种计费处理装置,设置于网络协议IP多媒体子系统IMS的每一跳计费设备中,所述计费处理包括:In a third aspect, an embodiment of the present invention provides a charging processing apparatus, which is configured in a hopping device of a network protocol IP multimedia subsystem IMS, where the charging processing includes:
接收模块,设置为接收通信请求消息;接收通信响应消息;a receiving module, configured to receive a communication request message; receive a communication response message;
添加模块,设置为在所述接收模块接收到的通信请求消息中加入所述计费处理装置所属计费设备的计费字段优先级信息AVPP,所加入的AVPP包括:所述计费处理装置所属计费设备的公共计费字段的优先级信息和私有计费字段的优先级信息;And the adding module is configured to add, in the communication request message received by the receiving module, the charging field priority information AVPP of the charging device to which the charging processing device belongs, where the added AVPP includes: the charging processing device belongs to Priority information of a public charging field of the charging device and priority information of a private charging field;
发送模块,设置为转发所述添加模块处理后的通信请求消息;向话单设备发送计费请求消息ACR,每个所述ACR中包括发送所述ACR的计费设备加入的AVPP,所发送的ACR用于指示所述话单设备根据每个所述ACR、IMS计费标识ICID、计费主体标识和每个所述AVPP进行合并计费。a sending module, configured to forward the communication request message processed by the adding module, and send an accounting request message ACR to the CDR device, where each ACR includes an AVPP that is sent by the charging device that sends the ACR, and the sent The ACR is configured to instruct the billing device to perform combined charging according to each of the ACR, the IMS charging identifier ICID, the charging subject identifier, and each of the AVPPs.
在第三方面的第一种可能的实现方式中,所述添加模块加入的公共计费字段的优先级信息在下一跳计费设备接收到通信请求消息后进行设置。In a first possible implementation manner of the third aspect, the priority information of the public charging field added by the adding module is set after the next hop charging device receives the communication request message.
根据第三方面的第一种可能的实现方式中,在第二种可能的实现方式中,所述计费处理装置分别设置于第一计费设备、第二计费设备和第三计费设备中,其中,所述第二计费设备的数量为一个或多个;According to a first possible implementation manner of the third aspect, in a second possible implementation manner, the charging processing device is respectively disposed on the first charging device, the second charging device, and the third charging device Wherein the number of the second charging devices is one or more;
所述添加模块是设置为在所述接收模块接收到的通信请求消息中加入所述计费处理装置所属计费设备的AVPP,以及所述发送模块是设置为转发所述添加模块处理后的通信请求消息,包括:The adding module is configured to add an AVPP of the charging device to which the charging processing device belongs in the communication request message received by the receiving module, and the sending module is configured to forward the communication after the adding module is processed. Request message, including:
设置于所述第一计费设备的添加模块,是设置为在接收到第一通信设备发送的通信请求消息后,在所述通信请求消息中加入所述第一计费设备的AVPP;The adding module of the first charging device is configured to add the AVPP of the first charging device to the communication request message after receiving the communication request message sent by the first communication device;
设置于所述第一计费设备的发送模块,是设置为向所述第二计费设备发送所述添加模块处理后的通信请求消息; The sending module of the first charging device is configured to send the communication request message processed by the adding module to the second charging device;
设置于所述第二计费设备的添加模块,是设置为在接收到上一跳计费设备发送的通信请求消息后,在所述通信请求消息中加入所述第二计费设备的AVPP,并设置所述上一跳计费设备的公共计费字段的优先级信息,其中,所述上一跳计费设备为所述第一计费设备或上一跳第二计费设备;The adding module of the second charging device is configured to add the AVPP of the second charging device to the communication request message after receiving the communication request message sent by the last hop charging device. And setting the priority information of the public charging field of the last hop charging device, where the last hop charging device is the first charging device or the last hop second charging device;
设置于所述第二计费设备的发送模块,是设置为向下一跳第二计费设备或所述第三计费设备发送所述添加模块处理后的通信请求消息;The sending module of the second charging device is configured to send the communication request message processed by the adding module to the next hop second charging device or the third charging device;
设置于所述第三计费设备的添加模块,是设置为在接收到上一跳第二计费设备发送的通信请求消息后,在所述通信请求消息中加入所述第三计费设备的AVPP,设置所述上一跳第二计费设备的公共计费字段的优先级信息;The adding module of the third charging device is configured to add the third charging device to the communication request message after receiving the communication request message sent by the second charging device of the last hop AVPP, setting priority information of a public charging field of the second TTL device of the last hop;
设置于所述第三计费设备的发送模块,是设置为向第二通信设备发送删除全部AVPP的通信请求消息。The sending module disposed in the third charging device is configured to send a communication request message for deleting all AVPPs to the second communication device.
根据第三方面、第三方面的第一种和第二种可能的实现方式中任意一种,在第三种可能的实现方式中,添加模块,是设置为通过如下方式实现在所述接收模块接收到的通信请求消息中加入所述计费处理装置所属计费设备的AVPP:According to the third aspect, any one of the first and second possible implementation manners of the third aspect, in a third possible implementation, the adding module is configured to be implemented in the receiving module by: Adding the AVPP of the charging device to which the charging processing device belongs to the received communication request message:
在所述接收模块接收到的通信请求消息的头域中加入优先级参数,并将所述计费处理装置所属计费设备的AVPP携带在所述优先级参数中。Adding a priority parameter to a header field of the communication request message received by the receiving module, and carrying an AVPP of the charging device to which the charging processing device belongs is carried in the priority parameter.
第四方面,本发明实施例提供一种计费处理装置,设置于网络协议IP多媒体子系统IMS的话单设备中,所述计费处理装置包括:In a fourth aspect, an embodiment of the present invention provides a charging processing apparatus, which is configured in a billing device of a network protocol IP multimedia subsystem IMS, where the charging processing apparatus includes:
接收模块,设置为接收每一跳计费设备发送的包括计费字段优先级信息AVPP的计费请求消息ACR;其中,每个所述ACR中的AVPP为发送所述ACR的计费设备在接收到的通信请求消息中加入的所述计费设备的AVPP,所加入的AVPP包括所述计费设备的公共计费字段的优先级信息和私有计费字段的优先级信息;a receiving module, configured to receive an accounting request message ACR including a charging field priority information AVPP sent by each hop charging device, where the AVPP in each of the ACRs is receiving the charging device that sends the ACR The AVPP of the charging device added to the incoming communication request message includes the priority information of the public charging field of the charging device and the priority information of the private charging field;
合并计费模块,设置为根据所述接收模块接收的每个ACR,以及IMS计费标识ICID、计费主体标识和每个AVPP进行合并计费。The combined charging module is configured to perform combined charging according to each ACR received by the receiving module, and an IMS charging identifier ICID, a charging subject identifier, and each AVPP.
在第四方面的第一种可能的实现方式中,所加入的AVPP中的公共计费字段的优先级信息在下一跳计费设备接收到通信请求消息后进行设置。 In a first possible implementation manner of the fourth aspect, the priority information of the public charging field in the added AVPP is set after the next hop charging device receives the communication request message.
根据第四方面的第一种可能的实现方式中,在第二种可能的实现方式中,所述计费设备包括第一计费设备、第二计费设备和第三计费设备,其中,所述第二计费设备的数量为一个或多个;According to the first possible implementation manner of the fourth aspect, in a second possible implementation manner, the charging device includes a first charging device, a second charging device, and a third charging device, where The number of the second charging devices is one or more;
所述第一计费设备发送的ACR中的AVPP为,所述第一计费设备在接收到第一通信设备发送的通信请求消息后,在所述通信请求消息中加入的所述第一计费设备的AVPP;The AVPP in the ACR sent by the first charging device is the first meter added by the first charging device to the communication request message after receiving the communication request message sent by the first communication device. AVPP for fee equipment;
所述第二计费设备发送的ACR中的AVPP为,所述第二计费设备在接收到上一跳计费设备发送的通信请求消息后,在所述通信请求消息中加入的所述第二计费设备的AVPP,以及所述第二计费设备设置后的所述上一跳计费设备的公共计费字段的优先级信息,其中,所述上一跳计费设备为所述第一计费设备或上一跳第二计费设备;The AVPP in the ACR sent by the second charging device is the first that the second charging device adds in the communication request message after receiving the communication request message sent by the last hop charging device. The AVPP of the second charging device, and the priority information of the public charging field of the last hop charging device after the second charging device is set, wherein the last hop charging device is the first a billing device or a second billing device;
所述第三计费设备发送的ACR中的AVPP为,所述第三计费设备在接收到上一跳第二计费设备发送的通信请求消息后,在所述通信请求消息中加入的所述第三计费设备的AVPP,以及所述第三计费设备设置后的所述上一跳第二计费设备的公共计费字段。The AVPP in the ACR sent by the third charging device is the location that the third charging device joins in the communication request message after receiving the communication request message sent by the second charging device of the last hop. The AVPP of the third charging device and the public charging field of the second charging device of the last hop after the third charging device is set.
在第四方面的第三种可能的实现方式中,所述合并计费模块包括:In a third possible implementation manner of the fourth aspect, the combined charging module includes:
数据生成单元,设置为根据所述接收模块接收到的每个ACR生成对应于每个所述计费设备的计费数据记录CDR;a data generating unit, configured to generate, according to each ACR received by the receiving module, a charging data record CDR corresponding to each of the charging devices;
合并计费单元,设置为将所述数据生成单元生成的每个所述CDR根据所述ICID、计费主体标识和每个所述AVPP进行合并计费,所生成的合并计费话单中包括全部所述计费设备中优先级最高的公共计费字段和每个所述计费设备的私有计费字段。And the combined charging unit is configured to combine the charging of each of the CDRs generated by the data generating unit according to the ICID, the charging entity identifier, and each of the AVPPs, and the generated consolidated charging bill includes The public charging field with the highest priority among all the charging devices and the private charging field of each charging device.
根据第四方面的第三种可能的实现方式中,在第四种可能的实现方式中,当至少两个所述AVPP中的公共计费字段的最高优先级相同时,所述合并计费话单中包括所述话单设备先获取到的优先级最高的公共计费字段和每个所述计费设备的私有计费字段。According to a third possible implementation manner of the fourth aspect, in a fourth possible implementation, when the highest priority of the common charging field in the at least two of the AVPPs is the same, the consolidated charging The unicast includes the highest priority public charging field obtained by the CDR device and the private charging field of each charging device.
根据第四方面、第四方面的第一种到第四种可能的实现方式中任意一种,在第五种可能的实现方式中,每个所述ACR中的AVPP为,发送所述ACR 的计费设备在接收到的通信请求消息的头域中加入优先级参数,并在所述优先级参数中加入的所述计费设备的AVPP。According to the fourth aspect, any one of the first to fourth possible implementation manners of the fourth aspect, in a fifth possible implementation, the AVPP in each of the ACRs is, sending the ACR The charging device adds a priority parameter in the header field of the received communication request message, and adds the AVPP of the charging device to the priority parameter.
第五方面,本发明实施例提供一种计费系统,包括:分别设置于网络协议IP多媒体子系统IMS中业务层、控制层、接入层的计费设备和计费话单,每个所述计费设备中设置有如上述第三方面中任一项所述的计费处理装置,所述计费话单中设置有如上述第四方面中任一项所述的计费处理装置。In a fifth aspect, an embodiment of the present invention provides a charging system, which includes: a charging device and a charging bill respectively set in a service layer, a control layer, and an access layer in a network protocol IP multimedia subsystem IMS, where each The billing device is provided with the billing processing device according to any one of the preceding aspects, wherein the billing bill is provided with the billing processing device according to any one of the above fourth aspects.
本发明实施例提供的计费处理方法、装置和计费系统,通过每一跳计费设备在接收到的通信请求消息中加入当前计费设备的AVPP,所加入的AVPP包括当前计费设备的公共计费字段的优先级信息和私有计费字段的优先级信息,在每一跳计费设备依次转发处理后的通信请求消息和依次接收到通信响应消息后,分别向话单设备发送ACR,所发送的每个ACR用于指示话单设备根据每个ACR、ICID、计费主体标识和每个AVPP进行合并计费,从而实现合并计费的话单中的公共字段信息以AVPP中的优先级为依据,并非简单的以特定计费设备的公共字段信息为依据,从而实现了灵活计费的标准,避免了在通过多种计费网元进行话单合并的计费过程中,由于公共字段信息均以AS网元为准,而导致的在一些特定业务的应用场景中生成的计费话单不准确的情况发生。The charging processing method, device, and charging system provided by the embodiment of the present invention add the AVPP of the current charging device to the received communication request message by using the hopping charging device, and the added AVPP includes the current charging device. The priority information of the public charging field and the priority information of the private charging field are respectively sent to the CDR device after the hopping device sequentially forwards the processed communication request message and sequentially receives the communication response message. Each ACR sent is used to indicate that the bill device performs combined billing according to each ACR, ICID, billing subject identifier, and each AVPP, so that the common field information in the bill of the combined billing is prioritized in the AVPP. As a basis, it is not simply based on the public field information of a specific charging device, thereby implementing a flexible charging standard, and avoiding the public field in the charging process of combining bills through multiple charging network elements. The information is based on the AS network element, and the charging bills generated in the application scenarios of some specific services are inaccurate.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1为相关技术提供的一种IMS中计费功能实体的结构示意图;1 is a schematic structural diagram of a charging function entity in an IMS according to related art;
图2为本发明实施例提供的一种计费处理方法的流程图;2 is a flowchart of a charging processing method according to an embodiment of the present invention;
图3为本发明实施例提供的另一种计费处理方法的流程图;FIG. 3 is a flowchart of another charging processing method according to an embodiment of the present invention;
图4为本发明实施例提供的一种计费处理方法的信令交互流程图;FIG. 4 is a flowchart of signaling interaction of a charging processing method according to an embodiment of the present disclosure;
图5为本发明实施例提供的又一种计费处理方法的流程图;FIG. 5 is a flowchart of still another charging processing method according to an embodiment of the present invention;
图6为本发明实施例提供的再一种计费处理方法的流程图;FIG. 6 is a flowchart of still another charging processing method according to an embodiment of the present invention;
图7为本发明实施例提供的另一种计费处理方法的信令交互流程图;FIG. 7 is a flowchart of signaling interaction of another charging processing method according to an embodiment of the present disclosure;
图8为本发明实施例提供的又一种计费处理方法的信令交互流程图; FIG. 8 is a flowchart of signaling interaction of another charging processing method according to an embodiment of the present disclosure;
图9为本发明实施例提供的再一种计费处理方法的信令交互流程图;FIG. 9 is a flowchart of signaling interaction of another charging processing method according to an embodiment of the present invention;
图10为本发明实施例提供的还一种计费处理方法的信令交互流程图;FIG. 10 is a flowchart of signaling interaction of a charging processing method according to an embodiment of the present disclosure;
图11为本发明实施例提供的一种计费处理装置的结构示意图;FIG. 11 is a schematic structural diagram of a charging processing apparatus according to an embodiment of the present disclosure;
图12为本发明实施例提供的另一种计费处理装置的结构示意图;FIG. 12 is a schematic structural diagram of another charging processing apparatus according to an embodiment of the present disclosure;
图13为本发明实施例提供的又一种计费处理装置的结构示意图。FIG. 13 is a schematic structural diagram of still another charging processing apparatus according to an embodiment of the present invention.
本发明的实施方式Embodiments of the invention
下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。The steps illustrated in the flowchart of the figures may be executed in a computer system such as a set of computer executable instructions. Also, although logical sequences are shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
图1为相关技术提供的一种IMS中计费功能实体的结构示意图。图1中示出了计费功能实体的组成和每个功能实体之间的关系,其中,计费触发功能(Charging Trigger Function,简称为:CTF)内嵌在3GPP IMS每个网元(包括接入层网元,控制层网元,业务层网元)中,它主要实现的功能是,根据监测到的网络资源的使用情况,进行计费字段的收集,并通过Rf接口(Offline Charging Reference Point)发送ACR到CDF,CDF的主要功能是,接收CTF发送的ACR,构造成CDR,并通过Ga接口发送到计费网关功能(Charging Gateway Function,简称为:CGF),CGF的主要功能是,对从CDF接收到的CDR进行存储和管理,并通过Bi接口将CDR文件发送到计费域(Billing Domain,简称为:BD)。FIG. 1 is a schematic structural diagram of a charging function entity in an IMS provided by the related art. Figure 1 shows the composition of the charging function entity and the relationship between each functional entity. The Charging Trigger Function (CTF) is embedded in each network element of the 3GPP IMS (including In the inbound layer network element, the control layer network element, and the service layer network element, the main function is to collect the charging field according to the monitored usage of the network resource, and pass the Rf interface (Offline Charging Reference Point). Sending ACR to CDF, the main function of the CDF is to receive the ACR sent by the CTF, construct it into a CDR, and send it to the Charging Gateway Function (CGF) through the Ga interface. The main function of the CGF is, The CDRs received from the CDF are stored and managed, and the CDR files are sent to the billing domain (Billing Domain, BD for short) through the Bi interface.
上述说明的在多种计费网元进行话单合并的计费过程中,目前IMS业界都是以计费网络AS的公共字段信息为准的计费方式,会导致在一些特定业务的应用场景中生成的计费话单不准确的问题,以下举例说明一些特定业务的应用场景中计费话单不准确的具体情况:In the above-mentioned charging process in which multiple billing network elements perform bill consolidation, the IMS industry currently adopts the charging mode based on the common field information of the charging network AS, which may result in application scenarios in some specific services. The inaccuracy of the billing bills generated in the following is an example of the inaccurate billing bills in the application scenarios of specific services:
应用场景一,当用户发生号码携带业务时,例如当用户需要从MGCF查询现网号码携带数据库(Number Portability Database,简称为:NPDB)业务 时,SCSCF、PCSCF和AS产生的公用被叫号码,即Called-Party-Address值是不相同的,相关技术中默认从AS生成的话单中获取被叫号码Called-Party-Address是不正确的,而应从SCSCF获取Called-Party-Address作为合并关联后的最终被叫号码。Application scenario 1: When a user carries a number portability service, for example, the user needs to query the MGCF for the number portability database (NPDB) service. The value of the Called-Party-Address generated by the SCSCF, the PCSCF, and the AS is not the same. In the related art, it is incorrect to obtain the called number Called-Party-Address from the CDRs generated by the AS. Instead, the Called-Party-Address should be obtained from the SCSCF as the final called number after the merge association.
应用场景二,当IMS域的用户级交换机(Private Branch Exchange,简称为:PBX)用户呼叫电路交换(Circuit Switched,简称为:CS)域用户时,MGCF主叫话单中的计费主体标识,即Role-Of-Node的值为Incoming_Business_trunking_proxy(5),与AS产生的主叫话单Role-Of-Node(0)的值是不相同的,CDF需要从MGCF获取Role-Of-Node的值作为合并关联后的最终值。Application scenario 2: When the user of the IMS domain (Private Branch Exchange, PBX) calls the Circuit Switched (CS) domain user, the charging entity identifier in the MGCF calling bill is That is, the value of the Role-Of-Node is Incoming_Business_trunking_proxy(5), which is different from the value of the caller Role-Of-Node(0) generated by the AS. The CDF needs to obtain the value of the Role-Of-Node from the MGCF. The final value after the association is merged.
应用场景三,由于每一次呼叫过程中产生的话单都包含开始时间(service Delivery Start Time Stamp)、结束时间(service Delivery End Time Stamp),CDF必须将从同一个计费网元中获取的话单开始时间(service Delivery Start Time Stamp)和话单结束时间(service Delivery End Time Stamp)填充到合并关联后的最终话单中,若IMS中每个业务网元间没有统一做网络时间协议(Network Time Protocol,简称为:NTP)时间同步,CDF从SCSCF获取了话单开始时间(service Delivery Start Time Stamp),再从AS获取了话单结束时间(service Delivery End Time Stamp),有可能这两个时间相差特别距大,这样最终合并关联话单计算出来的时长(Duration)将会非常大,从而造成合并关联后的时长不正确的问题,这显然不是用户的实际话单。In application scenario 3, since the CDRs generated during each call include a service delivery start time stamp and a service delivery end time stamp, the CDF must start with the CDRs obtained from the same charging network element. The service delivery start time stamp and the service delivery end time stamp are filled in the final CDRs of the merged association. If there is no unified network time protocol between each service network element in the IMS (Network Time Protocol) , referred to as: NTP) time synchronization, CDF obtains the service delivery start time stamp from the SCSCF, and then obtains the service delivery end time stamp from the AS. It is possible that the two time differences Especially the distance is large, so the duration of the final merged associated bills will be very large, which will cause the incorrect length of the merged association, which is obviously not the actual bill of the user.
下面通过具体的实施例对本发明的技术方案进行详细说明,本发明以下各实施例中计费设备均为打开计费功能的计费网元,话单设备为具有CDF功能的实体设备,并且计费处理是指对进行通信的呼叫侧分支进行计费,即主叫侧和被叫侧是分别计费的,主叫侧和被叫侧的计费方式是相同的,本发明以下各实施例均以对主叫侧的计费方式为例予以示出,其可以是基于某一项技术领域,也可以是包含多项技术领域的内容。本发明提供以下几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。The technical solutions of the present invention are described in detail in the following embodiments. In the following embodiments, the charging device is a charging network element that has a charging function, and the CDR device is a physical device with a CDF function. The fee processing refers to charging the call side branch that performs communication, that is, the calling side and the called side are separately charged, and the charging methods of the calling side and the called side are the same, and the following embodiments of the present invention The charging method on the calling side is taken as an example, which may be based on a certain technical field, or may include content in a plurality of technical fields. The following specific embodiments of the present invention may be combined with each other, and the same or similar concepts or processes may not be described in some embodiments.
图2为本发明实施例提供的一种计费处理方法的流程图。本实施例提供 的计费处理方法适用于对IMS中通过多个计费设备进行合并计费的情况中,该方法可以由计费处理装置执行,该计费处理装置通过硬件和软件结合的方式来实现,该装置可以集成在计费设备的处理器中,供处理器调用使用。如图2所示,本实施例的方法可以包括:FIG. 2 is a flowchart of a charging processing method according to an embodiment of the present invention. This embodiment provides The charging processing method is applicable to the case where the charging is performed by the plurality of charging devices in the IMS, the method may be performed by the charging processing device, and the charging processing device is implemented by combining hardware and software. The device can be integrated into the processor of the billing device for use by the processor. As shown in FIG. 2, the method in this embodiment may include:
S110,每一跳计费设备在接收到的通信请求消息中加入当前计费设备的计费字段优先级信息(Attribue value pair Priority,简称为:AVPP),所加入的AVPP包括当前计费设备的公共计费字段的优先级信息和私有计费字段的优先级信息。S110: Each hop charging device adds the Attibue value pair priority (AVPP) of the current charging device to the received communication request message, and the added AVPP includes the current charging device. Priority information of the public charging field and priority information of the private charging field.
本实施例提供的计费处理方法,涉及多个计费设备对IMS中的一次会话或事务进行计费的应用场景,每一跳计费设备依次接收通信请求消息,该通信请求消息例如为会话初始协议(Session Initiation Protocol,简称为:SIP)请求消息,例如第一跳计费设备接收第一通信设备发送的SIP请求消息,该第一通信设备例如为此次通信的主叫侧设备;其它计费设备接收其上一跳计费设备转发的SIP请求消息。与相关技术不同的是,本发明各实施例中的每一跳计费设备在接收到通信请求消息后,没有直接将接收的通信请求消息转发给下一跳计费设备或第二通信设备,该第二通信设备例如为此次通信的被叫侧设备,而是在接收到的通信请求消息中加入AVPP,所加入的AVPP中包括当前计费设备的公共计费字段的优先级信息和私有计费字段的优先级信息。也就是说,每个计费设备在转发通信请求消息前,都记录有其自身的AVPP。The charging processing method provided in this embodiment relates to an application scenario in which a plurality of charging devices perform charging for one session or transaction in the IMS, and each hop charging device sequentially receives a communication request message, where the communication request message is, for example, a session. An initial protocol (Session Initiation Protocol, SIP for short) request message, for example, the first hop charging device receives a SIP request message sent by the first communication device, where the first communication device is, for example, a calling side device of the communication; The charging device receives the SIP request message forwarded by its last hop charging device. Different from the related art, after receiving the communication request message, each hop charging device in the embodiments of the present invention does not directly forward the received communication request message to the next hop charging device or the second communication device. The second communication device is, for example, the called side device of the current communication, but adds the AVPP in the received communication request message, and the added AVPP includes the priority information and the private information of the public charging field of the current charging device. Priority information for the billing field. That is to say, each charging device records its own AVPP before forwarding the communication request message.
在具体实现中,所有计费字段的优先级可以用类型(Type)、长度(Length)和值(Value)(简称为:TLV)来表示,以0xFE0xFF0xFE0xFF结束;可选地,TLV中的T表示AVP代码(Code),占用4个字节,L表示供应商身份标识(Vendor-Id),占用4个字节,V表示优先级,占用1个字节,值越大优先级越高,该优先级的值例如可以定义为:值为“1”表示LOWEST_PRIORITY、值为“2”表示LOWER_PRIORITY、值为“3”表示NORMAL_PRIORITY、值为“4”表示HIGHER_PRIORITY、值为“5”表示HIGHEST_PRIORITY。另外,在每一跳计费设备加入AVPP时,可以默认加入的所有计费字段的优先级信息均为NORMAL_PRIORITY,其中,公共计费 字段的优先级信息可以在下一跳计费设备中进行修改。In a specific implementation, the priority of all charging fields may be represented by type, length, and value (abbreviated as: TLV), ending with 0xFE0xFF0xFE0xFF; optionally, T in the TLV AVP code (Code), which occupies 4 bytes, L represents the Vendor ID (Vendor-Id), occupies 4 bytes, V indicates priority, and occupies 1 byte. The larger the value, the higher the priority. The value of the priority can be defined, for example, as a value of "1" for LOWEST_PRIORITY, a value of "2" for LOWER_PRIORITY, a value of "3" for NORMAL_PRIORITY, a value of "4" for HIGH_PRIORITY, and a value of "5" for HIGHEST_PRIORITY. In addition, when each hop charging device joins AVPP, the priority information of all charging fields that can be added by default is NORMAL_PRIORITY, where public charging The priority information of the field can be modified in the next hop charging device.
S120,每一跳计费设备转发处理后的通信请求消息。S120. Each hop charging device forwards the processed communication request message.
S130,每一跳计费设备依次接收通信响应消息。S130. Each hop charging device sequentially receives a communication response message.
在本实施例中,主叫侧设备发送通信请求消息后,第一跳计费设备在接收并加入其自身的AVPP后发送给下一跳计费设备,直至最后一跳计费设备将通信请求消息发送给被叫侧设备,即每一跳计费设备是依次接收通信请求消息,相应地,也是依次转发经过处理的通信请求消息。另外,在最后一跳计费设备将通信请求消息转发给被叫侧设备后,被叫侧设备对其做出回应,即发送通信响应消息,例如为200OK响应消息,此时,按照与每一跳计费设备发送通信请求消息相反的顺序,依次反馈通信响应消息,最终将该通信响应消息返回给主叫侧设备。In this embodiment, after the calling side device sends the communication request message, the first hop charging device sends and adds its own AVPP to the next hop charging device until the last hop charging device sends a communication request. The message is sent to the called side device, that is, each hop charging device sequentially receives the communication request message, and correspondingly, the processed communication request message is sequentially forwarded. In addition, after the last hop charging device forwards the communication request message to the called side device, the called side device responds to it, that is, sends a communication response message, for example, a 200 OK response message, at this time, according to each The hopping device sends the communication request message in the reverse order, and sequentially feeds back the communication response message, and finally returns the communication response message to the calling side device.
需要说明的是,由于本发明各实施例中计费处理是指对进行通信的呼叫侧分支进行计费的,即主叫侧和被叫侧是分别进行计费的,因此,虽然最后一跳计费设备在接收到的通信请求消息中加入了其自身的AVPP,在最后一跳计费设备向被叫侧设备发送通信请求消息前,删除该通信请求消息中的所有AVPP,以保证单侧计费的原则。It should be noted that, in the embodiments of the present invention, the charging process refers to charging the call side branch that performs communication, that is, the calling side and the called side are separately charged, and therefore, although the last hop The charging device adds its own AVPP in the received communication request message, and deletes all AVPPs in the communication request message before the last hop charging device sends a communication request message to the called side device to ensure one-sided The principle of billing.
S140,每一跳计费设备分别向话单设备发送ACR,每个ACR中包括发送ACR的计费设备加入的AVPP,所发送的ACR用于指示话单设备根据每个所述ACR、每个ACR中的AVPP、ICID和计费主体标识进行合并计费。S140, each hop charging device sends an ACR to the CDR device, and each ACR includes an AVPP that is sent by the charging device that sends the ACR, and the sent ACR is used to indicate that the CDR device is configured according to each of the ACRs. The AVPP, ICID, and billing subject identifiers in the ACR are combined and billed.
在本实施例中,每一跳计费设备接收到上述通信响应消息后,可以向话单设备发送ACR,每个被发送的ACR中具有与计费设备对应的AVPP。相关技术中计费话单的合并联合仅依据ICID和计费主体标识,公共字段信息均以AS为准,因此在上述一些特殊业务的应用场景下会导致计费的合并话单不准确;相比之下,本发明各实施例中用于进行合并计费的依据增加了AVPP,该AVPP用于在选择公共字段信息时,通过每个计费设备的公共字段的优先级信息确定合并话单中以哪个公共字段信息为准。In this embodiment, after receiving the communication response message, each hop charging device may send an ACR to the CDR device, and each transmitted ACR has an AVPP corresponding to the charging device. In the related art, the combination of the billing bills is based on the ICID and the billing subject identifier, and the common field information is based on the AS. Therefore, in the application scenario of the above special services, the billing merge bill is inaccurate; In contrast, the basis for performing the combined charging in the embodiments of the present invention increases the AVPP, and the AVPP is used to determine the merged bill by using the priority information of the common field of each charging device when selecting the common field information. Which public field information is subject to which.
本实施例所提供的计费处理方法,由于每一跳计费设备在接收到通信请求消息时,都要添加自身的AVPP,从而在进行合并计费时,不是简单的以 特定计费设备的公共字段信息为依据,例如总是以AS的公共字段信息为准,本实施例针对不同的应用场景具有不同的计费方式,即计费时可以能采用不同的公共字段信息,从而实现灵活计费,提高了合并计费的准确性。In the charging processing method provided in this embodiment, since each hop charging device needs to add its own AVPP when receiving the communication request message, it is not simple to perform the combined charging. The common field information of the specific charging device is based on, for example, the common field information of the AS is always used. This embodiment has different charging modes for different application scenarios, that is, different common field information can be used for charging. In order to achieve flexible billing, the accuracy of the combined billing is improved.
本实施例所提供的计费处理方法,通过每一跳计费设备在接收到的通信请求消息中加入当前计费设备的AVPP,所加入的AVPP包括当前计费设备的公共计费字段的优先级信息和私有计费字段的优先级信息,在每一跳计费设备依次转发处理后的通信请求消息和依次接收到通信响应消息后,分别向话单设备发送ACR,所发送的每个ACR用于指示话单设备根据每个ACR、ICID、计费主体标识和每个AVPP进行合并计费,从而实现合并计费的话单中的公共字段信息以AVPP中的优先级为依据,并非简单的以特定计费设备的公共字段信息为依据,从而实现了灵活计费的标准;本实施例提供的方法可以避免在通过多种计费网元进行话单合并的计费过程中,由于公共字段信息均以AS网元为准,而导致的在一些特定业务的应用场景中生成的计费话单不准确的情况发生。The charging processing method provided in this embodiment adds the AVPP of the current charging device to the received communication request message by the hop charging device, and the added AVPP includes the priority of the public charging field of the current charging device. Priority information of the level information and the private charging field, after each hop charging device sequentially forwards the processed communication request message and sequentially receives the communication response message, respectively sends an ACR to the CDR device, and each ACR sent It is used to indicate that the bill device performs combined billing according to each ACR, ICID, billing subject identifier, and each AVPP, so that the common field information in the bill of the combined billing is based on the priority in the AVPP, which is not simple. Based on the common field information of the specific charging device, the standard for flexible charging is implemented. The method provided in this embodiment can avoid the public field in the charging process of combining bills through multiple charging network elements. The information is based on the AS network element, and the charging bills generated in the application scenarios of some specific services are inaccurate.
可选地,本实施例中的每一跳计费设备加入的公共计费字段的优先级信息可以在其下一跳计费设备中进行设置,例如每个计费设备可以保持不变或修改上一跳计费设备加入的公共计费字段的优先级信息,是否修改可以预先设置在计费设备的配置信息。在具体实现中,可以在计费设备中预先配置对应于不同应用场景的设置方式,用于对上一跳计费设备加入的公共字段的优先级信息进行设置,以保证在特殊业务的应用场景中可以使用正确的公共字段信息。Optionally, the priority information of the public charging field added by each hop charging device in this embodiment may be set in the next hop charging device, for example, each charging device may remain unchanged or modified. The priority information of the public charging field added by the last hop charging device, whether the modification may be preset in the configuration information of the charging device. In a specific implementation, the setting mode corresponding to different application scenarios may be pre-configured in the charging device, and the priority information of the common field added by the last hop charging device may be set to ensure the application scenario in the special service. The correct public field information can be used.
需要说明的是,本发明各实施例中的计费设备的物理数量至少为三个,分别对应于业务层、控制层和接入层,即上述每一层中具有至少一个实体的计费设备。另外,本发明各实施例中的计费设备在逻辑关系上包括:第一计费设备、第二计费设备和第三计费设备,其中,上述第二计费设备的数量为一个或多个。如图3所示,为本发明实施例提供的另一种计费处理方法的流程图。本实施例在上述图2所示实施例的基础上,具体说明第一、第二和第三计费设备的处理方式,即本实施例中的S110和S120的执行方式为,S110包括以下S111、S112和S113,S120包括以下S121、S122和S123,并且本 实施例中S111、S112和S113与S121、S122和S123的执行顺序以图3中的顺序示出。It should be noted that the physical quantity of the charging device in the embodiments of the present invention is at least three, corresponding to the service layer, the control layer, and the access layer, that is, the charging device having at least one entity in each layer. . In addition, the charging device in the embodiments of the present invention includes: a first charging device, a second charging device, and a third charging device, wherein the number of the second charging device is one or more One. FIG. 3 is a flowchart of another charging processing method according to an embodiment of the present invention. In this embodiment, on the basis of the foregoing embodiment shown in FIG. 2, the processing manners of the first, second, and third charging devices are specifically described, that is, the execution manners of S110 and S120 in this embodiment are: S110 includes the following S111. , S112 and S113, S120 includes the following S121, S122, and S123, and The order of execution of S111, S112, and S113 and S121, S122, and S123 in the embodiment is shown in the order of FIG.
S111,第一计费设备在接收到第一通信设备发送的通信请求消息后,在通信请求消息中加入该第一计费设备的AVPP。S111. After receiving the communication request message sent by the first communication device, the first charging device adds the AVPP of the first charging device to the communication request message.
S121,第一计费设备向第二计费设备发送处理后的通信请求消息。S121. The first charging device sends the processed communication request message to the second charging device.
S112,第二计费设备在接收到上一跳计费设备发送的通信请求消息后,在通信请求消息中加入该第二计费设备的AVPP,设置上一跳计费设备的公共计费字段的优先级信息,其中,上一跳计费设备为第一计费设备或上一跳第二计费设备。S112. After receiving the communication request message sent by the last hop charging device, the second charging device adds the AVPP of the second charging device to the communication request message, and sets a public charging field of the last hop charging device. The priority information, wherein the last hop charging device is the first charging device or the last hop second charging device.
S122,第二计费设备向下一跳第二计费设备或第三计费设备发送处理后的通信请求消息。S122. The second charging device sends the processed communication request message to the second charging device or the third charging device to the next hop.
S113,第三计费设备在接收到上一跳第二计费设备发送的通信请求消息后,在通信请求消息中加入该第三计费设备的AVPP,设置上一跳第二计费设备的公共计费字段的优先级信息。S113. After receiving the communication request message sent by the second charging device of the last hop, the third charging device adds the AVPP of the third charging device to the communication request message, and sets the second charging device of the last hop. Priority information for the public billing field.
S123,第三计费设备向第二通信设备发送删除全部AVPP的通信请求消息。S123. The third charging device sends a communication request message for deleting all AVPPs to the second communication device.
可选地,本实施例中的每一跳计费设备加入的AVPP的方式可以包括:在其接收到的通信请求消息的头域中加入优先级参数,并将当前计费设备的AVPP携带在该优先级参数中;可选地,根据3GPP的规范,在SIP请求消息的头域P计费向量(P-Charging-Vector)中新增优先级参数,该参数用于携带所有AVPP,并且可以设置SIP请求消息中是否携带AVPP,如果计费中心不需要合并关联后的话单,则可以配置为不携带任一AVPP,根据计费中心的要求确定是否携带AVPP有利于减少网络中的消息流量。Optionally, the manner in which the AVPP of each hop charging device in the embodiment is added may include: adding a priority parameter in a header field of the communication request message that is received, and carrying the AVPP of the current charging device. In the priority parameter, optionally, according to the 3GPP specification, a priority parameter is added in the P-Charging-Vector of the SIP request message, and the parameter is used to carry all AVPPs, and Set whether to carry the AVPP in the SIP request message. If the billing center does not need to merge the associated bills, you can configure it to not carry any AVPP. Determining whether to carry the AVPP according to the requirements of the billing center is beneficial to reducing the message traffic in the network.
在具体实现中,本实施例的SIP请求消息的头域中新增优先级参数的方式例如可以为,增加优先级参数列表,列表中的每个优先级参数携带一个AVPP;还可以为,增加优先级参数,该参数携带所有AVPP。In a specific implementation, the method for adding a priority parameter in the header field of the SIP request message in this embodiment may be, for example, adding a priority parameter list, where each priority parameter in the list carries an AVPP; Priority parameter, which carries all AVPPs.
在本实施例中,计费设备的逻辑关系为:第一计费设备为初始(First)计费设备,第二计费设备为中间(Middle)计费设备,第三计费设备为最终 (Last)计费设备,其中,第一和第三计费设备仅有一个,而第二计费设备可以有多个,如图4所示,为本发明实施例提供的一种计费处理方法的信令交互流程图,图4中的计费针对主叫侧用户,计费网元包括网元(Network Element,简称为:NE)1、NE2、NE3和NE4,其中,NE2的状态为关闭计费功能,即NE2不进行计费,不属于本发明实施例所述的计费设备,本实施例中的NE1为第一计费设备,NE3为第二计费设备,NE4为第三计费设备,话单设备用CDF表示。In this embodiment, the logical relationship of the charging device is: the first charging device is an initial charging device, the second charging device is a middle charging device, and the third charging device is a final (Last) charging device, wherein the first and third charging devices have only one, and the second charging device may have multiple, as shown in FIG. 4, which is a charging process provided by an embodiment of the present invention. The signaling interaction flowchart of the method, the charging in FIG. 4 is directed to the calling party user, and the charging network element includes a network element (NE element) 1, NE2, NE3, and NE4, wherein the state of the NE2 is The billing function is disabled, that is, the NE2 is not charged, and the billing device is not included in the embodiment of the present invention. In this embodiment, NE1 is the first billing device, NE3 is the second billing device, and NE4 is the third. Billing equipment, bill devices are represented by CDF.
图4所示实施例提供的计费处理方法包括以下步骤:The charging processing method provided by the embodiment shown in FIG. 4 includes the following steps:
S201,主叫侧设备向NE1发送SIP请求消息。S201. The calling side device sends a SIP request message to NE1.
S202,NE1在其接收的SIP请求消息中加入NE1的AVPP。S202. NE1 adds the AVPP of NE1 to the SIP request message it receives.
S203,NE1向NE2发送加入NE1的AVPP的SIP请求消息。S203. The NE1 sends a SIP request message of the AVPP joining the NE1 to the NE2.
S204,NE2向NE3转发其接收的SIP请求消息。由于NE2的计费功能为关闭,因此不进行计费,也不需要加入本网元的AVPP。S204. The NE2 forwards the SIP request message it receives to the NE3. Since the accounting function of the NE2 is disabled, the accounting is not performed and the AVPP of the local network element is not required.
S205,NE3在其接收的SIP请求消息中加入NE3的AVPP。S205. The NE3 adds the AVPP of the NE3 to the SIP request message it receives.
S206,NE3向NE4发送加入NE3的AVPP的SIP请求消息。S206. The NE3 sends an SIP request message of the AVPP joining the NE3 to the NE4.
S207,NE4在其接收的SIP请求消息中加入NE4的AVPP。S207. The NE4 adds the AVPP of the NE4 to the SIP request message it receives.
S208,NE4向被叫侧设备发送删除所有AVPP的SIP请求消息。S208. The NE4 sends a SIP request message for deleting all AVPPs to the called side device.
S209,被叫侧设备向NE4发送SIP响应消息。S209. The called side device sends a SIP response message to NE4.
S210,NE4向NE3发送SIP响应消息。S210, NE4 sends a SIP response message to NE3.
S211,NE3向NE2发送SIP响应消息。S211, NE3 sends a SIP response message to NE2.
S212,NE2向NE1发送SIP响应消息。S212. NE2 sends a SIP response message to NE1.
S213,NE1向主叫侧设备发送SIP响应消息。S213. NE1 sends a SIP response message to the calling side device.
S214,开启计费功能的计费设备NE1、NE3和NE4向CDF发送ACR,每个ACR中携带有计费设备对应的AVPP。S214. The charging devices NE1, NE3, and NE4 that enable the charging function send an ACR to the CDF, and each ACR carries an AVPP corresponding to the charging device.
S215,CDF根据每个计费设备发送的ACR分别构造生成对应于每个计费设备的CDR,包括:NE1CDR、NE3CDR和NE4CDR。S215. The CDF separately generates, according to the ACR sent by each charging device, a CDR corresponding to each charging device, including: NE1 CDR, NE3 CDR, and NE4 CDR.
S216,CDF将上述生成的所有CDR填写到合并缓冲区,并将所有CDR 根据ICID、计费主体标识和每个AVPP进行合并计费。S216, the CDF fills in all the CDRs generated above into the merge buffer, and all the CDRs The combined charging is performed according to the ICID, the charging subject identifier, and each AVPP.
可选地,本发明上述各实施例中,每个计费设备向话单设备发送的ACR用于指示话单设备进行合并计费,并生成合并激发话单;话单设备执行合并计费的方式为:根据每个ACR生成对应于每个计费设备的CDR,并将每个CDR根据ICID、计费主体标识和每个AVPP进行合并计费,所生成的合并计费话单中包括全部计费设备中优先级最高的公共计费字段和每个计费设备的私有计费字段。Optionally, in the foregoing embodiments of the present invention, the ACR sent by each charging device to the CDR device is used to indicate that the CDR device performs the combined charging, and generates a merged CDR; the CDR device performs the combined charging. The method is: generating, according to each ACR, a CDR corresponding to each charging device, and combining and charging each CDR according to an ICID, a charging entity identifier, and each AVPP, and the generated consolidated charging bill includes all The highest priority public charging field in the charging device and the private charging field of each charging device.
本实施例在具体实现中,话单设备接收到每个计费设备发送的ACR时,将每个计费设备发送的ACR构造成为CDR,通过每个计费设备生成的CDR中均含有AVPP;随后,话单设备将此次会话或事务构造生成的所有CDR加入到合并缓冲区进行合并计费,合并计费的原则是将所有CDR根据ICID、计费主体标识和AVPP进行合并关联后,生成一张最终话单。本实施例中合并计费的逻辑例如可以为:根据ICID和计费主体标识作为索引的关键字收集此次会话分支侧(主叫侧或被叫侧)的话单,根据所生成的每个CDR中的AVPP收集所有计费设备中优先级最高的公共计费字段,同时收集所有计费设备的私有计费字段,并将收集到的优先级最高的公共计费字段和所有计费设备的私有计费字段填充到最终的话单中,以供计费中心采集计费。In this embodiment, when the CDR device receives the ACR sent by each charging device, the ACR sent by each charging device is configured as a CDR, and the CDR generated by each charging device includes AVPP. Then, the CDR device adds all the CDRs generated by the session or the transaction structure to the merge buffer for combined charging. The principle of the combined charging is to combine all the CDRs according to the ICID, the charging subject identifier, and the AVPP, and then generate the CDR. A final bill. The logic of the merged charging in this embodiment may be, for example, collecting the CDRs of the session branch side (calling side or called side) according to the ICID and the charging subject identifier as keywords, according to each generated CDR. The AVPP in the collection collects the highest priority public charging field among all the charging devices, collects the private charging fields of all charging devices, and collects the highest priority public charging field and the private of all charging devices. The charging field is filled in the final bill for the billing center to collect billing.
需要说明的是,若话单设备收集的所有计费设备的公共计费字段中存在一种特殊的情况:至少两个计费设备的公共计费字段的优先级信息相同,且同时为最高优先级,也就是说至少有AVPP中的公共计费字段的最高优先级相同,在这种情况下,合并计费话单中可以包括话单设备先获取到的优先级最高的公共计费字段和每个计费设备的私有计费字段。在本实施例中,话单设备在通过ACR生成CDR后,将所生成的CDF加入到合并缓冲区中,随后,在收集所有计费设备中最高优先级的公共计费字段时,若不同计费设备的一计费字段的优先级信息相同,则以最先到达话单设备的合并缓冲区的公共计费字段为准,生成最终合并计费话单。It should be noted that if there is a special case in the public charging field of all charging devices collected by the CDR device, the priority information of the common charging field of at least two charging devices is the same, and at the same time is the highest priority. Level, that is, at least the highest priority of the common charging field in the AVPP is the same. In this case, the consolidated charging bill can include the highest priority public charging field obtained by the bill device. Private billing field for each billing device. In this embodiment, after the CDR is generated by the ACR, the generated CDF is added to the merging buffer, and then, when collecting the highest priority public charging field among all the charging devices, if different If the priority information of a charging field of the fee device is the same, the final charging bill is generated based on the public charging field of the merging buffer of the first CDR device.
还需要说明的是,本发明不限制上述图4所示实施例中的S209~S213与S214的执行顺序,并且不限制NE1、NE3和NE4分别执行S214的顺序;可选地,S209~S213依次顺序执行的,在执行完S209后NE4即可执行S214, 在执行完S210后NE3即可执行S214,在执行完S212后NE1即可执行S214,也就是说,每个计费设备在接收到SIP响应消息后即可向话单设备发送ACR,同时,不限制每个计费设备发送ACR的先后顺序。It should be noted that the present invention does not limit the execution order of S209-S213 and S214 in the foregoing embodiment shown in FIG. 4, and does not limit the order in which S1, NE3, and NE4 respectively perform S214; alternatively, S209-S213 sequentially Executed sequentially, NE4 can execute S214 after executing S209. After executing S210, NE3 can execute S214. After executing S212, NE1 can execute S214, that is, each charging device can send an ACR to the billing device after receiving the SIP response message, and at the same time, Limit the order in which each billing device sends ACRs.
图5为本发明实施例提供的又一种计费处理方法的流程图。本实施例提供的计费处理方法适用于对IMS中通过多种计费设备进行合并计费的情况中,该方法可以由计费处理装置执行,该计费处理装置通过硬件和软件结合的方式来实现,该装置可以集成在计费设备的处理器中,供处理器调用。如图5所示,本实施例的方法可以包括:FIG. 5 is a flowchart of still another charging processing method according to an embodiment of the present invention. The charging processing method provided in this embodiment is applicable to the case where the charging is performed by multiple charging devices in the IMS, and the method may be performed by the charging processing device, where the charging processing device is combined by hardware and software. To achieve this, the device can be integrated in the processor of the billing device for the processor to call. As shown in FIG. 5, the method in this embodiment may include:
S310,话单设备接收每一跳计费设备发送的包括AVPP的ACR;其中,每个ACR中的AVPP为发送该ACR的计费设备在接收到的通信请求消息中加入的该计费设备的AVPP,所加入的AVPP包括该计费设备的公共计费字段的优先级信息和私有计费字段的优先级信息。S310. The CDR device receives an ACR including an AVPP sent by each hop charging device, where the AVPP in each ACR is a charging device that is added by the charging device that sends the ACR to the received communication request message. AVPP, the added AVPP includes priority information of the public charging field of the charging device and priority information of the private charging field.
本实施例提供的计费处理方法,涉及多个计费设备对IMS中的一次会话或事务进行计费的应用场景,每一跳计费设备可以依次接收通信请求消息,该通信请求消息同样可以为SIP请求消息,并在依次接收返回的通信响应消息后,向话单设备发送ACR;由于每一跳计费设备在接收到通信请求消息时,没有直接转发接收的通信请求消息,而是在该消息中加入当前计费设备的AVPP。也就是说,每个计费设备在转发通信请求消息前,都记录有其自身的AVPP。The charging processing method provided in this embodiment relates to an application scenario in which a plurality of charging devices perform charging for one session or transaction in the IMS, and each hop charging device may sequentially receive a communication request message, and the communication request message may also be Sending an ACR to the CDR device after receiving the returned communication response message in sequence; since each hop charging device receives the communication request message, it does not directly forward the received communication request message, but The AVPP of the current charging device is added to the message. That is to say, each charging device records its own AVPP before forwarding the communication request message.
在本实施例中,每一跳计费设备接收和发送通信请求消息的方式,在通信请求消息中添加其自身AVPP的方式,接收和转发通信响应消息的方式,以及计费字段的优先级的表示方式都与上述实施例中相同,故在此不再赘述。In this embodiment, the manner in which each hop charging device receives and transmits a communication request message, the manner in which its own AVPP is added in the communication request message, the manner in which the communication response message is received and forwarded, and the priority of the charging field The representations are the same as those in the above embodiment, and therefore will not be described herein.
需要说明的是,由于本发明各实施例中计费处理是指对进行通信的呼叫侧分别进行计费的,即主叫侧和被叫侧是分别进行计费的,因此,虽然最后一跳计费设备在接收到的通信请求消息中加入了其自身的AVPP,在最后一跳计费设备向被叫侧设备发送通信请求消息前,删除该通信请求消息中的所有AVPP,以保证单侧计费的原则。It should be noted that, in the embodiments of the present invention, the charging process refers to separately performing charging on the calling side that performs communication, that is, the calling side and the called side separately perform charging, and therefore, although the last hop is performed, The charging device adds its own AVPP in the received communication request message, and deletes all AVPPs in the communication request message before the last hop charging device sends a communication request message to the called side device to ensure one-sided The principle of billing.
S320,话单设备根据每个ACR、ICID、计费主体标识和每个AVPP进行合并计费。 S320: The bill device performs combined billing according to each ACR, ICID, billing subject identifier, and each AVPP.
在本实施例中,话单设备接收到的每个ACR中具有与计费设备对应的AVPP。相关技术中计费话单的合并联合仅依据ICID和计费主体标识,公共字段信息均以AS为准,因此在上述一些特殊业务的应用场景下会导致计费的合并话单不准确;相比之下,本发明各实施例中用于进行合并计费的依据增加了AVPP,该AVPP用于在选择公共字段信息时,话单设备通过每个计费设备的公共字段的优先级信息确定合并话单中以哪个公共字段信息为准。In this embodiment, each ACR received by the bill device has an AVPP corresponding to the billing device. In the related art, the combination of the billing bills is based on the ICID and the billing subject identifier, and the common field information is based on the AS. Therefore, in the application scenario of the above special services, the billing merge bill is inaccurate; In contrast, the basis for performing the combined charging in the embodiments of the present invention increases the AVPP, and the AVPP is used to determine the priority information of the common field of each charging device when the public field information is selected. Which common field information is used in the merged bill.
本实施例所提供的计费处理方法,由于话单设备接收到的每个ACR中,都包含对应计费设备的AVPP,从而在话单设备进行合并计费时,不是简单的以特定计费设备的公共字段信息为依据,例如总是以AS的公共字段信息为准,本实施例针对不同的应用场景具有不同的计费方式,即计费时可以采用不同的公共字段信息,从而实现灵活计费,提高了合并计费的准确性。In the charging processing method provided in this embodiment, the AVPP corresponding to the charging device is included in each ACR received by the CDR device, so that when the CDR device performs the combined charging, the specific charging is not simple. The common field information of the device is based on, for example, the common field information of the AS is always used. This embodiment has different charging modes for different application scenarios, that is, different common field information can be used for charging, thereby achieving flexibility. Billing increases the accuracy of combined billing.
本实施例所提供的计费处理方法,通过话单设备接收每一跳计费设备发送的ACR,由于每个ACR中包括对应计费设备在接收到的通信请求消息中加入的该计费设备的AVPP,所加入的AVPP包括当前计费设备的公共计费字段的优先级信息和私有计费字段的优先级信息,并且话单设备根据每个ACR、ICID、计费主体标识和每个AVPP进行合并计费,从而实现合并计费的话单中的公共字段信息以AVPP中的优先级为依据,并非简单的以特定计费设备的公共字段信息为依据,从而实现了灵活计费的标准;本实施例提供的方法避免了在通过多种计费网元进行话单合并的计费过程中,由于公共字段信息均以AS网元为准,而导致的在一些特定业务的应用场景中生成的计费话单不准确的情况发生。The charging processing method provided in this embodiment receives the ACR sent by each hop charging device by using the CDR device, and each charging device includes the charging device added by the corresponding charging device in the received communication request message. AVPP, the added AVPP includes the priority information of the public charging field of the current charging device and the priority information of the private charging field, and the CDR device according to each ACR, ICID, charging subject identifier and each AVPP Performing combined charging, so that the common field information in the CDRs of the combined charging is based on the priority in the AVPP, and is not simply based on the public field information of the specific charging device, thereby implementing the flexible charging standard; The method provided in this embodiment avoids the charging process in the case of combining the bills through multiple charging network elements, and the common field information is determined by the AS network element, which is generated in the application scenario of some specific services. The billing bill is inaccurate.
可选地,本实施例中每一跳计费设备加入AVPP中的公共计费字段的优先级信息可以在其下一跳计费设备中进行设置,并且设置上一跳计费设备加入的公共计费字段的优先级信息的方式与上述实施例中相同,故在此不再赘述。Optionally, in this embodiment, the priority information of the public charging field added to the AVPP by each hop charging device may be set in the next hop charging device, and the public that the last hop charging device joins is set. The manner of the priority information of the charging field is the same as that in the foregoing embodiment, and details are not described herein again.
需要说明的是,本发明各实施例中的计费设备的物理数量至少为三个,分别对应于业务层、控制层和接入层,即上述每一层中具有至少一个实体的计费设备。另外,本发明各实施例中的计费设备在逻辑关系上包括:第一计费设备、第二计费设备和第三计费设备,其中,上述第二计费设备的数量为 一个或多个。It should be noted that the physical quantity of the charging device in the embodiments of the present invention is at least three, corresponding to the service layer, the control layer, and the access layer, that is, the charging device having at least one entity in each layer. . In addition, the charging device in the embodiments of the present invention includes: a first charging device, a second charging device, and a third charging device, wherein the number of the second charging device is one or more.
本实施例中第一、第二和第三计费设备之间的交互方式同样可以参照上述图3和图4所示实施例,本实施例中的ACR的具体内容可以为,第一计费设备发送的ACR中的AVPP为,第一计费设备在接收到第一通信设备发送的通信请求消息后,在通信请求消息中加入的第一计费设备的AVPP;第二计费设备发送的ACR中的AVPP为,第二计费设备在接收到上一跳计费设备发送的通信请求消息后,在通信请求消息中加入的第二计费设备的AVPP,以及第二计费设备设置后的上一跳计费设备的公共计费字段的优先级信息,其中,上一跳计费设备为第一计费设备或上一跳第二计费设备;第三计费设备发送的ACR中的AVPP为,第三计费设备在接收到上一跳第二计费设备发送的通信请求消息后,在通信请求消息中加入的第三计费设备的AVPP,以及第三计费设备设置后的上一跳第二计费设备的公共计费字段。The interaction between the first, second, and third charging devices in this embodiment may also refer to the foregoing embodiment shown in FIG. 3 and FIG. 4, and the specific content of the ACR in this embodiment may be: The AVPP in the ACR sent by the device is the AVPP of the first charging device added by the first charging device after receiving the communication request message sent by the first communication device, and the second charging device sends the The AVPP in the ACR is the AVPP of the second charging device added by the second charging device after receiving the communication request message sent by the last hop charging device, and the second charging device is set after the second charging device is set. The priority information of the public charging field of the last hop charging device, wherein the last hop charging device is the first charging device or the last hop second charging device; and the third charging device sends the ACR. The AVPP is the AVPP of the third charging device added by the third charging device after receiving the communication request message sent by the second charging device of the last hop, and the third charging device is set after the third charging device is set. Last hop of the second billing device Total billing field.
需要说明的是,虽然本实施例中的第三计费设备将其自身的AVPP加入到通信请求消息中,该AVPP用于发送ACR时发送给话单设备,由于单侧计费的原则,第三计费设备向被叫侧设备发送的通信请求消息中已删除所有AVPP。It should be noted that, although the third charging device in this embodiment adds its own AVPP to the communication request message, the AVPP is used to send the ACR to the CDR device, because of the principle of single-side charging, All AVPPs have been deleted from the communication request message sent by the third charging device to the called side device.
可选地,本实施例中每个ACR中的AVPP包括,发送该ACR的计费设备在接收到的通信请求消息的头域中加入优先级参数,并在该优先级参数中加入的该计费设备的AVPP。本实施例中优先级参数的设置方式,和是否配置携带AVPP的方式与上述实施例相同,并且计费设备的逻辑关系也与上述各实施例相同,故在此不再赘述。Optionally, the AVPP in each ACR in this embodiment includes: the charging device that sends the ACR adds a priority parameter in a header field of the received communication request message, and adds the meter to the priority parameter. AVPP for fee devices. The manner of setting the priority parameter in the embodiment and the manner of configuring the AVPP are the same as those in the foregoing embodiment, and the logical relationship of the charging device is the same as that in the foregoing embodiments, and details are not described herein again.
可选地,图6为本发明实施例提供的再一种计费处理方法的流程图。通过图6所示实施例说明本发明上述各实施例中,话单设备进行合并计费的具体方式,即S320可以包括:S321,话单设备根据每个ACR生成对应于每个计费设备的CDR;S322,话单设备将每个CDR根据ICID、计费主体标识和每个AVPP进行合并计费,所生成的合并计费话单中包括全部计费设备中优先级最高的公共计费字段和每个计费设备的私有计费字段。本实施例中进行合并计费的具体实现方式在上述实施例中已经说明,故在此不再赘述。Optionally, FIG. 6 is a flowchart of still another charging processing method according to an embodiment of the present invention. The embodiment of the present invention is used to describe the specific manner in which the CDR device performs the combined charging in the foregoing embodiments, that is, the S320 may include: S321, and the CDR device generates, according to each ACR, a corresponding to each charging device. CDR; S322, the CDR device combines and charges each CDR according to the ICID, the charging entity identifier, and each AVPP, and the generated combined charging bill includes the highest priority public charging field among all the charging devices. And the private billing field for each billing device. The specific implementation manner of performing the combined charging in this embodiment has been described in the foregoing embodiment, and therefore will not be further described herein.
需要说明的是,当至少两个AVPP中的公共计费字段的最高优先级相同 时,上述合并计费话单中包括所述话单设备先获取到的优先级最高的公共计费字段和每个所述计费设备的私有计费字段。It should be noted that the highest priority of the common charging field in at least two AVPPs is the same. The consolidated charging bill includes the public charging field with the highest priority obtained by the bill device and the private charging field of each billing device.
以下通过一些具体实例说明本发明实施例提供的计费处理方法的应用方式,每个具体实例都有特定的应用场景,无论是哪种应用场景都可以通过本发明上述各实施例提供的计费处理方法进行合并计费。The application mode of the charging processing method provided by the embodiment of the present invention is described in the following specific examples. Each specific example has a specific application scenario, and any application scenario can be charged by the foregoing embodiments of the present invention. The processing method is combined charging.
图7为本发明实施例提供的另一种计费处理方法的信令交互流程图。图7所示应用场景为IMS用户A呼叫公共交换电话网络(Public Switched Telephone Network,简称为:PSTN)用户B,图7以对会话的主叫侧进行计费为例予以示出。图7所示实施例提供的计费处理方法具体包括以下步骤:FIG. 7 is a flowchart of signaling interaction of another charging processing method according to an embodiment of the present invention. The application scenario shown in FIG. 7 is that the IMS user A calls the Public Switched Telephone Network (PSTN) user B. FIG. 7 shows the charging of the calling party of the session as an example. The charging processing method provided in the embodiment shown in FIG. 7 specifically includes the following steps:
S401,主叫用户设备(User Equipment,简称为:UE)A向PCSCF-A发送SIP请求消息。S401. A user equipment (User Equipment, UE for short) A sends a SIP request message to the PCSCF-A.
S402,PCSCF-A接收到SIP请求消息后,因为PCSCF-A开启计费功能,所以在SIP请求消息的头域中加入PCSCF-A的AVPP,该AVPP中包括PCSCF-A的所有公共计费字段的优先级信息、私有计费字段的优先级信息,并且默认所有计费字段的优先级信息为NORMAL_PRIORITY。S402, after receiving the SIP request message, the PCSCF-A adds the AVPP of the PCSCF-A in the header field of the SIP request message, and the AVPP includes all public charging fields of the PCSCF-A. The priority information, the priority information of the private charging field, and the priority information of all the charging fields by default is NORMAL_PRIORITY.
在本实施例中,PCSCF-A加入的AVPP的具体内容例如可以通过下列表1表示:In this embodiment, the specific content of the AVPP added by the PCSCF-A can be expressed, for example, by the following list 1:
表1Table 1
PCSCF公用计费信息(AvpCode,Vendor-id)PCSCF public billing information (AvpCode, Vendor-id) 优先级priority
SIP-Method(824,10415)SIP-Method (824, 10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
Role-of-Node(829,10415)Role-of-Node (829, 10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
Origin-Host(264,0)Origin-Host(264,0) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
User-Session-Id(830,10415)User-Session-Id (830, 10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
Calling-Party-Address(831,10415)Calling-Party-Address (831, 10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
called-Party-Address(832,10415)called-Party-Address(832,10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
SIP-Request-Timestamp(834,10415)SIP-Request-Timestamp (834, 10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
SIP-Response-Timestamp(835,10415)SIP-Response-Timestamp (835, 10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
Inter-Operator-Identifier(838,10415)Inter-Operator-Identifier (838, 10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
Cause-Code(861,10415)Cause-Code(861,10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
IMS-Charging-Identifier(841,10415)IMS-Charging-Identifier (841,10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
SDP-Session-Description(842,10415)SDP-Session-Description (842, 10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
SDP-Media-Component(843,10415)SDP-Media-Component (843,10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
GGSN-Address(847,10415)GGSN-Address (847,10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
Message-Body(889,10415)Message-Body (889,10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
Associated-URI(856,10415)Associated-URI (856, 10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
event(825,10415)Event(825,10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
Access-Network-Information(1263,10415)Access-Network-Information(1263,10415) HIGHEST_PRIORITY(5)HIGHEST_PRIORITY(5)
Service-Context-Id(461,0)Service-Context-Id(461,0) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
list-Of-Subscription-ID(443,0)list-Of-Subscription-ID(443,0) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
IMS-Communication-Service-Identifier(1281,10415)IMS-Communication-Service-Identifier (1281, 10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
Requested-Party-Address(1251,10415)Requested-Party-Address(1251,10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
Called-Asserted-Identity(1250,10415)Called-Asserted-Identity (1250, 10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
PCSCF私有计费信息(AvpCode,Vendor-id)PCSCF private accounting information (AvpCode, Vendor-id) 优先级priority
Bypass-State(2216,81000)Bypass-State (2216, 81000) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
其中,SIP请求消息的头域(P-Charging-Vector)中优先级参数携带的AVPP值可以通过下列表2表示:The AVPP value carried in the priority parameter in the P-Charging-Vector field of the SIP request message can be represented by the following list 2:
表2Table 2
Figure PCTCN2016091567-appb-000001
Figure PCTCN2016091567-appb-000001
S403,PCSCF-A向SCSCF-A发送加入AVPP的SIP请求消息。S403. The PCSCF-A sends a SIP request message to the SCSCF-A to join the AVPP.
S404,SCSCF-A接收到SIP请求消息后,因为用户签约补充业务,所以需要向AS-A转发SIP请求消息;因为SCSCF-A开启计费功能,所以在SIP请求消息的头域中加入SCSCF-A的AVPP,其中加入的私有计费字段的优先 级信息,默认为NORMAL_PRIORITY,同时,SCSCF-A可以根据配置保持不变或修改前一跳计费设备,即PCSCF-A加入的公共计费字段的优先级信息(号码携带业务:Called-Party-Address优先级为HIGHEST_PRIORITY)。S404. After receiving the SIP request message, the SCSCF-A needs to forward the SIP request message to the AS-A because the user subscribes to the supplementary service. Because the SCSCF-A enables the charging function, the SCSCF is added in the header field of the SIP request message. A's AVPP, which has the priority of the private billing field added Level information, defaults to NORMAL_PRIORITY. At the same time, SCSCF-A can remain unchanged or modify the previous hop charging device, that is, the priority information of the public charging field that PCSCF-A joins. (Number portability service: Called-Party- The Address priority is HIGHEST_PRIORITY).
在本实施例中,SCSCF-A加入的AVPP的具体内容例如可以通过下列表3表示:In this embodiment, the specific content of the AVPP added by the SCSCF-A can be expressed, for example, by the following list:
表3table 3
SCSCF公用计费信息(AvpCode,Vendor-id)SCSCF public billing information (AvpCode, Vendor-id) 优先级priority
SIP-Method(824,10415)SIP-Method (824, 10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
Role-of-Node(829,10415)Role-of-Node (829, 10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
Origin-Host(264,0)Origin-Host(264,0) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
User-Session-Id(830,10415)User-Session-Id (830, 10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
Calling-Party-Address(831,10415)Calling-Party-Address (831, 10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
called-Party-Address(832,10415)called-Party-Address(832,10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
SIP-Request-Timestamp(834,10415)SIP-Request-Timestamp (834, 10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
SIP-Response-Timestamp(835,10415)SIP-Response-Timestamp (835, 10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
Inter-Operator-Identifier(838,10415)Inter-Operator-Identifier (838, 10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
Cause-Code(861,10415)Cause-Code(861,10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
IMS-Charging-Identifier(841,10415)IMS-Charging-Identifier (841,10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
SDP-Session-Description(842,10415)SDP-Session-Description (842, 10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
SDP-Media-Component(843,10415)SDP-Media-Component (843,10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
GGSN-Address(847,10415)GGSN-Address (847,10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
Message-Body(889,10415)Message-Body (889,10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
Associated-URI(856,10415)Associated-URI (856, 10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
event(825,10415)Event(825,10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
Access-Network-Information(1263,10415)Access-Network-Information(1263,10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
Service-Context-Id(461,0)Service-Context-Id(461,0) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
list-Of-Subscription-ID(443,0)list-Of-Subscription-ID(443,0) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
IMS-Communication-Service-Identifier(1281,10415)IMS-Communication-Service-Identifier (1281, 10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
Requested-Party-Address(1251,10415)Requested-Party-Address(1251,10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
Called-Asserted-Identity(1250,10415)Called-Asserted-Identity (1250, 10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
SCSCF私有计费信息(AvpCode,Vendor-id)SCSCF private accounting information (AvpCode, Vendor-id) 优先级priority
Use-Name(1,0)Use-Name(1,0) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
其中,SIP请求消息的头域(P-Charging-Vector)中优先级参数携带的AVPP值可以通过下列表4表示:The AVPP value carried in the priority parameter in the P-Charging-Vector field of the SIP request message can be represented by the following list 4:
表4Table 4
Figure PCTCN2016091567-appb-000002
Figure PCTCN2016091567-appb-000002
S405,SCSCF-A向AS-A发送加入AVPP的SIP请求消息。S405. The SCSCF-A sends an SIP request message to the AS-A to join the AVPP.
S406,AS-A接收到SIP请求消息请求后,因为AS-A开启计费功能,所以在SIP请求消息的头域中加入AS-A的AVPP,其中加入的私有计费字段的优先级信息,默认为HIGHER_PRIORITY;同时,AS-A可以根据配置保持不变或修改前一跳计费设备,即SCSCF-A加入的公共计费字段的优先级信息(serviceDeliveryStartTimeStamp、serviceDeliveryEndTimeStamp优先级为HIGHER_PRIORITY)。S406, after the AS-A receives the SIP request message request, because the AS-A enables the charging function, the ASPP of the AS-A is added in the header field of the SIP request message, and the priority information of the added private charging field is The default is HIGH_PRIORITY; at the same time, AS-A can remain unchanged or modify the previous hop charging device, that is, the priority information of the public charging field that SCSCF-A joins (serviceDeliveryStartTimeStamp, serviceDeliveryEndTimeStamp priority is HIGH_PRIORITY).
在本实施例中,AS-A加入的AVPP的具体内容例如可以通过下列表3表示:In this embodiment, the specific content of the AVPP added by the AS-A can be expressed, for example, by the following list:
表5table 5
AS公用计费信息(AvpCode,Vendor-id)AS public billing information (AvpCode, Vendor-id) 优先级priority
SIP-Method(824,10415)SIP-Method (824, 10415) HIGHER_PRIORITY(4)HIGHER_PRIORITY(4)
Role-of-Node(829,10415)Role-of-Node (829, 10415) HIGHEST_PRIORITY(5)HIGHEST_PRIORITY(5)
Origin-Host(264,0)Origin-Host(264,0) HIGHER_PRIORITY(4)HIGHER_PRIORITY(4)
User-Session-Id(830,10415)User-Session-Id (830, 10415) HIGHER_PRIORITY(4)HIGHER_PRIORITY(4)
Calling-Party-Address(831,10415)Calling-Party-Address (831, 10415) HIGHER_PRIORITY(4)HIGHER_PRIORITY(4)
called-Party-Address(832,10415)called-Party-Address(832,10415) HIGHER_PRIORITY(4)HIGHER_PRIORITY(4)
SIP-Request-Timestamp(834,10415)SIP-Request-Timestamp (834, 10415) HIGHER_PRIORITY(4)HIGHER_PRIORITY(4)
SIP-Response-Timestamp(835,10415)SIP-Response-Timestamp (835, 10415) HIGHER_PRIORITY(4)HIGHER_PRIORITY(4)
Inter-Operator-Identifier(838,10415)Inter-Operator-Identifier (838, 10415) HIGHER_PRIORITY(4)HIGHER_PRIORITY(4)
Cause-Code(861,10415)Cause-Code(861,10415) HIGHER_PRIORITY(4)HIGHER_PRIORITY(4)
IMS-Charging-Identifier(841,10415)IMS-Charging-Identifier (841,10415) HIGHER_PRIORITY(4)HIGHER_PRIORITY(4)
SDP-Session-Description(842,10415)SDP-Session-Description (842, 10415) HIGHER_PRIORITY(4)HIGHER_PRIORITY(4)
SDP-Media-Component(843,10415)SDP-Media-Component (843,10415) HIGHER_PRIORITY(4)HIGHER_PRIORITY(4)
GGSN-Address(847,10415)GGSN-Address (847,10415) HIGHER_PRIORITY(4)HIGHER_PRIORITY(4)
Message-Body(889,10415)Message-Body (889,10415) HIGHER_PRIORITY(4)HIGHER_PRIORITY(4)
Associated-URI(856,10415)Associated-URI (856, 10415) HIGHER_PRIORITY(4)HIGHER_PRIORITY(4)
event(825,10415)Event(825,10415) HIGHER_PRIORITY(4)HIGHER_PRIORITY(4)
Access-Network-Information(1263,10415)Access-Network-Information(1263,10415) HIGHER_PRIORITY(4)HIGHER_PRIORITY(4)
Service-Context-Id(461,0)Service-Context-Id(461,0) HIGHER_PRIORITY(4)HIGHER_PRIORITY(4)
list-Of-Subscription-ID(443,0)list-Of-Subscription-ID(443,0) HIGHER_PRIORITY(4)HIGHER_PRIORITY(4)
IMS-Communication-Service-Identifier(1281,10415)IMS-Communication-Service-Identifier (1281, 10415) HIGHER_PRIORITY(4)HIGHER_PRIORITY(4)
Requested-Party-Address(1251,10415)Requested-Party-Address(1251,10415) HIGHER_PRIORITY(4)HIGHER_PRIORITY(4)
Called-Asserted-Identity(1250,10415)Called-Asserted-Identity (1250, 10415) HIGHER_PRIORITY(4)HIGHER_PRIORITY(4)
AS私有计费信息(AvpCode,Vendor-id)AS private accounting information (AvpCode, Vendor-id) 优先级priority
Call-Description(2201,3902)Call-Description(2201,3902) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
Service-Identity(2202,3902)Service-Identity(2202,3902) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
Group-Number(2205,3902)Group-Number(2205,3902) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
其中,SIP请求消息的头域(P-Charging-Vector)中优先级参数携带的AVPP值可以通过下列表4表示:The AVPP value carried in the priority parameter in the P-Charging-Vector field of the SIP request message can be represented by the following list 4:
表6Table 6
Figure PCTCN2016091567-appb-000003
Figure PCTCN2016091567-appb-000003
Figure PCTCN2016091567-appb-000004
Figure PCTCN2016091567-appb-000004
S407,AS-A向SCSCF-A返回加入AVPP的SIP请求消息。S407. The AS-A returns an SIP request message for joining the AVPP to the SCSCF-A.
在本实施例中,由于SCSCF-A是控制层网元,AS-A是业务层网元,因此,AS-A在接收到SIP请求消息,并在该消息中加入AVPP后,需要向SCSCF-A发送回执。In this embodiment, since the SCSCF-A is the control layer network element and the AS-A is the service layer network element, the AS-A needs to send the SIP request message to the SCSCF after adding the AVPP message to the message. A sends a receipt.
S408,SCSCF-A向出口网关控制功能(Breakout Gateway Control Function,简称为:BGCF)-A发送SIP请求消息。S408. The SCSCF-A sends a SIP request message to the Exitout Gateway Control Function (BGCF)-A.
S409,BGCF-A接收到SIP请求消息后,因为BGCF-A未开启计费功能,所以直接向MGCF-A发送SIP请求消息,此步骤不添加BGCF-A的AVPP。S409: After receiving the SIP request message, the BGCF-A sends the SIP request message directly to the MGCF-A because the BGCF-A does not enable the charging function. This step does not add the AVPP of the BGCF-A.
S410,MGCF-A接收到SIP请求消息后,因为MGCF-A开启计费功能,所以在SIP请求消息的头域中加入MGCF-A的AVPP,其中加入的私有计费字段的优先级信息,默认为NORMAL_PRIORITY;同时,MGCF-A可以根据配置保持不变或修改前一跳计费设备,即SCSCF-A加入的公共计费字段的优先级信息。S410, after receiving the SIP request message, the MGCF-A adds the charging function to the MGCF-A, so the AVPP of the MGCF-A is added in the header field of the SIP request message, and the priority information of the added private charging field is defaulted. It is NORMAL_PRIORITY; at the same time, MGCF-A can remain unchanged according to the configuration or modify the priority information of the previous hop charging device, that is, the public charging field added by SCSCF-A.
在本实施例中,MGCF-A加入的AVPP的具体内容例如可以通过下列表7表示:In this embodiment, the specific content of the AVPP added by the MGCF-A can be expressed, for example, by the following list:
表7Table 7
MGCF公用计费信息(AvpCode,Vendor-id)MGCF public billing information (AvpCode, Vendor-id) 优先级priority
SIP-Method(824,10415)SIP-Method (824, 10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
Role-of-Node(829,10415)Role-of-Node (829, 10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
Origin-Host(264,0)Origin-Host(264,0) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
User-Session-Id(830,10415)User-Session-Id (830, 10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
Calling-Party-Address(831,10415)Calling-Party-Address (831, 10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
called-Party-Address(832,10415)called-Party-Address(832,10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
SIP-Request-Timestamp(834,10415)SIP-Request-Timestamp (834, 10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
SIP-Response-Timestamp(835,10415)SIP-Response-Timestamp (835, 10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
Inter-Operator-Identifier(838,10415)Inter-Operator-Identifier (838, 10415) HIGHEST_PRIORITY(5)HIGHEST_PRIORITY(5)
Cause-Code(861,10415)Cause-Code(861,10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
IMS-Charging-Identifier(841,10415)IMS-Charging-Identifier (841,10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
SDP-Session-Description(842,10415)SDP-Session-Description (842, 10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
SDP-Media-Component(843,10415)SDP-Media-Component (843,10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
MGCF私有计费信息(AvpCode,Vendor-id)MGCF private accounting information (AvpCode, Vendor-id) 优先级priority
Trunk-Group-Id(851,10415)Trunk-Group-Id (851, 10415) NORMAL_PRIORITY(3)NORMAL_PRIORITY(3)
其中,SIP请求消息的头域(P-Charging-Vector)中优先级参数携带的AVPP值可以通过下列表8表示:The AVPP value carried in the priority parameter in the P-Charging-Vector field of the SIP request message can be represented by the following list 8:
表8Table 8
Figure PCTCN2016091567-appb-000005
Figure PCTCN2016091567-appb-000005
S411,MGCF-A向UE B所在PSTN-B发送SIP请求消息,该请求中不包含AVPP信息。S411, the MGCF-A sends a SIP request message to the PSTN-B where the UE B is located, and the request does not include the AVPP information.
S412,UE B应答后,PSTN-B向MGCF-A返回SIP响应消息,该SIP响应消息例如为200OK消息。S412. After the UE B answers, the PSTN-B returns a SIP response message to the MGCF-A, and the SIP response message is, for example, a 200 OK message.
S413,MGCF-A向BGCF-A返回SIP响应消息。S413, the MGCF-A returns a SIP response message to the BGCF-A.
S414,BGCF-A向SCSCF-A返回SIP响应消息。S414. The BGCF-A returns a SIP response message to the SCSCF-A.
S415,SCSCF-A向AS-A返回SIP响应消息。S415. The SCSCF-A returns a SIP response message to the AS-A.
S416,AS-A向SCSCF-A发送SIP响应消息作为回执。S416. The AS-A sends a SIP response message to the SCSCF-A as a receipt.
S417,SCSCF-A向PCSCF-A返回SIP响应消息。S417, SCSCF-A returns a SIP response message to PCSCF-A.
S418,PCSCF-A向UE A返回SIP响应消息。S418, PCSCF-A returns a SIP response message to UE A.
S419,开启计费功能的计费设备MGCF-A、AS-A、SCSCF-A和PCSCF-A向CDF发送ACR消息,每个计费设备发送的ACR消息中均携带该设对应的AVPP。S419. The charging devices MGCF-A, AS-A, SCSCF-A, and PCSCF-A that enable the charging function send an ACR message to the CDF, and the ACR message sent by each charging device carries the AVPP corresponding to the setting.
S420,CDF根据每个计费设备发送的ACR分别构造生成对应于每个计费设备的CDR,包括:MGCF-A CDR、AS-A CDR、SCSCF-A CDR和PCSCF-A  CDR。S420: The CDF separately generates, according to the ACR sent by each charging device, a CDR corresponding to each charging device, including: MGCF-A CDR, AS-A CDR, SCSCF-A CDR, and PCSCF-A. CDR.
S421,CDR将上述生成的所有CDR填写到合并缓冲区,并将所有CDR根据ICID、计费主体标识和每个AVPP进行合并计费。本实施例中进行合并计费的方式和原则与上述实施例中相同,故在此不再赘述。S421, the CDR fills in all the CDRs generated above into the merge buffer, and combines all the CDRs according to the ICID, the charging subject identifier, and each AVPP. The manner and principle of performing the combined charging in this embodiment are the same as those in the foregoing embodiment, and therefore are not described herein again.
需要说明的是,图7所示实施例中实际的消息流程还涉及其他信令交互流程,为了简化计费处理方法的步骤进行了适当省略;图7中步骤S402、S404、S406和S410中加入的AVPP,具体可以是,在SIP请求消息的头域P-Charging-Vector中新增优先级参数,该参数携带AVPP,该AVPP以TLV方式组织,以0xFE0xFF0xFE0xFF结束;图7中每个计费网元中的计费信息仅是举例,实际计费信息由实际环境决定。It should be noted that the actual message flow in the embodiment shown in FIG. 7 also involves other signaling interaction processes, and the steps for simplifying the charging processing method are appropriately omitted; the steps S402, S404, S406, and S410 in FIG. 7 are added. The AVPP may specifically include a priority parameter in the header field P-Charging-Vector of the SIP request message, the parameter carrying AVPP, the AVPP being organized in a TLV manner, ending with 0xFE0xFF0xFE0xFF; each charging network in FIG. The billing information in the meta is only an example, and the actual billing information is determined by the actual environment.
图8为本发明实施例提供的又一种计费处理方法的信令交互流程图。图8所示应用场景为IMS用户A呼叫IMS用户B,图8以对会话的被叫侧进行计费为例予以示出。图8所示实施例提供的计费处理方法包括以下步骤:FIG. 8 is a flowchart of signaling interaction of another charging processing method according to an embodiment of the present invention. The application scenario shown in FIG. 8 is that IMS user A calls IMS user B, and FIG. 8 shows an example of charging the called side of the session. The charging processing method provided in the embodiment shown in FIG. 8 includes the following steps:
S501,主叫UE A所在的网络,即主叫侧网元向SCSCF-B发送SIP请求消息。S501: The network where the calling UE A is located, that is, the calling side network element sends an SIP request message to the SCSCF-B.
S502,SCSCF-B接收到SIP请求消息后,因为用户签约AS-B,所以需要将SIP请求消息转发给AS-B;又因为SCSCF-B开启计费功能,所以在SIP请求消息的头域中加入SCSCF-B的AVPP,该AVPP中包括SCSCF-B的所有公共计费字段的优先级信息(号码携带业务:Called-Party-Address优先级为HIGHEST_PRIORITY)、私有计费字段的优先级信息,默认所有计费字段的优先级信息为NORMAL_PRIORITY。S502: After receiving the SIP request message, the SCSCF-B needs to forward the SIP request message to the AS-B because the user subscribes to the AS-B; and because the SCSCF-B enables the charging function, in the header field of the SIP request message. Add the AVPP of SCSCF-B, which includes the priority information of all public charging fields of SCSCF-B (number portability service: Called-Party-Address priority is HIGHEST_PRIORITY), priority information of private charging field, default The priority information for all billing fields is NORMAL_PRIORITY.
在本实施例中,SCSCF-B加入的AVPP的具体内容可以参照上述表3所示内容,其中,SIP请求消息的头域(P-Charging-Vector)中优先级参数携带的AVPP值可以参照上述表4所示内容。In this embodiment, the specific content of the AVPP added by the SCSCF-B can refer to the content shown in Table 3 above, wherein the AVPP value carried in the priority parameter of the P-Charging-Vector of the SIP request message can refer to the above. Table 4 shows the content.
S503,SCSCF-B向AS-B发送加入AVPP的SIP请求消息。S503. The SCSCF-B sends an SIP request message to the AS-B to join the AVPP.
S504,AS-B接收到SIP请求消息后,因为AS-B开启计费功能,所以在SIP请求消息的头域中加入AS-B的AVPP,其中加入的私有计费字段的优先级信息,默认为NORMAL_PRIORITY,同时,AS-B可以根据配置保持不变 或修改前一跳计费设备,即SCSCF-B加入的公共计费字段的优先级信息(话单开始时间serviceDeliveryStartTimeStamp和话单结束时间serviceDeliveryEndTimeStamp,优先级均为HIGHEST_PRIORITY)。S504: After receiving the SIP request message, the AS-B adds the accounting function of the AS-B in the header field of the SIP request message, and adds the priority information of the private charging field to the default. For NORMAL_PRIORITY, at the same time, AS-B can remain unchanged according to the configuration. Or modify the previous hop charging device, that is, the priority information of the public charging field added by the SCSCF-B (the CDR start time serviceDeliveryStartTimeStamp and the CDR end time serviceDeliveryEndTimeStamp, the priority is HIGHEST_PRIORITY).
在本实施例中,AS-B加入的AVPP的具体内容可以参照上述表5所示内容,其中,SIP请求消息的头域(P-Charging-Vector)中优先级参数携带的AVPP值可以参照上述表6所示内容。In this embodiment, the specific content of the AVPP added by the AS-B can refer to the content shown in Table 5 above, wherein the AVPP value carried in the priority parameter of the P-Charging-Vector of the SIP request message can refer to the above. Table 6 shows the content.
S505,AS-B向SCSCF-B返回加入AVPP的SIP请求消息。S505. The AS-B returns a SIP request message for joining the AVPP to the SCSCF-B.
在本实施例中,由于SCSCF-B是控制层网元,AS-B是业务层网元,因此,AS-B在接收到SIP请求消息,并在该消息中加入AVPP后,需要向SCSCF-B发送回执。In this embodiment, since the SCSCF-B is the control layer network element and the AS-B is the service layer network element, the AS-B needs to send the SIP request message to the SCSCF after adding the AVPP message to the message. B sends a receipt.
S506,SCSCF-B向PCSCF-B发送SIP请求消息。S506. The SCSCF-B sends a SIP request message to the PCSCF-B.
S507,PCSCF-B接收到SIP请求消息后,因为PCSCF-B开启计费功能,所以在SIP请求消息的头域中加入PCSCF-B的AVPP;同时,PCSCF-B可以根据配置保持不变或修改前一跳计费设备,即SCSCF-B加入的公共计费字段的优先级信息。S507, after receiving the SIP request message, the PCSCF-B adds the AVPP of the PCSCF-B in the header field of the SIP request message because the PCSCF-B starts the charging function; at the same time, the PCSCF-B can remain unchanged or modified according to the configuration. The previous hop charging device, that is, the priority information of the public charging field added by the SCSCF-B.
在本实施例中,PCSCF-B加入的AVPP的具体内容可以参照上述表1所示内容,其中,SIP请求消息的头域(P-Charging-Vector)中优先级参数携带的AVPP值可以参照上述表2所示内容。In this embodiment, the specific content of the AVPP added by the PCSCF-B can refer to the content shown in Table 1 above, wherein the AVPP value carried in the priority parameter of the P-Charging-Vector of the SIP request message can refer to the above. Table 2 shows the content.
S508,PCSCF-B向UE B发送SIP请求消息,该请求中不包含AVPP信息。S508. The PCSCF-B sends a SIP request message to the UE B, where the request does not include AVPP information.
S509,UE B应答后,向PCSCF-B返回SIP响应消息,该SIP响应消息例如为200OK消息。S509: After responding by the UE B, return a SIP response message to the PCSCF-B, where the SIP response message is, for example, a 200 OK message.
S510,PCSCF-B向SCSCF-B返回SIP响应消息。S510. The PCSCF-B returns a SIP response message to the SCSCF-B.
S511,SCSCF-B向AS-B返回SIP响应消息。S511. The SCSCF-B returns a SIP response message to the AS-B.
S512,AS-B向SCSCF-B发送SIP响应消息作为回执。S512. The AS-B sends a SIP response message to the SCSCF-B as a receipt.
S513,SCSCF-B向主叫侧网元返回SIP响应消息。S513. The SCSCF-B returns a SIP response message to the calling side network element.
S514,开启计费功能的计费设备PCSCF-B、AS-B和SCSCF-B向CDF 发送ACR消息,每个计费设备发送的ACR消息中均携带该设对应的AVPP。S514, the billing devices PCSCF-B, AS-B, and SCSCF-B that enable the billing function are directed to the CDF. The ACR message is sent, and the AVP message sent by each charging device carries the AVPP corresponding to the setting.
S515,CDF根据每个计费设备发送的ACR分别构造生成对应于每个计费设备的CDR,包括:PCSCF-B CDR、AS-B CDR和SCSCF-B CDR。S515. The CDF separately generates, according to the ACR sent by each charging device, a CDR corresponding to each charging device, including: a PCSCF-B CDR, an AS-B CDR, and an SCSCF-B CDR.
S516,CDR将上述生成的所有CDR填写到合并缓冲区,并将所有CDR根据ICID、计费主体标识和每个AVPP进行合并计费。本实施例中进行合并计费的方式和原则与上述实施例中相同,故在此不再赘述。S516, the CDR fills in all the CDRs generated above into the merge buffer, and combines all the CDRs according to the ICID, the charging subject identifier, and each AVPP. The manner and principle of performing the combined charging in this embodiment are the same as those in the foregoing embodiment, and therefore are not described herein again.
需要说明的是,图8所示实施例中实际的消息流程还涉及其他信令交互流程,为了简化计费处理方法的步骤进行了适当省略;图8中步骤S502、S504和S507中加入的AVPP,具体可以是,在SIP请求消息的头域(P-Charging-Vector)中新增优先级参数,该参数携带AVPP,该AVPP以TLV方式组织,以0xFE0xFF0xFE0xFF结束;图8中每个计费网元中的计费信息仅是举例,实际计费信息由实际环境决定。It should be noted that the actual message flow in the embodiment shown in FIG. 8 also involves other signaling interaction processes, and the steps for simplifying the charging processing method are appropriately omitted; the AVPP added in steps S502, S504, and S507 in FIG. Specifically, a priority parameter is added in a header field (P-Charging-Vector) of the SIP request message, and the parameter carries an AVPP, and the AVPP is organized in a TLV manner, ending with 0xFE0xFF0xFE0xFF; each charging network in FIG. The billing information in the meta is only an example, and the actual billing information is determined by the actual environment.
图9为本发明实施例提供的再一种计费处理方法的信令交互流程图。图9所示应用场景为IMS用户A呼叫中国移动用户B,在该应用场景中,CDR中需要通过被叫号码携带NP(number portability,号码携带)信息,MGCF查询现网NPDB获取NP信息,图9以对会话的主叫侧进行计费为例予以示出。图9所示实施例提供的计费处理方法具体包括以下步骤:FIG. 9 is a flowchart of signaling interaction of another charging processing method according to an embodiment of the present invention. The application scenario shown in FIG. 9 is that the IMS user A calls the China Mobile User B. In the application scenario, the CDR needs to carry the NP (number portability) information through the called number, and the MGCF queries the current network NPDB to obtain the NP information. 9 is shown by taking the charging of the calling side of the session as an example. The charging processing method provided in the embodiment shown in FIG. 9 specifically includes the following steps:
S601,主叫UE A向PCSCF-A发送SIP请求消息。S601. The calling UE A sends a SIP request message to the PCSCF-A.
S602,PCSCF-A接收到SIP请求消息后,因为PCSCF-A开启计费功能,所以在SIP请求消息的头域中加入PCSCF-A的AVPP,该AVPP中包括PCSCF-A的所有公共计费字段的优先级信息、私有计费字段的优先级信息,并且默认所有计费字段的优先级信息为NORMAL_PRIORITY。S602, after receiving the SIP request message, the PCSCF-A adds the AVPP of the PCSCF-A in the header field of the SIP request message, and the AVPP includes all public charging fields of the PCSCF-A. The priority information, the priority information of the private charging field, and the priority information of all the charging fields by default is NORMAL_PRIORITY.
在本实施例中,PCSCF-A加入的AVPP的具体内容可以参照上述表1所示内容,其中,SIP请求消息的头域(P-Charging-Vector)中优先级参数携带的AVPP值可以参照上述表2所示内容。In this embodiment, the specific content of the AVPP added by the PCSCF-A can refer to the content shown in Table 1 above, wherein the AVPP value carried in the priority parameter of the P-Charging-Vector of the SIP request message can refer to the above. Table 2 shows the content.
S603,PCSCF-A向SCSCF-A发送加入AVPP的SIP请求消息。S603. The PCSCF-A sends a SIP request message to the SCSCF-A to join the AVPP.
S604,SCSCF-A接收到SIP请求消息后,因为用户签约补充业务,所以需要向AS-A转发SIP请求消息;因为SCSCF-A开启计费功能,所以在SIP 请求消息的头域中加入SCSCF-A的AVPP,其中加入的私有计费字段的优先级信息,默认为NORMAL_PRIORITY,同时,SCSCF-A可以根据配置保持不变或修改前一跳计费设备,即PCSCF-A加入的公共计费字段的优先级信息(号码携带业务:Called-Party-Address优先级为HIGHEST_PRIORITY)。S604. After receiving the SIP request message, the SCSCF-A needs to forward the SIP request message to the AS-A because the user subscribes to the supplementary service. Because the SCSCF-A enables the charging function, the SIP is enabled in the SIP. The AVPP of the SCSCF-A is added to the header field of the request message, and the priority information of the added private charging field is defaulted to NORMAL_PRIORITY. At the same time, the SCSCF-A can remain unchanged or modify the previous hop charging device according to the configuration, that is, The priority information of the public charging field that PCSCF-A joins (number portability service: Called-Party-Address priority is HIGHEST_PRIORITY).
在本实施例中,SCSCF-A加入的AVPP的具体内容可以参照上述表3所示内容,其中,SIP请求消息的头域(P-Charging-Vector)中优先级参数携带的AVPP值可以参照上述表4所示内容。In this embodiment, the specific content of the AVPP added by the SCSCF-A can refer to the content shown in Table 3 above, wherein the AVPP value carried in the priority parameter of the P-Charging-Vector of the SIP request message can refer to the above. Table 4 shows the content.
S605,SCSCF-A向AS-A发送加入AVPP的SIP请求消息。S605. The SCSCF-A sends an SIP request message to the AS-A to join the AVPP.
S606,AS-A接收到SIP请求消息请求后,因为AS-A开启计费功能,所以在SIP请求消息的头域中加入AS-A的AVPP,其中加入的私有计费字段的优先级信息,默认为HIGHER_PRIORITY;同时,AS-A可以根据配置保持不变或修改前一跳计费设备,即SCSCF-A加入的公共计费字段的优先级信息(serviceDeliveryStartTimeStamp、serviceDeliveryEndTimeStamp优先级为HIGHER_PRIORITY)。S606, after the AS-A receives the SIP request message request, because the AS-A enables the charging function, the ASPP of the AS-A is added in the header field of the SIP request message, and the priority information of the added private charging field is The default is HIGH_PRIORITY; at the same time, AS-A can remain unchanged or modify the previous hop charging device, that is, the priority information of the public charging field that SCSCF-A joins (serviceDeliveryStartTimeStamp, serviceDeliveryEndTimeStamp priority is HIGH_PRIORITY).
在本实施例中,AS-A加入的AVPP的具体内容可以参照上述表5所示内容,其中,SIP请求消息的头域(P-Charging-Vector)中优先级参数携带的AVPP值可以参照上述表6所示内容。In this embodiment, the specific content of the AVPP added by the AS-A can refer to the content shown in Table 5 above, wherein the AVPP value carried in the priority parameter of the P-Charging-Vector of the SIP request message can refer to the above. Table 6 shows the content.
S607,AS-A向SCSCF-A返回加入AVPP的SIP请求消息。S607. The AS-A returns an SIP request message for joining the AVPP to the SCSCF-A.
在本实施例中,由于SCSCF-A是控制层网元,AS-A是业务层网元,因此,AS-A在接收到SIP请求消息,并在该消息中加入AVPP后,需要向SCSCF-A发送回执。In this embodiment, since the SCSCF-A is the control layer network element and the AS-A is the service layer network element, the AS-A needs to send the SIP request message to the SCSCF after adding the AVPP message to the message. A sends a receipt.
S608,SCSCF-A向MGCF-A发送SIP请求消息。S608. The SCSCF-A sends a SIP request message to the MGCF-A.
S609,MGCF-A接收到SIP请求消息后,因为MGCF-A开启计费功能,所以在SIP请求消息的头域中加入MGCF-A的AVPP,其中加入的私有计费字段的优先级信息,默认为NORMAL_PRIORITY;同时,MGCF-A需要从NPDB中查询被叫号码信息,可以根据配置保持不变或修改前一跳计费设备,即SCSCF-A加入的公共计费字段的优先级信息(calledpartyAddress优先级为HIGHEST_PRIORITY)。 S609, after receiving the SIP request message, the MGCF-A adds the charging function to the MGCF-A, so the AVPP of the MGCF-A is added in the header field of the SIP request message, and the priority information of the added private charging field is defaulted. It is NORMAL_PRIORITY; at the same time, MGCF-A needs to query the called number information from the NPDB, which can be kept unchanged or modify the previous hop charging device, that is, the priority information of the public charging field added by SCSCF-A (calledpartyAddress first) The level is HIGHEST_PRIORITY).
在本实施例中,MGCF-A加入的AVPP的具体内容可以参照上述表7所示内容,不同的是“Called-Party-Address”的优先级为“HIGHER_PRIORITY”,其中,SIP请求消息的头域(P-Charging-Vector)中优先级参数携带的AVPP值可以参照上述表8所示内容。In this embodiment, the specific content of the AVPP added by the MGCF-A can refer to the content shown in Table 7 above, except that the priority of the "Called-Party-Address" is "HIGHER_PRIORITY", where the header field of the SIP request message (For the AVPP value carried in the priority parameter in (P-Charging-Vector), refer to the contents shown in Table 8 above.
S610,MGCF-A向NPDB数据库发送SIP请求消息。S610. The MGCF-A sends a SIP request message to the NPDB database.
S611,NPDB数据库向移动UE B发送SIP请求消息,该请求中不包含AVPP信息。S611. The NPDB database sends a SIP request message to the mobile UE B, where the request does not include AVPP information.
S612,UE B应答后,UE B向NPDB数据库返回SIP响应消息,该SIP响应消息例如为200OK消息。S612. After the UE B answers, the UE B returns a SIP response message to the NPDB database, where the SIP response message is, for example, a 200 OK message.
S613,NPDB数据库向MGCF-A返回SIP响应消息。S613. The NPDB database returns a SIP response message to the MGCF-A.
S614,MGCF-A向SCSCF-A返回SIP响应消息。S614. The MGCF-A returns a SIP response message to the SCSCF-A.
S615,SCSCF-A向AS-A返回SIP响应消息。S615. The SCSCF-A returns a SIP response message to the AS-A.
S616,AS-A向SCSCF-A发送SIP响应消息作为回执。S616, the AS-A sends a SIP response message to the SCSCF-A as a receipt.
S617,SCSCF-A向PCSCF-A返回SIP响应消息。S617, SCSCF-A returns a SIP response message to PCSCF-A.
S618,PCSCF-A向UE A返回SIP响应消息。S618. The PCSCF-A returns a SIP response message to the UE A.
S619,开启计费功能的计费设备MGCF-A、AS-A、SCSCF-A和PCSCF-A向CDF发送ACR消息,每个计费设备发送的ACR消息中均携带该设对应的AVPP。S619. The charging devices MGCF-A, AS-A, SCSCF-A, and PCSCF-A that enable the charging function send an ACR message to the CDF, and the ACR message sent by each charging device carries the AVPP corresponding to the setting.
S620,CDF根据每个计费设备发送的ACR分别构造生成对应于每个计费设备的CDR,包括:MGCF-A CDR、AS-A CDR、SCSCF-A CDR和PCSCF-A CDR。S620. The CDF separately generates, according to the ACR sent by each charging device, a CDR corresponding to each charging device, including: an MGCF-A CDR, an AS-A CDR, an SCSCF-A CDR, and a PCSCF-A CDR.
S621,CDR将上述生成的所有CDR填写到合并缓冲区,并将所有CDR根据ICID、计费主体标识和每个AVPP进行合并计费。本实施例中进行合并计费的方式和原则与上述实施例中相同,故在此不再赘述。S621. The CDR fills in all the CDRs generated above into the merge buffer, and combines all the CDRs according to the ICID, the charging subject identifier, and each AVPP. The manner and principle of performing the combined charging in this embodiment are the same as those in the foregoing embodiment, and therefore are not described herein again.
需要说明的是,图9所示实施例中实际的消息流程还涉及其他信令交互流程,为了简化计费处理方法的步骤进行了适当省略;图9中步骤S602、S604、S606和S609中加入的AVPP,具体可以是,在SIP请求消息的头域 P-Charging-Vector中新增优先级参数,该参数携带AVPP,该AVPP以TLV方式组织,以0xFE0xFF0xFE0xFF结束;图9中每个计费网元中的计费信息仅是举例,实际计费信息由实际环境决定。It should be noted that the actual message flow in the embodiment shown in FIG. 9 also involves other signaling interaction processes, and the steps for simplifying the charging processing method are appropriately omitted; the steps S602, S604, S606, and S609 in FIG. 9 are added. AVPP, specifically, in the header field of the SIP request message A priority parameter is added to the P-Charging-Vector. The parameter carries the AVPP. The AVPP is organized in TLV mode and ends with 0xFE0xFF0xFE0xFF. The charging information in each charging network element in FIG. 9 is only an example, and the actual charging information is used. It is determined by the actual environment.
图10为本发明实施例提供的还一种计费处理方法的信令交互流程图。图10所示应用场景为IMS域PBX用户A呼叫CS域用户B,在该应用场景中,MGCF主叫话单中Role-Of-Node值为Incoming_Business_trunking_proxy(5),与AS产生的主叫话单Role-Of-Node(0)值是不相同的,CDF需要从MGCF获取Role-Of-Node作为合并关联后的最终值,图10以对会话的主叫侧进行计费为例予以示出。图10所示实施例提供的计费处理方法具体包括以下步骤:FIG. 10 is a flowchart of signaling interaction of a charging processing method according to an embodiment of the present invention. The application scenario shown in Figure 10 is that the IMS domain PBX user A calls the CS domain user B. In this application scenario, the Role-Of-Node value of the MGCF calling CDR is Incoming_Business_trunking_proxy(5), and the calling CDR generated by the AS The value of the Role-Of-Node(0) is different. The CDF needs to obtain the final value of the Role-Of-Node from the MGCF as the merged association. FIG. 10 shows the charging of the calling side of the session as an example. The charging processing method provided in the embodiment shown in FIG. 10 specifically includes the following steps:
S701,主叫UE A向PCSCF-A发送SIP请求消息。S701. The calling UE A sends a SIP request message to the PCSCF-A.
S702,PCSCF-A接收到SIP请求消息后,因为PCSCF-A开启计费功能,所以在SIP请求消息的头域中加入PCSCF-A的AVPP,该AVPP中包括PCSCF-A的所有公共计费字段的优先级信息、私有计费字段的优先级信息,并且默认所有计费字段的优先级信息为NORMAL_PRIORITY。S702, after the PCSCF-A receives the SIP request message, because the PCSCF-A starts the charging function, the AVPP of the PCSCF-A is added in the header field of the SIP request message, and the AVPP includes all public charging fields of the PCSCF-A. The priority information, the priority information of the private charging field, and the priority information of all the charging fields by default is NORMAL_PRIORITY.
在本实施例中,PCSCF-A加入的AVPP的具体内容可以参照上述表1所示内容,其中,SIP请求消息的头域(P-Charging-Vector)中优先级参数携带的AVPP值可以参照上述表2所示内容。In this embodiment, the specific content of the AVPP added by the PCSCF-A can refer to the content shown in Table 1 above, wherein the AVPP value carried in the priority parameter of the P-Charging-Vector of the SIP request message can refer to the above. Table 2 shows the content.
S703,PCSCF-A向SCSCF-A发送加入AVPP的SIP请求消息。S703. The PCSCF-A sends a SIP request message to the SCSCF-A to join the AVPP.
S704,SCSCF-A接收到SIP请求消息后,因为用户签约补充业务,所以需要向AS-A转发SIP请求消息;因为SCSCF-A开启计费功能,所以在SIP请求消息的头域中加入SCSCF-A的AVPP,其中加入的私有计费字段的优先级信息,默认为NORMAL_PRIORITY,同时,SCSCF-A可以根据配置保持不变或修改前一跳计费设备,即PCSCF-A加入的公共计费字段的优先级信息(号码携带业务:Called-Party-Address优先级为HIGHEST_PRIORITY)。S704: After receiving the SIP request message, the SCSCF-A needs to forward the SIP request message to the AS-A because the user subscribes to the supplementary service. Because the SCSCF-A enables the charging function, the SCSCF is added in the header field of the SIP request message. A's AVPP, in which the priority information of the private charging field is added, the default is NORMAL_PRIORITY. At the same time, the SCSCF-A can remain unchanged or modify the previous hop charging device according to the configuration, that is, the public charging field added by the PCSCF-A. Priority information (number portability service: Called-Party-Address priority is HIGHEST_PRIORITY).
在本实施例中,SCSCF-A加入的AVPP的具体内容可以参照上述表3所示内容,其中,SIP请求消息的头域(P-Charging-Vector)中优先级参数携带的AVPP值可以参照上述表4所示内容。In this embodiment, the specific content of the AVPP added by the SCSCF-A can refer to the content shown in Table 3 above, wherein the AVPP value carried in the priority parameter of the P-Charging-Vector of the SIP request message can refer to the above. Table 4 shows the content.
S705,SCSCF-A向AS-A发送加入AVPP的SIP请求消息。 S705. The SCSCF-A sends an SIP request message to the AS-A to join the AVPP.
S706,AS-A接收到SIP请求消息请求后,因为AS-A开启计费功能,所以在SIP请求消息的头域中加入AS-A的AVPP,其中加入的私有计费字段的优先级信息,默认为HIGHER_PRIORITY;同时,AS-A可以根据配置保持不变或修改前一跳计费设备,即SCSCF-A加入的公共计费字段的优先级信息(serviceDeliveryStartTimeStamp、serviceDeliveryEndTimeStamp优先级为HIGHER_PRIORITY)。S706, after receiving the SIP request message request, the AS-A adds the accounting function of the AS-A, and then adds the AVPP of the AS-A in the header field of the SIP request message, and the priority information of the added private charging field, The default is HIGH_PRIORITY; at the same time, AS-A can remain unchanged or modify the previous hop charging device, that is, the priority information of the public charging field that SCSCF-A joins (serviceDeliveryStartTimeStamp, serviceDeliveryEndTimeStamp priority is HIGH_PRIORITY).
在本实施例中,AS-A加入的AVPP的具体内容可以参照上述表5所示内容,其中,SIP请求消息的头域(P-Charging-Vector)中优先级参数携带的AVPP值可以参照上述表6所示内容。In this embodiment, the specific content of the AVPP added by the AS-A can refer to the content shown in Table 5 above, wherein the AVPP value carried in the priority parameter of the P-Charging-Vector of the SIP request message can refer to the above. Table 6 shows the content.
S707,AS-A向SCSCF-A返回加入AVPP的SIP请求消息。S707. The AS-A returns a SIP request message for joining the AVPP to the SCSCF-A.
在本实施例中,由于SCSCF-A是控制层网元,AS-A是业务层网元,因此,AS-A在接收到SIP请求消息,并在该消息中加入AVPP后,需要向SCSCF-A发送回执。In this embodiment, since the SCSCF-A is the control layer network element and the AS-A is the service layer network element, the AS-A needs to send the SIP request message to the SCSCF after adding the AVPP message to the message. A sends a receipt.
S708,SCSCF-A向MGCF-A发送SIP请求消息。S708. The SCSCF-A sends a SIP request message to the MGCF-A.
S709,MGCF-A接收到SIP请求消息后,因为MGCF-A开启计费功能,所以在SIP请求消息的头域中加入MGCF-A的AVPP,其中加入的私有计费字段的优先级信息,默认为NORMAL_PRIORITY;同时,MGCF-A可以根据配置保持不变或修改前一跳计费设备,即SCSCF-A加入的公共计费字段的优先级信息(Role-Of-Node优先级为HIGHEST_PRIORITY)。S709, after the MGCF-A receives the SIP request message, because MGCF-A starts the charging function, the MGCF-A AVPP is added in the header field of the SIP request message, and the priority information of the added private charging field is defaulted. It is NORMAL_PRIORITY; at the same time, MGCF-A can remain unchanged or modify the previous hop charging device, that is, the priority information of the public charging field added by SCSCF-A (Role-Of-Node priority is HIGHEST_PRIORITY).
在本实施例中,MGCF-A加入的AVPP的具体内容可以参照上述表7所示内容,不同的是“Role-Of-Node”的优先级为“HIGHER_PRIORITY”,其中,SIP请求消息的头域(P-Charging-Vector)中优先级参数携带的AVPP值可以参照上述表8所示内容。In this embodiment, the specific content of the AVPP added by the MGCF-A can refer to the content shown in Table 7 above, except that the priority of the "Role-Of-Node" is "HIGHER_PRIORITY", where the header field of the SIP request message (For the AVPP value carried in the priority parameter in (P-Charging-Vector), refer to the contents shown in Table 8 above.
S710,MGCF-A向CS域UE B发送SIP请求消息,该请求中不包含AVPP信息。S710. The MGCF-A sends a SIP request message to the CS domain UE B, where the request does not include AVPP information.
S711,UE B应答后,CS域UE B向MGCF-A返回SIP响应消息。S711: After the UE B answers, the CS domain UE B returns a SIP response message to the MGCF-A.
S712,MGCF-A向SCSCF-A返回SIP响应消息。S712. The MGCF-A returns a SIP response message to the SCSCF-A.
S713,SCSCF-A向AS-A返回SIP响应消息。 S713. The SCSCF-A returns a SIP response message to the AS-A.
S714,AS-A向SCSCF-A发送SIP响应消息作为回执。S714. The AS-A sends a SIP response message to the SCSCF-A as a receipt.
S715,SCSCF-A向PCSCF-A返回SIP响应消息。S715. The SCSCF-A returns a SIP response message to the PCSCF-A.
S716,PCSCF-A向IMS域UE A返回SIP响应消息。S716. The PCSCF-A returns a SIP response message to the IMS domain UE A.
S717,开启计费功能的计费设备MGCF-A、AS-A、SCSCF-A和PCSCF-A向CDF发送ACR消息,每个计费设备发送的ACR消息中均携带该设对应的AVPP。S717: The charging devices MGCF-A, AS-A, SCSCF-A, and PCSCF-A that enable the charging function send an ACR message to the CDF, and the ACR message sent by each charging device carries the AVPP corresponding to the setting.
S718,CDF根据每个计费设备发送的ACR分别构造生成对应于每个计费设备的CDR,包括:MGCF-A CDR、AS-A CDR、SCSCF-A CDR和PCSCF-A CDR。S718. The CDF separately generates, according to the ACR sent by each charging device, a CDR corresponding to each charging device, including: an MGCF-A CDR, an AS-A CDR, an SCSCF-A CDR, and a PCSCF-A CDR.
S719,CDR将上述生成的所有CDR填写到合并缓冲区,并将所有CDR根据ICID、计费主体标识和每个AVPP进行合并计费。本实施例中进行合并计费的方式和原则与上述实施例中相同,故在此不再赘述。S719, the CDR fills in all the CDRs generated above into the merging buffer, and combines all the CDRs according to the ICID, the charging subject identifier, and each AVPP. The manner and principle of performing the combined charging in this embodiment are the same as those in the foregoing embodiment, and therefore are not described herein again.
需要说明的是,图10所示实施例中实际的消息流程还涉及其他信令交互流程,为了简化计费处理方法的步骤进行了适当省略;图9中步骤S702、S704、S706和S709中加入的AVPP,具体可以是,在SIP请求消息的头域P-Charging-Vector中新增优先级参数,该参数携带AVPP,该AVPP以TLV方式组织,以0xFE0xFF0xFE0xFF结束;图10中每个计费网元中的计费信息仅是举例,实际计费信息由实际环境决定。It should be noted that the actual message flow in the embodiment shown in FIG. 10 also involves other signaling interaction processes, and the steps for simplifying the charging processing method are appropriately omitted; steps S702, S704, S706, and S709 are added in FIG. The AVPP may specifically include a priority parameter in the header field P-Charging-Vector of the SIP request message, the parameter carrying AVPP, the AVPP being organized in a TLV manner, ending with 0xFE0xFF0xFE0xFF; each charging network in FIG. The billing information in the meta is only an example, and the actual billing information is determined by the actual environment.
图11为本发明实施例提供的一种计费处理装置的结构示意图。本实施例提供的计费处理装置适用于对IMS中通过多个计费设备进行合并计费的情况中,该计费处理装置可以通过硬件和软件结合的方式来实现,该装置可以集成在计费设备的处理器中,供处理器调用使用。如图11所示,本实施例提供的计费处理装置包括:接收模块11、添加模块12和发送模块13。FIG. 11 is a schematic structural diagram of a charging processing apparatus according to an embodiment of the present invention. The charging processing apparatus provided by this embodiment is applicable to the case where the charging is performed by multiple charging devices in the IMS, and the charging processing apparatus can be implemented by combining hardware and software, and the apparatus can be integrated into the meter. The processor of the fee device is used by the processor to call. As shown in FIG. 11, the charging processing apparatus provided in this embodiment includes: a receiving module 11, an adding module 12, and a sending module 13.
其中,接收模块11,设置为接收通信请求消息。The receiving module 11 is configured to receive a communication request message.
添加模块12,设置为在接收模块11接收到的通信请求消息中加入计费处理装置所属计费设备的计费字段优先级信息AVPP,所加入的AVPP包括:计费处理装置所属计费设备的公共计费字段的优先级信息和私有计费字段的优先级信息。 The adding module 12 is configured to add, in the communication request message received by the receiving module 11, the charging field priority information AVPP of the charging device to which the charging processing device belongs, and the added AVPP includes: the charging device to which the charging processing device belongs Priority information of the public charging field and priority information of the private charging field.
本实施例提供的计费处理装置,涉及多个计费设备对IMS中的一次会话或事务进行计费的应用场景,即在IMS的每个计费设备中都设置有本实施例提供的计费处理装置。每一跳计费设备中的接收模块11依次接收通信请求消息,该通信请求消息同样可以为SIP请求消息;并且接收模块11在接收到通信请求消息后,没有直接转发的通信请求消息,而是由添加模块12在接收到的通信请求消息中加入AVPP,所加入的AVPP中包括该计费处理装置所属计费设备的公共计费字段的优先级信息和私有计费字段的优先级信息。也就是说,每个计费处理装置在转发通信请求消息前,都记录有其自身的AVPP。The charging processing apparatus provided in this embodiment is related to an application scenario in which a plurality of charging devices perform charging for a session or a transaction in an IMS, that is, a meter provided in this embodiment is provided in each charging device of the IMS. Fee processing device. The receiving module 11 in each hop charging device sequentially receives the communication request message, and the communication request message can also be a SIP request message; and the receiving module 11 does not directly forward the communication request message after receiving the communication request message, but The AVPP is added to the received communication request message by the adding module 12, and the added AVPP includes the priority information of the public charging field of the charging device to which the charging processing device belongs and the priority information of the private charging field. That is to say, each billing processing device records its own AVPP before forwarding the communication request message.
发送模块13,设置为转发添加模块12处理后的通信请求消息。The sending module 13 is configured to forward the communication request message processed by the adding module 12.
接收模块11,还设置为接收通信响应消息。The receiving module 11 is further configured to receive a communication response message.
在本实施例中,每一跳计费设备中的计费处理装置接收和发送通信请求消息的方式,在通信请求消息中添加其自身AVPP的方式,接收和转发通信响应消息的方式,以及计费字段的优先级的表示方式都与上述实施例中相同,故在此不再赘述。In this embodiment, the manner in which the charging processing device in each hop charging device receives and transmits the communication request message, adds its own AVPP in the communication request message, and receives and forwards the communication response message, and The priority of the fee field is expressed in the same manner as in the above embodiment, and therefore will not be described herein.
需要说明的是,由于本发明各实施例中计费处理是指对进行通信的呼叫侧分支进行计费的,即主叫侧和被叫侧是分别进行计费的,因此,虽然最后一跳计费设备在接收到的通信请求消息中加入了其自身的AVPP,在最后一跳计费设备向被叫侧设备发送通信请求消息前,删除该通信请求消息中的所有AVPP,以保证单侧计费的原则。It should be noted that, in the embodiments of the present invention, the charging process refers to charging the call side branch that performs communication, that is, the calling side and the called side are separately charged, and therefore, although the last hop The charging device adds its own AVPP in the received communication request message, and deletes all AVPPs in the communication request message before the last hop charging device sends a communication request message to the called side device to ensure one-sided The principle of billing.
发送模块13,还设置为向话单设备发送计费请求消息ACR,每个ACR中包括发送ACR的计费设备加入的AVPP,所发送的ACR用于指示话单设备根据每个ACR、IMS计费标识ICID、计费主体标识和每个AVPP进行合并计费。The sending module 13 is further configured to send an accounting request message ACR to the CDR device, where each ACR includes an AVPP that is sent by the charging device that sends the ACR, and the sent ACR is used to indicate that the CDR device is calculated according to each ACR and IMS. The fee identification ICID, the billing subject ID, and each AVPP are combined and billed.
在本实施例中,接收模块11接收到上述通信响应消息后,发送模块13可以向话单设备发送ACR,话单设备接收到的每个ACR中具有与计费设备对应的AVPP。因此,本发明各实施例中用于进行合并计费的依据增加了AVPP,该AVPP用于在选择公共字段信息时,通过每个计费设备的公共字段的优先级信息确定合并话单中以哪个公共字段信息为准。 In this embodiment, after the receiving module 11 receives the communication response message, the sending module 13 may send an ACR to the CDR device, and each ACR received by the CDR device has an AVPP corresponding to the charging device. Therefore, the basis for performing the combined charging in the embodiments of the present invention increases the AVPP, and the AVPP is used to determine, in the merged bill, the priority information of the common field of each charging device when the public field information is selected. Which public field information is correct.
本发明实施例提供的计费处理装置用于执行本发明图2所示实施例提供的计费处理方法,具备相应的功能模块,其实现原理和技术效果类似,此处不再赘述。The charging processing apparatus provided by the embodiment of the present invention is used to perform the charging processing method provided by the embodiment shown in FIG. 2 of the present invention, and has a corresponding functional module, and the implementation principle and the technical effect thereof are similar, and details are not described herein again.
可选地,本实施例中添加模块12加入的公共计费字段的优先级信息在下一跳计费设备接收到通信请求消息后进行设置,并且设置上一跳计费设备加入的公共计费字段的优先级信息的方式与上述实施例中相同,故在此不再赘述。Optionally, the priority information of the public charging field added by the adding module 12 in the embodiment is set after the next hop charging device receives the communication request message, and the public charging field added by the last hop charging device is set. The manner of the priority information is the same as that in the above embodiment, and therefore will not be described herein.
需要说明的是,本发明各实施例中的计费设备的物理数量至少为三个,分别对应于业务层、控制层和接入层,即上述每一层中具有至少一个实体的计费设备。另外,本发明各实施例中的计费设备在逻辑关系上包括:第一计费设备、第二计费设备和第三计费设备,其中,上述第二计费设备的数量为一个或多个。以下说明第一、第二和第三计费设备中添加模块12和发送模块13的具体实现方式:It should be noted that the physical quantity of the charging device in the embodiments of the present invention is at least three, corresponding to the service layer, the control layer, and the access layer, that is, the charging device having at least one entity in each layer. . In addition, the charging device in the embodiments of the present invention includes: a first charging device, a second charging device, and a third charging device, wherein the number of the second charging device is one or more One. The specific implementation manners of the adding module 12 and the sending module 13 in the first, second, and third charging devices are described below:
其中,设置于第一计费设备的添加模块12,设置为在接收到第一通信设备发送的通信请求消息后,在通信请求消息中加入第一计费设备的AVPP;相应地,设置于第一计费设备的发送模块13,设置为向第二计费设备发送添加模块12处理后的通信请求消息。The adding module 12 of the first charging device is configured to: after receiving the communication request message sent by the first communication device, add the AVPP of the first charging device to the communication request message; correspondingly, set in the first The sending module 13 of a charging device is configured to send a communication request message processed by the adding module 12 to the second charging device.
设置于第二计费设备的添加模块12,设置为在接收到上一跳计费设备发送的通信请求消息后,在通信请求消息中加入第二计费设备的AVPP,并设置上一跳计费设备的公共计费字段的优先级信息,其中,上一跳计费设备为第一计费设备或上一跳第二计费设备;相应地,设置于第二计费设备的发送模块13,设置为向下一跳第二计费设备或第三计费设备发送添加模块12处理后的通信请求消息。The adding module 12 of the second charging device is configured to: after receiving the communication request message sent by the last hop charging device, add the AVPP of the second charging device to the communication request message, and set the last hopping device. The priority information of the public charging field of the fee device, wherein the last hop charging device is the first charging device or the last hop second charging device; correspondingly, the sending module 13 of the second charging device is disposed. And sending, to the next hop, the second charging device or the third charging device, the communication request message processed by the adding module 12.
设置于第三计费设备的添加模块12,设置为在接收到上一跳第二计费设备发送的通信请求消息后,在通信请求消息中加入第三计费设备的AVPP,设置上一跳第二计费设备的公共计费字段的优先级信息;相应地,设置于第三计费设备的发送模块13,设置为向第二通信设备发送删除全部AVPP的通信请求消息。The adding module 12 of the third charging device is configured to add the AVPP of the third charging device to the communication request message after receiving the communication request message sent by the second charging device of the last hop, and set the last hop. The priority information of the public charging field of the second charging device; correspondingly, the sending module 13 of the third charging device is configured to send a communication request message for deleting all AVPPs to the second communication device.
需要说明的是,虽然本实施例中的第三计费设备的添加模块12将其自身 的AVPP加入到通信请求消息中,该AVPP用于发送ACR时发送给话单设备,由于单侧计费的原则,第三计费设备的发送模块13向被叫侧设备发送的通信请求消息中已删除所有AVPP。It should be noted that although the adding module 12 of the third charging device in this embodiment will itself The AVPP is added to the communication request message, and the AVPP is sent to the CDR device when the ACR is sent. Due to the principle of single-side charging, the sending module 13 of the third charging device sends a communication request message to the called side device. All AVPPs have been deleted.
本发明实施例提供的计费处理装置用于执行本发明图3所示实施例提供的计费处理方法,具备相应的功能模块,其实现原理和技术效果类似,此处不再赘述。The charging processing apparatus provided by the embodiment of the present invention is used to perform the charging processing method provided by the embodiment shown in FIG. 3 of the present invention, and has a corresponding functional module, and the implementation principle and the technical effect are similar, and details are not described herein again.
可选地,本实施例中的添加模块12是设置为通过如下方式实现加入AVPP:在接收模块11接收到的通信请求消息的头域中加入优先级参数,并将计费处理装置所属计费设备的AVPP携带在该优先级参数中。本实施例中优先级参数的设置方式,和是否配置携带AVPP的方式与上述实施例相同,并且计费设备的逻辑关系也与上述各实施例相同,故在此不再赘述。Optionally, the adding module 12 in this embodiment is configured to implement the joining of the AVPP by adding a priority parameter in the header field of the communication request message received by the receiving module 11, and charging the charging processing device. The AVPP of the device is carried in this priority parameter. The manner of setting the priority parameter in the embodiment and the manner of configuring the AVPP are the same as those in the foregoing embodiment, and the logical relationship of the charging device is the same as that in the foregoing embodiments, and details are not described herein again.
可选地,本本发明上述各实施例中,发送模块13向话单设备发送的ACR用于指示话单设备进行合并计费,并生成合并激发话单;可选地,发送的ACR用于指示话单设备根据每个ACR生成对应于每个计费设备的CDR,并将每个CDR根据ICID、计费主体标识和每个AVPP进行合并计费,所生成的合并计费话单中包括全部计费设备中优先级最高的公共计费字段和每个计费设备的私有计费字段。本实施例中进行合并计费的具体实现方式在上述实施例中已经说明,故在此不再赘述。Optionally, in the foregoing embodiments of the present invention, the ACR sent by the sending module 13 to the CDR device is used to indicate that the CDR device performs combined charging, and generates a merged CDR; optionally, the sent ACR is used to indicate The CDR device generates a CDR corresponding to each charging device according to each ACR, and combines and charges each CDR according to the ICID, the charging entity identifier, and each AVPP, and the generated consolidated charging bill includes all The highest priority public charging field in the charging device and the private charging field of each charging device. The specific implementation manner of performing the combined charging in this embodiment has been described in the foregoing embodiment, and therefore will not be further described herein.
需要说明的是,当至少两个AVPP中的公共计费字段的最高优先级相同时,上述合并计费话单中包括话单设备先获取到的优先级最高的公共计费字段和每个计费设备的私有计费字段。It should be noted that, when the highest priority of the common charging field in the at least two AVPPs is the same, the consolidated charging bill includes the public charging field with the highest priority obtained by the bill device and each meter. The private billing field of the fee device.
图12为本发明实施例提供的另一种计费处理装置的结构示意图。本实施例提供的计费处理装置适用于对IMS中通过多个计费设备进行合并计费的情况中,该计费处理装置可以通过硬件和软件结合的方式来实现,该装置可以集成在话单设备的处理器中,供处理器调用使用。如图12所示,本实施例提供的计费处理装置包括:接收模块21和合并计费模块22。FIG. 12 is a schematic structural diagram of another charging processing apparatus according to an embodiment of the present invention. The charging processing device provided in this embodiment is applicable to the case where the charging is performed by multiple charging devices in the IMS, and the charging processing device can be implemented by combining hardware and software, and the device can be integrated in the message. The processor of a single device is used by the processor to call. As shown in FIG. 12, the charging processing apparatus provided in this embodiment includes: a receiving module 21 and a combined charging module 22.
其中,接收模块21,设置为接收每一跳计费设备发送的包括计费字段优先级信息AVPP的计费请求消息ACR;其中,每个ACR中的AVPP为,发送该ACR的计费设备在接收到的通信请求消息中加入的计费设备的AVPP, 所加入的AVPP包括该计费设备的公共计费字段的优先级信息和私有计费字段的优先级信息。The receiving module 21 is configured to receive an accounting request message ACR including the charging field priority information AVPP sent by each hop charging device, where the AVPP in each ACR is the charging device that sends the ACR. The AVPP of the charging device added in the received communication request message, The added AVPP includes priority information of the public charging field of the charging device and priority information of the private charging field.
本实施例提供的计费处理装置,涉及多个计费设备对IMS中的一次会话或事务进行计费的应用场景,每一跳计费设备可以依次接收通信请求消息,该通信请求消息同样可以为SIP请求消息,并在依次接收返回的通信响应消息后,向话单设备发送ACR;由于每一跳计费设备在接收到通信请求消息时,没有直接转发接收的通信请求消息,而是在该消息中加入当前计费设备的AVPP,并且,每一跳计费设备加入的公共计费字段的优先级信息可以在其下一跳计费设备中进行设置。也就是说,每个计费设备在转发通信请求消息前,都记录有其自身的AVPP。The charging processing apparatus provided by this embodiment relates to an application scenario in which a plurality of charging devices perform charging for one session or transaction in the IMS, and each hop charging device may sequentially receive a communication request message, and the communication request message may also be Sending an ACR to the CDR device after receiving the returned communication response message in sequence; since each hop charging device receives the communication request message, it does not directly forward the received communication request message, but The AVPP of the current charging device is added to the message, and the priority information of the public charging field added by each hop charging device can be set in its next hop charging device. That is to say, each charging device records its own AVPP before forwarding the communication request message.
在本实施例中,每一跳计费设备接收和发送通信请求消息的方式,在通信请求消息中添加其自身AVPP的方式,设置上一跳计费设备加入的公共计费字段的优先级信息的方式,接收和转发通信响应消息的方式,以及计费字段的优先级的表示方式都与上述实施例中相同,故在此不再赘述。In this embodiment, each hop charging device receives and sends a communication request message, adds its own AVPP mode in the communication request message, and sets priority information of the public charging field added by the last hop charging device. The manner of receiving and forwarding the communication response message, and the manner of indicating the priority of the charging field are the same as those in the foregoing embodiment, and therefore will not be further described herein.
需要说明的是,由于本发明各实施例中计费处理是指对进行通信的呼叫侧分支进行计费的,即主叫侧和被叫侧是分别进行计费的,因此,虽然最后一跳计费设备在接收到的通信请求消息中加入了其自身的AVPP,在最后一跳计费设备向被叫侧设备发送通信请求消息前,删除该通信请求消息中的所有AVPP,以保证单侧计费的原则。It should be noted that, in the embodiments of the present invention, the charging process refers to charging the call side branch that performs communication, that is, the calling side and the called side are separately charged, and therefore, although the last hop The charging device adds its own AVPP in the received communication request message, and deletes all AVPPs in the communication request message before the last hop charging device sends a communication request message to the called side device to ensure one-sided The principle of billing.
合并计费模块22,设置为根据接收模块21接收的每个ACR,以及IMS计费标识ICID、计费主体标识和每个AVPP进行合并计费。The merge charging module 22 is configured to perform combined charging according to each ACR received by the receiving module 21, and the IMS charging identifier ICID, the charging subject identifier, and each AVPP.
在本实施例中,接收模块21接收到的每个ACR中具有与计费设备对应的AVPP。本发明各实施例中用于进行合并计费的依据增加了AVPP,该AVPP用于在选择公共字段信息时,合并计费模块22通过每个计费设备的公共字段的优先级信息确定合并话单中以哪个公共字段信息为准,这样,可以在计费设备中预先配置对应于不同应用场景的设置方式,用于对上一跳计费设备加入的公共字段的优先级信息进行设置,以保证在特殊业务的应用场景中可以使用正确的公共字段信息。In this embodiment, each ACR received by the receiving module 21 has an AVPP corresponding to the charging device. The basis for performing the combined charging in the embodiments of the present invention adds AVPP, and the AVPP is used to determine the merged message by using the priority information of the common field of each charging device when the common field information is selected. The setting of the common field corresponding to the different application scenarios may be pre-configured in the charging device to set the priority information of the common field added by the last hop charging device. Ensure that the correct public field information can be used in the application scenario of a special service.
本发明实施例提供的计费处理装置用于执行本发明图5所示实施例提供 的计费处理方法,具备相应的功能模块,其实现原理和技术效果类似,此处不再赘述。The charging processing apparatus provided by the embodiment of the present invention is used to perform the embodiment provided by the embodiment shown in FIG. 5 of the present invention. The billing processing method has the corresponding function module, and its implementation principle and technical effect are similar, and will not be described here.
可选地,本实施例中每一跳计费设备加入AVPP中的公共计费字段的优先级信息可以在其下一跳计费设备中进行设置,并且设置上一跳计费设备加入的公共计费字段的优先级信息的方式与上述实施例中相同,故在此不再赘述。Optionally, in this embodiment, the priority information of the public charging field added to the AVPP by each hop charging device may be set in the next hop charging device, and the public that the last hop charging device joins is set. The manner of the priority information of the charging field is the same as that in the foregoing embodiment, and details are not described herein again.
需要说明的是,本发明各实施例中的计费设备的物理数量至少为三个,分别对应于业务层、控制层和接入层,即上述每一层中具有至少一个实体的计费设备。另外,本发明各实施例中的计费设备在逻辑关系上包括:第一计费设备、第二计费设备和第三计费设备,其中,上述第二计费设备的数量为一个或多个。It should be noted that the physical quantity of the charging device in the embodiments of the present invention is at least three, corresponding to the service layer, the control layer, and the access layer, that is, the charging device having at least one entity in each layer. . In addition, the charging device in the embodiments of the present invention includes: a first charging device, a second charging device, and a third charging device, wherein the number of the second charging device is one or more One.
本实施例中第一、第二和第三计费设备之间的交互方式同样可以参照上述图3和图4所示实施例,本实施例中的ACR的具体内容可以为,第一计费设备发送的ACR中的AVPP为,第一计费设备在接收到第一通信设备发送的通信请求消息后,在通信请求消息中加入的第一计费设备的AVPP;第二计费设备发送的ACR中的AVPP为,第二计费设备在接收到上一跳计费设备发送的通信请求消息后,在通信请求消息中加入的第二计费设备的AVPP,以及第二计费设备设置后的上一跳计费设备的公共计费字段的优先级信息,其中,上一跳计费设备为第一计费设备或上一跳第二计费设备;第三计费设备发送的ACR中的AVPP为,第三计费设备在接收到上一跳第二计费设备发送的通信请求消息后,在通信请求消息中加入的第三计费设备的AVPP,以及第三计费设备设置后的上一跳第二计费设备的公共计费字段。The interaction between the first, second, and third charging devices in this embodiment may also refer to the foregoing embodiment shown in FIG. 3 and FIG. 4, and the specific content of the ACR in this embodiment may be: The AVPP in the ACR sent by the device is the AVPP of the first charging device added by the first charging device after receiving the communication request message sent by the first communication device, and the second charging device sends the The AVPP in the ACR is the AVPP of the second charging device added by the second charging device after receiving the communication request message sent by the last hop charging device, and the second charging device is set after the second charging device is set. The priority information of the public charging field of the last hop charging device, wherein the last hop charging device is the first charging device or the last hop second charging device; and the third charging device sends the ACR. The AVPP is the AVPP of the third charging device added by the third charging device after receiving the communication request message sent by the second charging device of the last hop, and the third charging device is set after the third charging device is set. Last hop of the second billing device Total billing field.
需要说明的是,虽然本实施例中的第三计费设备的添加模块将其自身的AVPP加入到通信请求消息中,该AVPP用于发送ACR时发送给话单设备,由于单侧计费的原则,第三计费设备的发送模块向被叫侧设备发送的通信请求消息中已删除所有AVPP。It should be noted that, although the adding module of the third charging device in this embodiment adds its own AVPP to the communication request message, the AVPP is used to send the ACR to the CDR device, because of the one-side charging. In principle, all AVPPs have been deleted from the communication request message sent by the sending module of the third charging device to the called side device.
可选地,本实施例中的接收模块21接收到的每个ACR中的AVPP具体为,发送该ACR的计费设备在接收到的通信请求消息的头域中加入优先级参数,并在该优先级参数中加入的该计费设备的AVPP。本实施例中优先级参 数的设置方式,和是否配置携带AVPP的方式与上述实施例相同,并且计费设备的逻辑关系也与上述各实施例相同,故在此不再赘述。Optionally, the AVPP in each ACR received by the receiving module 21 in this embodiment is specifically: the charging device that sends the ACR adds a priority parameter in the header field of the received communication request message, and The AVPP of the charging device added to the priority parameter. Priority parameter in this embodiment The manner of setting the number and the manner of configuring the AVPP are the same as those of the foregoing embodiment, and the logical relationship of the charging device is the same as that of the foregoing embodiments, and therefore no further details are provided herein.
可选地,图13为本发明实施例提供的又一种计费处理装置的结构示意图。在上述图12所示计费处理装置的结构基础上,本实施例中的合并计费模块22包括:数据生成单元23,设置为根据接收模块21接收到的每个ACR生成对应于每个计费设备的计费数据记录CDR;合并计费单元24,设置为将数据生成单元23生成的每个CDR根据ICID、计费主体标识和每个AVPP进行合并计费,所生成的合并计费话单中包括全部计费设备中优先级最高的公共计费字段和每个计费设备的私有计费字段。本实施例中进行合并计费的具体实现方式在上述实施例中已经说明,故在此不再赘述。Optionally, FIG. 13 is a schematic structural diagram of still another charging processing apparatus according to an embodiment of the present invention. Based on the structure of the charging processing apparatus shown in FIG. 12, the merge charging module 22 in this embodiment includes: a data generating unit 23 configured to generate, according to each ACR received by the receiving module 21, corresponding to each meter. The billing data record CDR of the fee device; the merge billing unit 24 is configured to combine the billing of each CDR generated by the data generating unit 23 according to the ICID, the billing subject identifier, and each AVPP, and the generated combined billing words The single includes the highest priority public charging field of all charging devices and the private charging field of each charging device. The specific implementation manner of performing the combined charging in this embodiment has been described in the foregoing embodiment, and therefore will not be further described herein.
需要说明的是,当至少两个AVPP中的公共计费字段的最高优先级相同时,上述合并计费话单中包括话单设备先获取到的优先级最高的公共计费字段和每个计费设备的私有计费字段。It should be noted that, when the highest priority of the common charging field in the at least two AVPPs is the same, the consolidated charging bill includes the public charging field with the highest priority obtained by the bill device and each meter. The private billing field of the fee device.
本发明实施例提供的计费处理装置用于执行本发明图6所示实施例提供的计费处理方法,具备相应的功能模块,其实现原理和技术效果类似,此处不再赘述。The charging processing apparatus provided by the embodiment of the present invention is used to perform the charging processing method provided by the embodiment shown in FIG. 6 of the present invention, and has a corresponding functional module, and the implementation principle and the technical effect thereof are similar, and details are not described herein again.
本发明实施例还提供的一种计费系统,可以参照图1所示的IMS中的计费实体功能的关系,本实施例提供的计费系统包括:分别设置于IMS中业务层、控制层、接入层的计费设备和计费话单,每个计费设备中设置有如上述图11所示任一实施例中的计费处理装置,计费话单中设置有如上述图12和图13所示任一实施例中的计费处理装置。The billing system provided by the embodiment of the present invention can be referred to the relationship between the billing entity functions in the IMS shown in FIG. 1. The billing system provided in this embodiment includes: a service layer and a control layer respectively set in the IMS. And the charging device of the access layer and the charging bill. Each charging device is provided with the charging processing device in any of the embodiments shown in FIG. 11 , and the charging bill is set as shown in FIG. 12 and FIG. A billing processing apparatus in any of the embodiments shown in FIG.
本实施例中的计费系统,用于执行本发明图4、图7~图10所示任一实施例提供的计费处理方法,具备相应的实体装置,其实现原理和技术效果类似,此处不再赘述。The charging system in this embodiment is used to perform the charging processing method provided in any of the embodiments shown in FIG. 4 and FIG. 7 to FIG. 10, and has a corresponding physical device, and the implementation principle and the technical effect are similar. I won't go into details here.
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行上述实施例所述的方法。 The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the method described in the foregoing embodiments.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本发明不限制于任何特定形式的硬件和软件的结合。One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct related hardware, such as a processor, which may be stored in a computer readable storage medium, such as a read only memory, disk or optical disk. Wait. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function. The invention is not limited to any specific form of combination of hardware and software.
虽然本发明所揭露的实施方式如上,但所述的内容仅为便于理解本发明而采用的实施方式,并非用以限定本发明。任何本发明所属领域内的技术人员,在不脱离本发明所揭露的精神和范围的前提下,可以在实施的形式及细节上进行任何的修改与变化,但本发明的专利保护范围,仍须以所附的权利要求书所界定的范围为准。While the embodiments of the present invention have been described above, the described embodiments are merely for the purpose of understanding the invention and are not intended to limit the invention. Any modification and variation in the form and details of the embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention. The scope defined by the appended claims shall prevail.
工业实用性Industrial applicability
上述技术方案实现了灵活计费,避免了在通过多种计费网元进行话单合并的计费过程中,由于公共字段信息均以AS网元为准,而导致的在一些特定业务的应用场景中生成的计费话单不准确的情况发生。 The foregoing technical solution implements flexible charging, and avoids the application of some specific services in the charging process of combining bills through multiple charging network elements, because the common field information is based on the AS network element. The accounting bill generated in the scenario is inaccurate.

Claims (21)

  1. 一种计费处理方法,包括:A billing processing method includes:
    每一跳计费设备在接收到的通信请求消息中加入当前计费设备的计费字段优先级信息AVPP,所加入的AVPP包括所述当前计费设备的公共计费字段的优先级信息和私有计费字段的优先级信息;Each hop charging device adds the charging field priority information AVPP of the current charging device to the received communication request message, and the added AVPP includes priority information and private information of the public charging field of the current charging device. Priority information of the billing field;
    每一跳所述计费设备依次转发处理后的通信请求消息;Each hopping charging device forwards the processed communication request message in turn;
    每一跳所述计费设备依次接收通信响应消息;Each hopping charging device sequentially receives a communication response message;
    每一跳所述计费设备分别向话单设备发送计费请求消息ACR,每个所述ACR中包括发送所述ACR的计费设备加入的AVPP,所发送的ACR用于指示所述话单设备根据每个所述ACR、网络协议IP多媒体子系统计费标识ICID、计费主体标识和每个所述AVPP进行合并计费。The aging device sends a charging request message (ACR) to the CDR device, and each of the ACRs includes an AVPP that is sent by the charging device that sends the ACR, and the sent ACR is used to indicate the CDR. The device performs combined charging according to each of the ACR, the network protocol IP multimedia subsystem charging identifier ICID, the charging subject identifier, and each of the AVPPs.
  2. 根据权利要求1所述的计费处理方法,其中,每一跳所述计费设备加入的公共计费字段的优先级信息在下一跳计费设备接收到处理后的通信请求消息后进行设置。The charging processing method according to claim 1, wherein the priority information of the common charging field added by each hopping charging device is set after the next hop charging device receives the processed communication request message.
  3. 根据权利要求2所述的计费处理方法,其中,所述计费设备包括第一计费设备、第二计费设备和第三计费设备,所述第二计费设备的数量为一个或多个;The charging processing method according to claim 2, wherein the charging device comprises a first charging device, a second charging device, and a third charging device, and the number of the second charging devices is one or Multiple
    所述每一跳计费设备在接收到的通信请求消息中加入当前计费设备的计费字段优先级信息AVPP,并依次转发处理后的通信请求消息,包括:The hopping device adds the charging field priority information AVPP of the current charging device to the received communication request message, and sequentially forwards the processed communication request message, including:
    所述第一计费设备在接收到第一通信设备发送的通信请求消息后,在所述通信请求消息中加入所述第一计费设备的AVPP,并向所述第二计费设备发送处理后的通信请求消息;After receiving the communication request message sent by the first communication device, the first charging device adds the AVPP of the first charging device to the communication request message, and sends the processing to the second charging device. Post communication request message;
    所述第二计费设备在接收到上一跳计费设备发送的通信请求消息后,在所述通信请求消息中加入所述第二计费设备的AVPP,设置所述上一跳计费设备的公共计费字段的优先级信息,其中,所述上一跳计费设备为所述第一计费设备或上一跳第二计费设备,并向下一跳第二计费设备或所述第三计费设备发送处理后的通信请求消息; After receiving the communication request message sent by the last hop charging device, the second charging device adds the AVPP of the second charging device to the communication request message, and sets the last hop charging device. The priority information of the public charging field, wherein the last hop charging device is the first charging device or the second hop second charging device, and the next hop second charging device or device Transmitting, by the third charging device, the processed communication request message;
    所述第三计费设备在接收到上一跳第二计费设备发送的通信请求消息后,在所述通信请求消息中加入所述第三计费设备的AVPP,设置所述上一跳第二计费设备的公共计费字段的优先级信息,并向第二通信设备发送删除全部AVPP的通信请求消息。After receiving the communication request message sent by the second TTL device, the third charging device adds the AVPP of the third charging device to the communication request message, and sets the last hop. The priority information of the public charging field of the second charging device, and sending a communication request message for deleting all AVPPs to the second communication device.
  4. 根据权利要求1~3中任一项所述的计费处理方法,其中,所述每一跳计费设备在接收到的通信请求消息中加入当前计费设备的计费字段优先级信息AVPP,包括:The charging processing method according to any one of claims 1 to 3, wherein the per-hop charging device adds the charging field priority information AVPP of the current charging device to the received communication request message. include:
    每一跳所述计费设备在接收到的通信请求消息的头域中加入优先级参数,并将所述当前计费设备的AVPP携带在所述优先级参数中。Each hopping charging device adds a priority parameter in a header field of the received communication request message, and carries the AVPP of the current charging device in the priority parameter.
  5. 一种计费处理方法,包括:A billing processing method includes:
    话单设备接收每一跳计费设备发送的包括计费字段优先级信息AVPP的计费请求消息ACR;其中,每个所述ACR中的AVPP为发送所述ACR的计费设备在接收到的通信请求消息中加入的所述计费设备的AVPP,所加入的AVPP包括所述计费设备的公共计费字段的优先级信息和私有计费字段的优先级信息;The billing device receives the charging request message ACR including the charging field priority information AVPP sent by each hop charging device; wherein the AVPP in each of the ACRs is received by the charging device that sends the ACR The AVPP of the charging device added in the communication request message includes the priority information of the public charging field of the charging device and the priority information of the private charging field;
    所述话单设备根据每个所述ACR、网络协议IP多媒体子系统计费标识ICID、计费主体标识和每个所述AVPP进行合并计费。The billing device performs combined charging according to each of the ACR, the network protocol IP multimedia subsystem charging identifier ICID, the charging subject identifier, and each of the AVPPs.
  6. 根据权利要求5所述的计费处理方法,其中,所加入的AVPP中的公共计费字段的优先级信息在下一跳计费设备接收到通信请求消息后进行设置。The charging processing method according to claim 5, wherein the priority information of the common charging field in the added AVPP is set after the next hop charging device receives the communication request message.
  7. 根据权利要求6所述的计费处理方法,其中,所述计费设备包括第一计费设备、第二计费设备和第三计费设备,其中,所述第二计费设备的数量为一个或多个;The charging processing method according to claim 6, wherein the charging device comprises a first charging device, a second charging device, and a third charging device, wherein the number of the second charging devices is one or more;
    所述第一计费设备发送的ACR中的AVPP为,所述第一计费设备在接收到第一通信设备发送的通信请求消息后,在所述通信请求消息中加入的所述第一计费设备的AVPP;The AVPP in the ACR sent by the first charging device is the first meter added by the first charging device to the communication request message after receiving the communication request message sent by the first communication device. AVPP for fee equipment;
    所述第二计费设备发送的ACR中的AVPP为,所述第二计费设备在接收到上一跳计费设备发送的通信请求消息后,在所述通信请求消息中加入的所 述第二计费设备的AVPP,以及所述第二计费设备设置后的所述上一跳计费设备的公共计费字段的优先级信息,其中,所述上一跳计费设备为所述第一计费设备或上一跳第二计费设备;The AVPP in the ACR sent by the second charging device is a location that is added to the communication request message after the second charging device receives the communication request message sent by the last hop charging device. The AVPP of the second charging device, and the priority information of the public charging field of the last hop charging device after the second charging device is set, wherein the last hop charging device is The first charging device or the second hop second charging device;
    所述第三计费设备发送的ACR中的AVPP为,所述第三计费设备在接收到上一跳第二计费设备发送的通信请求消息后,在所述通信请求消息中加入的所述第三计费设备的AVPP,以及所述第三计费设备设置后的所述上一跳第二计费设备的公共计费字段。The AVPP in the ACR sent by the third charging device is the location that the third charging device joins in the communication request message after receiving the communication request message sent by the second charging device of the last hop. The AVPP of the third charging device and the public charging field of the second charging device of the last hop after the third charging device is set.
  8. 根据权利要求5所述的计费处理方法,其中,所述话单设备根据每个所述ACR、网络协议IP多媒体子系统计费标识ICID、计费主体标识和每个所述AVPP进行合并计费,包括:The charging processing method according to claim 5, wherein said bill device performs a combination according to each of said ACR, network protocol IP multimedia subsystem charging identifier ICID, billing subject identifier, and each of said AVPPs Fees, including:
    所述话单设备根据每个所述ACR生成对应于每个所述计费设备的计费数据记录CDR;The bill device generates a CDR corresponding to the billing data of each billing device according to each of the ACRs;
    所述话单设备将每个所述CDR根据所述ICID、计费主体标识和每个所述AVPP进行合并计费,所生成的合并计费话单中包括全部所述计费设备中优先级最高的公共计费字段和每个所述计费设备的私有计费字段。The billing device combines and charges each of the CDRs according to the ICID, the billing subject identifier, and each of the AVPPs, and the generated billed bill includes all the priorities of the billing devices. The highest public charging field and the private charging field for each of the charging devices.
  9. 根据权利要求8所述的计费处理方法,其中,当至少两个所述AVPP中的公共计费字段的最高优先级相同时,所述合并计费话单中包括所述话单设备先获取到的优先级最高的公共计费字段和每个所述计费设备的私有计费字段。The charging processing method according to claim 8, wherein when the highest priority of the common charging fields in the at least two of the AVPPs is the same, the consolidated charging bill includes the billing device first acquiring The highest priority public charging field to and the private charging field of each of the charging devices.
  10. 根据权利要求5~9中任一项所述的计费处理方法,其中,每个所述ACR中的AVPP为,发送所述ACR的计费设备在接收到的通信请求消息的头域中加入优先级参数,并在所述优先级参数中加入的所述计费设备的AVPP。The charging processing method according to any one of claims 5 to 9, wherein the AVPP in each of the ACRs is that the charging device that transmits the ACR joins in a header field of the received communication request message a priority parameter, and an AVPP of the charging device added in the priority parameter.
  11. 一种计费处理装置,设置于网络协议IP多媒体子系统IMS的每一跳计费设备中,所述计费处理装置包括:A billing processing device is provided in each hop charging device of the network protocol IP multimedia subsystem IMS, and the billing processing device includes:
    接收模块,设置为接收通信请求消息;接收通信响应消息;a receiving module, configured to receive a communication request message; receive a communication response message;
    添加模块,设置为在所述接收模块接收到的通信请求消息中加入所述计费处理装置所属计费设备的计费字段优先级信息AVPP,所加入的AVPP包 括:所述计费处理装置所属计费设备的公共计费字段的优先级信息和私有计费字段的优先级信息;Adding a module, configured to add, in the communication request message received by the receiving module, the charging field priority information AVPP of the charging device to which the charging processing device belongs, and the added AVPP packet The priority information of the public charging field of the charging device to which the charging processing device belongs and the priority information of the private charging field;
    发送模块,设置为转发所述添加模块处理后的通信请求消息;向话单设备发送计费请求消息ACR,每个所述ACR中包括发送所述ACR的计费设备加入的AVPP,所发送的ACR用于指示所述话单设备根据每个所述ACR、IMS计费标识ICID、计费主体标识和每个所述AVPP进行合并计费。a sending module, configured to forward the communication request message processed by the adding module, and send an accounting request message ACR to the CDR device, where each ACR includes an AVPP that is sent by the charging device that sends the ACR, and the sent The ACR is configured to instruct the billing device to perform combined charging according to each of the ACR, the IMS charging identifier ICID, the charging subject identifier, and each of the AVPPs.
  12. 根据权利要求11所述的计费处理装置,其中,所述添加模块加入的公共计费字段的优先级信息在下一跳计费设备接收到通信请求消息后进行设置。The charging processing apparatus according to claim 11, wherein the priority information of the common charging field to which the adding module joins is set after the next hop charging device receives the communication request message.
  13. 根据权利要求12所述的计费处理装置,其中,所述计费处理装置分别设置于第一计费设备、第二计费设备和第三计费设备中,所述第二计费设备的数量为一个或多个;The charging processing device according to claim 12, wherein the charging processing device is respectively disposed in the first charging device, the second charging device, and the third charging device, where the second charging device The quantity is one or more;
    所述添加模块是设置为在所述接收模块接收到的通信请求消息中加入所述计费处理装置所属计费设备的AVPP,以及所述发送模块是设置为转发所述添加模块处理后的通信请求消息,包括:The adding module is configured to add an AVPP of the charging device to which the charging processing device belongs in the communication request message received by the receiving module, and the sending module is configured to forward the communication after the adding module is processed. Request message, including:
    设置于所述第一计费设备的添加模块,是设置为在接收到第一通信设备发送的通信请求消息后,在所述通信请求消息中加入所述第一计费设备的AVPP;The adding module of the first charging device is configured to add the AVPP of the first charging device to the communication request message after receiving the communication request message sent by the first communication device;
    设置于所述第一计费设备的发送模块,是设置为向所述第二计费设备发送所述添加模块处理后的通信请求消息;The sending module of the first charging device is configured to send the communication request message processed by the adding module to the second charging device;
    设置于所述第二计费设备的添加模块,是设置为在接收到上一跳计费设备发送的通信请求消息后,在所述通信请求消息中加入所述第二计费设备的AVPP,并设置所述上一跳计费设备的公共计费字段的优先级信息,其中,所述上一跳计费设备为所述第一计费设备或上一跳第二计费设备;The adding module of the second charging device is configured to add the AVPP of the second charging device to the communication request message after receiving the communication request message sent by the last hop charging device. And setting the priority information of the public charging field of the last hop charging device, where the last hop charging device is the first charging device or the last hop second charging device;
    设置于所述第二计费设备的发送模块,是设置为向下一跳第二计费设备或所述第三计费设备发送所述添加模块处理后的通信请求消息;The sending module of the second charging device is configured to send the communication request message processed by the adding module to the next hop second charging device or the third charging device;
    设置于所述第三计费设备的添加模块,是设置为在接收到上一跳第二计费设备发送的通信请求消息后,在所述通信请求消息中加入所述第三计费设 备的AVPP,设置所述上一跳第二计费设备的公共计费字段的优先级信息;The adding module of the third charging device is configured to add the third charging device to the communication request message after receiving the communication request message sent by the second charging device of the last hop The AVPP of the standby device sets the priority information of the public charging field of the second charging device of the last hop;
    设置于所述第三计费设备的发送模块,是设置为向第二通信设备发送删除全部AVPP的通信请求消息。The sending module disposed in the third charging device is configured to send a communication request message for deleting all AVPPs to the second communication device.
  14. 根据权利要求11~13中任一项所述的计费处理装置,其中,添加模块,是设置为通过如下方式实现在所述接收模块接收到的通信请求消息中加入所述计费处理装置所属计费设备的AVPP:The charging processing device according to any one of claims 11 to 13, wherein the adding module is configured to add the charging request device to which the communication request message received by the receiving module belongs AVPP for billing equipment:
    在所述接收模块接收到的通信请求消息的头域中加入优先级参数,并将所述计费处理装置所属计费设备的AVPP携带在所述优先级参数中。Adding a priority parameter to a header field of the communication request message received by the receiving module, and carrying an AVPP of the charging device to which the charging processing device belongs is carried in the priority parameter.
  15. 一种计费处理装置,设置于网络协议IP多媒体子系统IMS的话单设备中,所述计费处理装置包括:A billing processing device is provided in a bill device of the network protocol IP multimedia subsystem IMS, and the billing processing device includes:
    接收模块,设置为接收每一跳计费设备发送的包括计费字段优先级信息AVPP的计费请求消息ACR;其中,每个所述ACR中的AVPP为发送所述ACR的计费设备在接收到的通信请求消息中加入的所述计费设备的AVPP,所加入的AVPP包括所述计费设备的公共计费字段的优先级信息和私有计费字段的优先级信息;a receiving module, configured to receive an accounting request message ACR including a charging field priority information AVPP sent by each hop charging device, where the AVPP in each of the ACRs is receiving the charging device that sends the ACR The AVPP of the charging device added to the incoming communication request message includes the priority information of the public charging field of the charging device and the priority information of the private charging field;
    合并计费模块,设置为根据所述接收模块接收的每个ACR,以及IMS计费标识ICID、计费主体标识和每个AVPP进行合并计费。The combined charging module is configured to perform combined charging according to each ACR received by the receiving module, and an IMS charging identifier ICID, a charging subject identifier, and each AVPP.
  16. 根据权利要求15所述的计费处理装置,其中,所加入的AVPP中的公共计费字段的优先级信息在下一跳计费设备接收到通信请求消息后进行设置。The charge processing apparatus according to claim 15, wherein the priority information of the common charge field in the joined AVPP is set after the next hop charging device receives the communication request message.
  17. 根据权利要求16所述的计费处理装置,其中,所述计费设备包括第一计费设备、第二计费设备和第三计费设备,所述第二计费设备的数量为一个或多个;The charging processing device according to claim 16, wherein the charging device comprises a first charging device, a second charging device, and a third charging device, and the number of the second charging devices is one or Multiple
    所述第一计费设备发送的ACR中的AVPP为,所述第一计费设备在接收到第一通信设备发送的通信请求消息后,在所述通信请求消息中加入的所述第一计费设备的AVPP;The AVPP in the ACR sent by the first charging device is the first meter added by the first charging device to the communication request message after receiving the communication request message sent by the first communication device. AVPP for fee equipment;
    所述第二计费设备发送的ACR中的AVPP为,所述第二计费设备在接收到上一跳计费设备发送的通信请求消息后,在所述通信请求消息中加入的所 述第二计费设备的AVPP,以及所述第二计费设备设置后的所述上一跳计费设备的公共计费字段的优先级信息,其中,所述上一跳计费设备为所述第一计费设备或上一跳第二计费设备;The AVPP in the ACR sent by the second charging device is a location that is added to the communication request message after the second charging device receives the communication request message sent by the last hop charging device. The AVPP of the second charging device, and the priority information of the public charging field of the last hop charging device after the second charging device is set, wherein the last hop charging device is The first charging device or the second hop second charging device;
    所述第三计费设备发送的ACR中的AVPP为,所述第三计费设备在接收到上一跳第二计费设备发送的通信请求消息后,在所述通信请求消息中加入的所述第三计费设备的AVPP,以及所述第三计费设备设置后的所述上一跳第二计费设备的公共计费字段。The AVPP in the ACR sent by the third charging device is the location that the third charging device joins in the communication request message after receiving the communication request message sent by the second charging device of the last hop. The AVPP of the third charging device and the public charging field of the second charging device of the last hop after the third charging device is set.
  18. 根据权利要求15所述的计费处理装置,其中,所述合并计费模块包括:The billing processing device of claim 15, wherein the consolidated billing module comprises:
    数据生成单元,设置为根据所述接收模块接收到的每个ACR生成对应于每个所述计费设备的计费数据记录CDR;a data generating unit, configured to generate, according to each ACR received by the receiving module, a charging data record CDR corresponding to each of the charging devices;
    合并计费单元,设置为将所述数据生成单元生成的每个所述CDR根据所述ICID、计费主体标识和每个所述AVPP进行合并计费,所生成的合并计费话单中包括全部所述计费设备中优先级最高的公共计费字段和每个所述计费设备的私有计费字段。And the combined charging unit is configured to combine the charging of each of the CDRs generated by the data generating unit according to the ICID, the charging entity identifier, and each of the AVPPs, and the generated consolidated charging bill includes The public charging field with the highest priority among all the charging devices and the private charging field of each charging device.
  19. 根据权利要求18所述的计费处理装置,其中,当至少两个所述AVPP中的公共计费字段的最高优先级相同时,所述合并计费话单中包括所述话单设备先获取到的优先级最高的公共计费字段和每个所述计费设备的私有计费字段。The charging processing apparatus according to claim 18, wherein when the highest priority of the common charging field in the at least two of the AVPPs is the same, the consolidated charging bill includes the billing device first acquiring The highest priority public charging field to and the private charging field of each of the charging devices.
  20. 根据权利要求15~19中任一项所述的计费处理装置,其中,每个所述ACR中的AVPP为,发送所述ACR的计费设备在接收到的通信请求消息的头域中加入优先级参数,并在所述优先级参数中加入的所述计费设备的AVPP。The charge processing device according to any one of claims 15 to 19, wherein the AVPP in each of the ACRs is that the charging device that transmits the ACR joins in a header field of the received communication request message a priority parameter, and an AVPP of the charging device added in the priority parameter.
  21. 一种计费系统,包括:分别设置于网络协议IP多媒体子系统IMS中业务层、控制层、接入层的计费设备和计费话单,每个所述计费设备中设置有如上述权利要求11至15中任一项所述的计费处理装置,所述计费话单中设置有如上述权利要求16至20中任一项所述的计费处理装置。 A billing system includes: a billing device and a billing bill respectively set in a service layer, a control layer, and an access layer of the network protocol IP multimedia subsystem IMS, and each of the billing devices has the foregoing rights The charge processing device according to any one of claims 11 to 15, wherein the charge CDR is provided with the charge processing device according to any one of claims 16 to 20.
PCT/CN2016/091567 2015-12-16 2016-07-25 Method and device for charging processing and charging system WO2017101443A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510943441.XA CN106888101A (en) 2015-12-16 2015-12-16 A kind of charge processing method, device and charge system
CN201510943441.X 2015-12-16

Publications (1)

Publication Number Publication Date
WO2017101443A1 true WO2017101443A1 (en) 2017-06-22

Family

ID=59055634

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/091567 WO2017101443A1 (en) 2015-12-16 2016-07-25 Method and device for charging processing and charging system

Country Status (2)

Country Link
CN (1) CN106888101A (en)
WO (1) WO2017101443A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2574731A (en) * 2018-06-15 2019-12-18 Metaswitch Networks Ltd Data processing
CN114785625A (en) * 2022-03-03 2022-07-22 阿里巴巴(中国)有限公司 Call bill charging processing method, device and system

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110493016B (en) * 2018-05-15 2022-04-29 中国移动通信集团浙江有限公司 Flow service charging method and device
CN114245330B (en) * 2021-11-17 2024-04-02 中国联合网络通信集团有限公司 Method, apparatus, device, computer readable storage medium and product for bill merging

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127612A (en) * 2007-09-24 2008-02-20 中兴通讯股份有限公司 Consolidation method for manifold billing data records in IP multimedia sub-system
CN101227299A (en) * 2007-01-17 2008-07-23 华为技术有限公司 Method, system and device for implementing charging data function
CN101621780A (en) * 2008-07-04 2010-01-06 中兴通讯股份有限公司 Off-line roam charging method for IP multimedia subsystem
CN103107894A (en) * 2011-11-10 2013-05-15 中兴通讯股份有限公司 Accounting associating method and system
CN104348632A (en) * 2013-07-23 2015-02-11 中兴通讯股份有限公司 Timing processing method and device, and charging trigger functional entity

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227299A (en) * 2007-01-17 2008-07-23 华为技术有限公司 Method, system and device for implementing charging data function
CN101127612A (en) * 2007-09-24 2008-02-20 中兴通讯股份有限公司 Consolidation method for manifold billing data records in IP multimedia sub-system
CN101621780A (en) * 2008-07-04 2010-01-06 中兴通讯股份有限公司 Off-line roam charging method for IP multimedia subsystem
CN103107894A (en) * 2011-11-10 2013-05-15 中兴通讯股份有限公司 Accounting associating method and system
CN104348632A (en) * 2013-07-23 2015-02-11 中兴通讯股份有限公司 Timing processing method and device, and charging trigger functional entity

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ERICSSON: "Definition of AVPs for Announcement service", 3GPP TSG-SA5 MEETING #104 , S5-156288, 20 November 2015 (2015-11-20), XP051016748 *
JESSKE, R. ET AL.: "Private Header (P-Header) Extensions to the Session Initiation Protocol (SIP) for the 3GPP", INTERNET ENGINEERING TASK FORCE (IETF, 31 July 2014 (2014-07-31), pages 1 - 43, XP015104411, ISSN: 2070-1721 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2574731A (en) * 2018-06-15 2019-12-18 Metaswitch Networks Ltd Data processing
US10855850B2 (en) 2018-06-15 2020-12-01 Metaswitch Networks Ltd. Data processing
CN114785625A (en) * 2022-03-03 2022-07-22 阿里巴巴(中国)有限公司 Call bill charging processing method, device and system
CN114785625B (en) * 2022-03-03 2023-09-26 阿里巴巴(中国)有限公司 Method, device and system for processing bill charging

Also Published As

Publication number Publication date
CN106888101A (en) 2017-06-23

Similar Documents

Publication Publication Date Title
JP6526082B2 (en) Funding a mobile session with another mobile station in a wireless network
JP6368042B2 (en) CDF tracking for offline charging
JP5732550B2 (en) Method, system, and computer-readable medium for enhancing Diameter signaling messages
WO2017101443A1 (en) Method and device for charging processing and charging system
KR20110042102A (en) Online charging correlation in ims networks
US10237417B2 (en) Routing of diameter protocol messages based on a subscriber policy
US9161199B1 (en) Override of distribution algorithms for an offline charging system
KR20120123179A (en) Distributive correlation of charging records across network domains
JP5851986B2 (en) Method and apparatus for use in an IP multimedia subsystem
JP2018521524A (en) Method and system for generating call detail records for billing systems
US9467301B2 (en) Network interface utilization dependent charging determination
US20150229778A1 (en) Offline charging for rich communication services (rcs)
JP6479978B2 (en) Handling of reduced partial CDRs in an off-line billing system
WO2011047568A1 (en) Method and device for sending charging data recording
CN106507382B (en) Diameter message routing method and routing agent node
US8787407B2 (en) Processing messages correlated to multiple potential entities
KR100621201B1 (en) Method and system for collecting billing data in Push-To-Talk service
WO2012106881A1 (en) Charging method, network access device and core network device
KR100621200B1 (en) Method and system for collecting billing data in instant messaging service
US10104604B2 (en) S9 roaming session destination selection
WO2016062141A1 (en) Association method and apparatus for network element charging information in ip multimedia subsystem
WO2022262608A1 (en) Billing method, user equipment and network-side device
WO2014026624A1 (en) Method and device for obtaining subscription information

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16874504

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16874504

Country of ref document: EP

Kind code of ref document: A1