





技术领域technical field
本申请实施例涉及计费技术领域,尤其涉及一种计费方法、装置、设备及存储介质。The embodiments of the present application relate to the technical field of charging, and in particular, to a charging method, apparatus, device, and storage medium.
背景技术Background technique
随着移动互联网速率加快,业务快速发展,以及线业务的流行,用户使用手机流量成了公众必不可少的资源,流量消费成为用户通信消费的最主流业务。With the acceleration of mobile Internet speed, the rapid development of services, and the popularity of online services, the use of mobile phone traffic by users has become an indispensable resource for the public, and traffic consumption has become the most mainstream service for user communication consumption.
在当前的电信网络中,目前手机用户在网元交换侧签约属性分为两种:单一后付费、单一预付费两种。其中:预付费(OCS):需要将语音,短彩信、上网的签约属性全部都设置成预付费,目的是用户使用所有业务的时,是可以实时上报消息进行实时计费;另外一种后付费需要将用户所有业务签约属性都设置为后付费,先允许用户使用业务,然后根据使用离线话单进行计费。但是后付费用户不依赖专门的智能设备,但计费时效性较差;预付费用户计费时效性较高,但需要较高的智能软件和硬件设备投资。In the current telecommunication network, there are currently two types of subscription attributes for mobile phone users on the network element switching side: single post-payment and single pre-payment. Among them: Prepaid (OCS): It is necessary to set the subscription attributes of voice, SMS and MMS, and Internet access to prepaid. The purpose is that when users use all services, they can report messages in real time for real-time billing; another postpaid It is necessary to set all service subscription attributes of the user to post-paid, first allow the user to use the service, and then charge according to the offline CDR. However, postpaid users do not rely on special smart devices, but the billing timeliness is poor; prepaid users have high billing timeliness, but require higher investment in smart software and hardware equipment.
因此,现有技术无法满足即保持主流的数据业务(即流量业务)消费的时效性,又同时减少智能设备的投资。Therefore, the prior art cannot satisfy the timeliness of consumption of mainstream data services (ie, traffic services), and at the same time reduce investment in smart devices.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供一种计费方法、装置、设备及存储介质,以克服现有技术中无法满足即保持主流的数据业务消费的时效性,又同时减少智能设备的投资的问题。Embodiments of the present application provide a charging method, apparatus, device, and storage medium to overcome the problem that the prior art cannot satisfy the timeliness of mainstream data service consumption while simultaneously reducing investment in smart devices.
第一方面,本申请实施例提供一种计费方法,包括:In a first aspect, an embodiment of the present application provides a charging method, including:
响应于接收到的属性分离请求,获取目标用户使用的业务和目标用户当前的签约属性,所述当前的签约属性包括后付费属性或预付费属性;In response to the received attribute separation request, obtain the service used by the target user and the current subscription attribute of the target user, where the current subscription attribute includes a postpaid attribute or a prepaid attribute;
根据目标用户使用的业务,对所述目标用户当前的签约属性进行属性分离,得到所述目标用户使用的业务对应的分离后的签约属性,所述分离后的签约属性包括后付费属性和预付费属性;According to the service used by the target user, attribute separation is performed on the current subscription attribute of the target user, and the separated subscription attribute corresponding to the service used by the target user is obtained, and the separated subscription attribute includes post-paid attribute and pre-paid attribute Attributes;
根据所述分离后的签约属性,对所述目标用户使用的业务采用相应的计费方式进行计费。According to the separated subscription attribute, the service used by the target user is charged in a corresponding charging manner.
在一种可能的设计中,所述目标用户使用的业务包括语音业务、短彩信业务、上网数据业务;In a possible design, the services used by the target user include voice services, SMS and MMS services, and Internet data services;
所述根据目标用户使用的业务,对所述目标用户当前的签约属性进行属性分离,得到所述目标用户使用的业务对应的分离后的签约属性,包括:According to the service used by the target user, attribute separation is performed on the current subscription attribute of the target user, and the separated subscription attribute corresponding to the service used by the target user is obtained, including:
若所述当前的签约属性为后付费属性,则将所述当前的签约属性作为所述语音业务和短彩信业务对应的分离后的签约属性,并将所述预付费属性作为所述上网数据业务对应的分离后的签约属性;If the current subscription attribute is a postpaid attribute, the current subscription attribute is used as the separated subscription attribute corresponding to the voice service and the SMS and MMS service, and the prepaid attribute is used as the Internet data service Corresponding detached signing attributes;
若所述当前的签约属性为预付费属性,则将所述当前的签约属性作为所述上网数据业务对应的分离后的签约属性,并将所述后付费属性作为所述语音业务和短彩信业务对应的分离后的签约属性。If the current subscription attribute is a prepaid attribute, the current subscription attribute is used as the separated subscription attribute corresponding to the Internet data service, and the postpaid attribute is used as the voice service and SMS/MMS service The corresponding detached signing attribute.
在一种可能的设计中,所述根据所述分离后的签约属性,对所述目标用户使用的业务采用相应的计费方式进行计费,包括:In a possible design, according to the separated subscription attribute, the service used by the target user is charged in a corresponding charging manner, including:
根据所述目标用户对应的所述分离后的签约属性,采用后付费计费方式对所述目标用户当前使用的业务中属于后付费属性的第一业务进行费用计算和扣除,所述第一业务包括语音业务、短彩信业务;According to the separated subscription attribute corresponding to the target user, a post-paid charging method is used to calculate and deduct the first service belonging to the post-paid attribute among the services currently used by the target user, and the first service Including voice service, SMS and MMS service;
根据所述目标用户对应的所述分离后的签约属性,采用实时计费方式对所述目标用户当前使用的业务中属于预付费属性的第二业务进行费用计算和扣除,所述第二业务为上网数据业务。According to the separated subscription attribute corresponding to the target user, the real-time charging method is used to calculate and deduct the second service belonging to the prepaid attribute among the services currently used by the target user, where the second service is: Internet data service.
在一种可能的设计中,获取所述目标用户当前的签约属性,包括:In a possible design, acquiring the current subscription attributes of the target user, including:
获取所述目标用户使用的业务中的语音业务对应的签约属性,若所述目标用户使用的业务中的语音业务对应的签约属性为后付费属性,则确定所述目标用户当前的签约属性为后付费属性;Obtain the subscription attribute corresponding to the voice service in the service used by the target user, and if the subscription attribute corresponding to the voice service in the service used by the target user is a postpaid attribute, determine that the current subscription attribute of the target user is a postpaid attribute. paid attributes;
若所述目标用户使用的业务中的语音业务对应的签约属性为预付费属性,则确定所述目标用户当前的签约属性为预付费属性。If the subscription attribute corresponding to the voice service in the service used by the target user is a prepaid attribute, it is determined that the current subscription attribute of the target user is a prepaid attribute.
在一种可能的设计中,签约属性分离后的目标用户使用的业务支持在漫游目标地区采用后付费属性对应的计费方式进行计费;In a possible design, the service used by the target user after the subscription attribute is separated supports charging in the roaming target area using the charging method corresponding to the postpaid attribute;
所述漫游目标地区为支持后付费方式计费的地区、支持预付费方式计费的地区或既支持后付费方式又支持预付费方式计费的地区。The roaming target area is an area that supports post-paid charging, an area that supports pre-paid charging, or an area that supports both post-paid and pre-paid charging.
在一种可能的设计中,所述方法还包括:In a possible design, the method further includes:
若接收到登网鉴权请求,则根据登网鉴权请求中携带的用户标识,查询所述用户标识对应的待鉴权用户的第一签约属性和所述待鉴权用户是否开通漫游权限,并返回所述第一签约属性和是否开通漫游权限的结果。If receiving a login authentication request, according to the user ID carried in the login authentication request, query the first subscription attribute of the user to be authenticated corresponding to the user ID and whether the user to be authenticated has roaming rights enabled, And return the first subscription attribute and the result of whether to activate the roaming right.
第二方面,本申请实施例提供一种计费装置,包括:In a second aspect, an embodiment of the present application provides a charging device, including:
获取模块,用于响应于接收到的属性分离请求,获取目标用户使用的业务和目标用户当前的签约属性,所述当前的签约属性包括后付费属性或预付费属性;an acquisition module, configured to acquire the service used by the target user and the current contract attribute of the target user in response to the received attribute separation request, where the current contract attribute includes a post-paid attribute or a pre-paid attribute;
属性分离模块,用于根据目标用户使用的业务,对所述目标用户当前的签约属性进行属性分离,得到所述目标用户使用的业务对应的分离后的签约属性,所述分离后的签约属性包括后付费属性和预付费属性;an attribute separation module, configured to perform attribute separation on the current subscription attribute of the target user according to the service used by the target user, and obtain the separated subscription attribute corresponding to the service used by the target user, and the separated subscription attribute includes: Postpaid and prepaid properties;
计费模块,用于根据所述分离后的签约属性,对所述目标用户使用的业务采用相应的计费方式进行计费。and a charging module, configured to charge the service used by the target user in a corresponding charging manner according to the separated subscription attribute.
在一种可能的设计中,所述目标用户使用的业务包括语音业务、短彩信业务、上网数据业务;In a possible design, the services used by the target user include voice services, SMS and MMS services, and Internet data services;
属性分离模块,具体用于:在所述当前的签约属性为后付费属性时,将所述当前的签约属性作为所述语音业务和短彩信业务对应的分离后的签约属性,并将所述预付费属性作为所述上网数据业务对应的分离后的签约属性;The attribute separation module is specifically configured to: when the current subscription attribute is a postpaid attribute, take the current subscription attribute as the separated subscription attribute corresponding to the voice service and the SMS and MMS service, and separate the prepaid subscription attribute The fee attribute is used as the separated subscription attribute corresponding to the Internet data service;
在所述当前的签约属性为预付费属性时,将所述当前的签约属性作为所述上网数据业务对应的分离后的签约属性,并将所述后付费属性作为所述语音业务和短彩信业务对应的分离后的签约属性。When the current subscription attribute is a prepaid attribute, the current subscription attribute is used as the separated subscription attribute corresponding to the Internet data service, and the postpaid attribute is used as the voice service and the SMS/MMS service The corresponding detached signing attribute.
第三方面,本申请实施例提供一种计费设备,包括:至少一个处理器和存储器;In a third aspect, an embodiment of the present application provides a charging device, including: at least one processor and a memory;
所述存储器存储计算机执行指令;the memory stores computer-executable instructions;
所述至少一个处理器执行所述存储器存储的计算机执行指令,使得所述至少一个处理器执行如上第一方面及第一方面可能的设计所述的计费方法。The at least one processor executes the computer-implemented instructions stored in the memory, causing the at least one processor to perform the charging method as described in the first aspect and possible designs of the first aspect above.
第四方面,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上第一方面及第一方面可能的设计所述的计费方法。In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when a processor executes the computer-executable instructions, the first aspect and the first Aspects of possible designs for the described billing method.
本实施例提供的计费方法、装置、设备及存储介质,首先响应于接收到的属性分离请求,获取目标用户使用的业务和目标用户当前的签约属性,其中,所述当前的签约属性包括后付费属性或预付费属性;然后根据目标用户使用的业务,对所述目标用户当前的签约属性进行属性分离,得到所述目标用户使用的业务对应的分离后的签约属性,这里分离后的签约属性包括后付费属性和预付费属性,说明经过属性分离后,由单一性付费属性转化为多元性付费属性,再根据所述分离后的签约属性,对所述目标用户使用的业务采用相应的计费方式进行计费,这样被分离属性的用户即支持后付费计费方式也支持预付费计费方式,根据用户使用的业务采用相应的计费方式进行计费因此,即保持主流的数据业务(即流量业务)消费的时效性,又同时减少智能设备的投资,提高了用户体验。The charging method, device, device, and storage medium provided by this embodiment firstly, in response to the received attribute separation request, acquires the service used by the target user and the current subscription attribute of the target user, wherein the current subscription attribute includes the following Paid attribute or prepaid attribute; then, according to the service used by the target user, attribute separation is performed on the current subscription attribute of the target user to obtain the separated subscription attribute corresponding to the service used by the target user, here the separated subscription attribute Including post-payment attributes and pre-payment attributes, indicating that after attribute separation, the single-payment attribute is converted into a multiple-payment attribute, and then according to the separated contract attribute, the service used by the target user is billed accordingly In this way, users with separated attributes support both post-paid charging and pre-paid charging. According to the services used by the users, the corresponding charging methods are used for charging. Therefore, the mainstream data services (ie. It also reduces the investment in smart devices and improves the user experience.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following will briefly introduce the accompanying drawings used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present application, and for those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1为本申请实施例提供的计费系统的场景示意图;FIG. 1 is a schematic diagram of a scenario of a charging system provided by an embodiment of the present application;
图2为本申请实施例提供的计费方法的流程示意图;2 is a schematic flowchart of a charging method according to an embodiment of the present application;
图3为本申请另一实施例提供的计费方法的流程示意图;3 is a schematic flowchart of a charging method provided by another embodiment of the present application;
图4为本申请又一实施例提供的计费方法的流程示意图;FIG. 4 is a schematic flowchart of a charging method provided by another embodiment of the present application;
图5为本申请实施例提供的计费装置的结构示意图;FIG. 5 is a schematic structural diagram of a charging apparatus provided by an embodiment of the present application;
图6为本申请实施例提供的计费设备的结构示意图。FIG. 6 is a schematic structural diagram of a charging device according to an embodiment of the present application.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例,例如能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if any) in the description and claims of this application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to Describe a particular order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the application described herein, for example, can be implemented in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having" and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.
在当前的电信网络中,按手机用户类型可以只能分为两类,其一是单一后付费用户,另外一种是单一预付费用户。后付费用户不依赖专门投资的智能设备,但计费时效性较差;预付费用户计费时效性较高,但需要较高的智能软件和硬件设备投资。随着移动互联网速率加快,4G业务快速发展,网购、订餐等在线业务的流行,用户使用手机流量成了公众必不可少的资源,流量消费成为用户通信消费的最主流业务。但是,随着用户流量需求日益增多,传统的计费方式是用户使用上网业务的过程中,由网元定时或者定量的输出话单,数据话单再经过采集—分拣—批价—累帐后触发短信提醒。整个处理流程较长,一定程度上影响了短信下发的时间,话单延迟约为15分钟,提醒延迟客户体验较差,停机延迟带来较大额度的欠费。现有系统采用传统离线文件的计费模式,满足不了5G流量业务的快速发展以及用户对使用量和费用提醒的高实时性的要求。因此,现有技术无法满足即保持主流的数据业务(即流量业务)消费的时效性,又同时减少智能设备的投资。In the current telecommunication network, there are only two types of mobile phone users, one is a single post-paid user, and the other is a single pre-paid user. Postpaid users do not rely on specially invested smart equipment, but the billing time is poor; prepaid users have high billing timeliness, but require higher investment in smart software and hardware equipment. With the acceleration of mobile Internet speed, the rapid development of 4G services, and the popularity of online services such as online shopping and meal ordering, the use of mobile phone traffic by users has become an indispensable resource for the public, and traffic consumption has become the most mainstream business for user communication consumption. However, with the increasing demand for user traffic, the traditional billing method is that during the process of users using Internet services, the network element regularly or quantitatively outputs the bills, and the data bills are collected, sorted, priced, and accumulated. Trigger a text message reminder. The entire processing process is long, which affects the delivery time of the SMS to a certain extent. The delay of the bill is about 15 minutes, which reminds the delayed customer experience to be poor, and the delay of downtime brings a large amount of arrears. The existing system adopts the traditional offline file charging mode, which cannot meet the rapid development of 5G traffic services and the high real-time requirements of users for usage and cost reminders. Therefore, the prior art cannot satisfy the timeliness of consumption of mainstream data services (ie, traffic services), and at the same time reduce investment in smart devices.
为了解决上述问题,本申请的技术构思是采用属性分离的方法将用户的分组域用户属性设置成预付费属性,以便能发送实时消息及时计费;同时将用户的电路属性设置成后付费属性,减少了公司的智能设备投资,基于分离后的属性,为用户使用的业务提供相应的计费方式,满足用户需求,提高用户体验。In order to solve the above problems, the technical concept of the present application is to use the method of attribute separation to set the user attribute of the group domain user to the prepaid attribute, so that the real-time message can be sent for timely charging; at the same time, the circuit attribute of the user is set to the postpaid attribute, It reduces the company's investment in intelligent equipment, and provides corresponding billing methods for the services used by users based on the separated attributes to meet user needs and improve user experience.
下面以具体地实施例对本申请的技术方案进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。The technical solutions of the present application will be described in detail below with specific examples. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
参考图1,图1为本申请实施例提供的计费系统的场景示意图。在实际应用中,计费系统可以包括业务平台10和归属签约用户服务器20。业务平台用于根据用户的业务需求,办理相应的业务,获取办理业务所需信息,然后将办理的业务信息发送至相应的网元,执行相应的操作,将办理的业务落地。针对用户办理签约属性,这里的网元可以是归属签约用户服务器,业务平台在获取到信息后,触发属性分离请求,将获取到的信息发送给归属签约用户服务器,归属签约用户服务器从业务平台获取到信息后,这里的信息可以包括该用户使用的业务和该用户当前的签约属性,对目标用户当前的签约属性进行分离,使得用户当前的签约属性不再是单一签约属性,可以是不同的业务对应不同的签约属性,然后对目标用户使用的业务采用相应的计费方式进行计费。其中,这里的用户为支持签约属性分离的用户即目标用户(该目标用户为支持签约属性分离的用户)。Referring to FIG. 1 , FIG. 1 is a schematic diagram of a scenario of a charging system provided by an embodiment of the present application. In practical applications, the charging system may include a
因此,按业务需要,将用户属性进行了分离,即:将用户感知最明显的数据上网(PS域)属性设置成预付费属性,以便能发送实时消息及时计费。而将CS域语音短信还保持后付费属性。也就是说一个移网用户的属性是2个属性,不是单一属性。即使得主流的流量业务消费继续保持时效性,又同时减少运营商等对智能设备的投资。Therefore, user attributes are separated according to business needs, that is, the most obvious data surfing (PS domain) attribute perceived by users is set as a prepaid attribute, so that real-time messages can be sent and billed in time. And the CS domain voice SMS still maintains the postpaid attribute. That is to say, the attributes of a mobile network user are two attributes, not a single attribute. Even if the mainstream traffic service consumption continues to maintain timeliness, it also reduces the investment of operators and other smart devices.
具体地,如何实现对计费的,参见图2所示,图2为本申请实施例提供的计费方法的流程示意图。Specifically, for how to implement charging, see FIG. 2 , which is a schematic flowchart of a charging method provided by an embodiment of the present application.
参见图2,所述计费方法,包括:Referring to Figure 2, the charging method includes:
S201、响应于接收到的属性分离请求,获取目标用户使用的业务和目标用户当前的签约属性,所述当前的签约属性包括后付费属性或预付费属性。S201. In response to the received attribute separation request, obtain a service used by a target user and a current subscription attribute of the target user, where the current subscription attribute includes a post-paid attribute or a pre-paid attribute.
本实施例中,该方法的执行主体是网元或归属签约用户服务器(Home SubscriberServer,HSS)。若用户在前端比如业务平台办理属性分离业务,由业务平台进行信息录入或更改信息,然后将属性分离属性请求发送给网元或归属签约用户服务器,网元或归属签约用户服务器接收到属性分离请求后,根据属性分离请求,获取用于执行签约属性分离的信息,比如目标用户使用的业务和目标用户当前的签约属性,这里的目标用户可以为支持属性分离的用户,当前的签约属性为后付费属性或预付费属性,即单一性属性。In this embodiment, the execution subject of the method is a network element or a home subscriber server (Home Subscriber Server, HSS). If the user handles the attribute separation service at the front end, such as the service platform, the service platform performs information entry or changes information, and then sends the attribute separation attribute request to the network element or the home subscriber server, and the network element or the home subscriber server receives the attribute separation request. Then, according to the attribute separation request, obtain the information used to perform the subscription attribute separation, such as the service used by the target user and the current subscription attribute of the target user, where the target user can be a user that supports attribute separation, and the current subscription attribute is postpaid Attributes or prepaid attributes, i.e. a single attribute.
在一种可能的设计中,如何确定目标用户当前的签约属性,可以通过以下步骤实现:In a possible design, how to determine the current subscription attributes of the target user can be implemented through the following steps:
步骤a1、获取所述目标用户使用的业务中的语音业务对应的签约属性,若所述目标用户使用的业务中的语音业务对应的签约属性为后付费属性,则确定所述目标用户当前的签约属性为后付费属性。Step a1, acquiring the subscription attribute corresponding to the voice service in the service used by the target user, if the subscription attribute corresponding to the voice service in the service used by the target user is a postpaid attribute, then determine the current subscription of the target user. Attributes are postpaid attributes.
步骤a2、若所述目标用户使用的业务中的语音业务对应的签约属性为预付费属性,则确定所述目标用户当前的签约属性为预付费属性。Step a2: If the subscription attribute corresponding to the voice service in the service used by the target user is a prepaid attribute, determine that the current subscription attribute of the target user is a prepaid attribute.
本实施例中,获取目标用户当前的签约属性可以通过获取目标用户使用的业务中的语音业务对应的签约属性,然后基于用户CS域(即语音)属性(即语音业务对应的签约属性)判断目标用户的属性。In this embodiment, the current subscription attribute of the target user can be obtained by acquiring the subscription attribute corresponding to the voice service in the services used by the target user, and then judging the target based on the user CS domain (ie, voice) attribute (ie, the subscription attribute corresponding to the voice service). properties of the user.
具体地,若所述目标用户使用的业务中的语音业务对应的签约属性为后付费属性,则确定所述目标用户当前的签约属性为后付费属性;若所述目标用户使用的业务中的语音业务对应的签约属性为预付费属性,则确定所述目标用户当前的签约属性为预付费属性。Specifically, if the subscription attribute corresponding to the voice service in the service used by the target user is a postpaid attribute, the current subscription attribute of the target user is determined to be a postpaid attribute; if the voice service in the service used by the target user is a postpaid attribute If the subscription attribute corresponding to the service is a prepaid attribute, it is determined that the current subscription attribute of the target user is a prepaid attribute.
S202、根据目标用户使用的业务,对所述目标用户当前的签约属性进行属性分离,得到所述目标用户使用的业务对应的分离后的签约属性,所述分离后的签约属性包括后付费属性和预付费属性。S202. According to the service used by the target user, perform attribute separation on the current subscription attribute of the target user, and obtain a separated subscription attribute corresponding to the service used by the target user, where the separated subscription attribute includes a postpaid attribute and Prepaid properties.
本实施例中,根据目标用户使用的不同业务来具体配置不同的签约属性。具体地,将用户的分组域用户属性设置成预付费属性即将用户感知最明显的数据上网(PS域)属性设置成预付费属性,保证了用户主流业务计费时效性;同时将用户的电路属性设置成后付费属性即将CS域语音短信还保持后付费,减少了公司的智能设备投资。In this embodiment, different subscription attributes are specifically configured according to different services used by the target user. Specifically, setting the user attribute of the user's grouping domain to the prepaid attribute means setting the most obvious data surfing (PS domain) attribute perceived by the user to the prepaid attribute, which ensures the timeliness of charging for mainstream services of the user; meanwhile, the circuit attribute of the user is set to the prepaid attribute Setting the postpaid attribute means that the CS domain voice SMS will remain postpaid, which reduces the company's investment in smart equipment.
S203、根据所述分离后的签约属性,对所述目标用户使用的业务采用相应的计费方式进行计费。S203. According to the separated subscription attribute, use a corresponding charging method to perform charging for the service used by the target user.
本实施例中,根据不同的签约属性,对相应的业务采用不同的计费方式。具体地,针对后付费属性,对相应的语音、短彩信业务采用后付费计费方式;针对预付费属性,对相应的数据业务(即上网数据业务或流量数据业务)采用后付费计费方式。In this embodiment, according to different subscription attributes, different charging modes are adopted for corresponding services. Specifically, for the post-paid attribute, the post-paid charging method is adopted for the corresponding voice, SMS and MMS services; for the pre-paid attribute, the post-paid charging method is adopted for the corresponding data service (ie, Internet data service or traffic data service).
本申请提供的计费方法,可以通过响应于接收到的属性分离请求,获取目标用户使用的业务和目标用户当前的签约属性,其中,所述当前的签约属性包括后付费属性或预付费属性;然后根据目标用户使用的业务,对所述目标用户当前的签约属性进行属性分离,得到所述目标用户使用的业务对应的分离后的签约属性,这里分离后的签约属性包括后付费属性和预付费属性,说明经过属性分离后,由单一性付费属性转化为多元性付费属性,再根据所述分离后的签约属性,对所述目标用户使用的业务采用相应的计费方式进行计费,这样被分离属性的用户即支持后付费计费方式也支持预付费计费方式,根据用户使用的业务采用相应的计费方式进行计费因此,即保持主流的数据业务(即流量业务)消费的时效性,又同时减少智能设备的投资,提高了用户体验。The charging method provided by the present application can obtain the service used by the target user and the current subscription attribute of the target user by responding to the received attribute separation request, wherein the current subscription attribute includes a postpaid attribute or a prepaid attribute; Then, according to the service used by the target user, attribute separation is performed on the current subscription attribute of the target user, and the separated subscription attribute corresponding to the service used by the target user is obtained. Here, the separated subscription attribute includes post-paid attribute and pre-paid attribute. attribute, indicating that after attribute separation, the single payment attribute is converted into a multiple payment attribute, and then according to the separated contract attribute, the service used by the target user is billed using the corresponding charging method. Users with separation attributes support both post-paid and pre-paid billing methods, and the corresponding billing methods are used for billing according to the services used by the users. Therefore, the timeliness of consumption of mainstream data services (that is, traffic services) is maintained. , while reducing investment in smart devices and improving user experience.
如何实现签约属性分离的,可以参见3所示,图3为本申请另一实施例提供的计费方法的流程示意图,本实施在上述实施例的基础上,例如,图2所述的实施例基础上,对S202进行了详细说明。其中,所述目标用户使用的业务包括语音业务、短彩信业务、上网数据业务。How to realize the separation of subscription attributes can be referred to as shown in 3. FIG. 3 is a schematic flowchart of a charging method provided by another embodiment of the present application. This implementation is based on the above embodiment, for example, the embodiment described in FIG. 2 On the basis, S202 is described in detail. Wherein, the services used by the target users include voice services, SMS and MMS services, and Internet data services.
所述根据目标用户使用的业务,对所述目标用户当前的签约属性进行属性分离,得到所述目标用户使用的业务对应的分离后的签约属性,包括:According to the service used by the target user, attribute separation is performed on the current subscription attribute of the target user, and the separated subscription attribute corresponding to the service used by the target user is obtained, including:
S301、若所述当前的签约属性为后付费属性,则将所述当前的签约属性作为所述语音业务和短彩信业务对应的分离后的签约属性,并将所述预付费属性作为所述上网数据业务对应的分离后的签约属性。S301. If the current subscription attribute is a postpaid attribute, use the current subscription attribute as the separated subscription attribute corresponding to the voice service and the SMS and MMS service, and use the prepaid attribute as the Internet access attribute The detached subscription attribute corresponding to the data service.
S302、若所述当前的签约属性为预付费属性,则将所述当前的签约属性作为所述上网数据业务对应的分离后的签约属性,并将所述后付费属性作为所述语音业务和短彩信业务对应的分离后的签约属性。S302. If the current subscription attribute is a prepaid attribute, use the current subscription attribute as the separated subscription attribute corresponding to the Internet data service, and use the postpaid attribute as the voice service and short-term subscription attribute. The detached subscription attribute corresponding to the MMS service.
本实施例中,如果当前的签约属性为后付费属性,则保留该后付费属性作为语音业务和短彩信业务对应的分离后的签约属性即将不敏感的CS域语音、短信还保持后付费属性,将上网数据业务配置为预付费属性。如果当前的签约属性为预付费属性,则保留该预付费属性作为上网数据业务对应的分离后的签约属性即将用户感知最明显的数据上网(PS域)属性保持预付费属性,将语音业务和短彩信业务配置为后付费属性。In this embodiment, if the current subscription attribute is a post-paid attribute, the post-paid attribute is reserved as the separate subscription attribute corresponding to the voice service and the SMS and MMS service, that is, the insensitive CS domain voice and short messages will also maintain the post-paid attribute. Configure the Internet data service as a prepaid attribute. If the current subscription attribute is a prepaid attribute, the prepaid attribute is reserved as the separated subscription attribute corresponding to the Internet data service, that is, the most obvious data Internet access (PS domain) attribute perceived by the user remains the prepaid attribute, and the voice service and short-term The MMS service is configured as a postpaid attribute.
需要注意的,数据业务中2/3G网络GPRS属性和4G网络LTE属性保持一致,经过测试比对,GGSN可以支持同时出消息(上网数据消息)和话单,并且预付费和后付费目录可以区分开,确保了用户话单的一致性。It should be noted that 2/3G network GPRS attributes and 4G network LTE attributes in data services are consistent. After testing and comparison, GGSN can support simultaneous outgoing messages (Internet data messages) and bills, and prepaid and postpaid catalogs can be distinguished Enable to ensure the consistency of user bills.
如何对分离了签约属性的目标用户使用的业务进行费用计算和扣除,参见图4所示,图4为本申请又一实施例提供的计费方法的流程示意图。本实施例在上述实施例的基础上,例如,在图3所述的实施例的基础上,对S203进行了详细说明。所述根据所述分离后的签约属性,对所述目标用户使用的业务采用相应的计费方式进行计费,包括:As shown in FIG. 4, FIG. 4 is a schematic flowchart of a charging method provided by another embodiment of the present application for how to calculate and deduct fees for the services used by the target users whose subscription attributes are separated. This embodiment describes S203 in detail on the basis of the above-mentioned embodiment, for example, on the basis of the embodiment described in FIG. 3 . The charging according to the separated subscription attribute using a corresponding charging method for the service used by the target user, including:
S401、根据所述目标用户对应的所述分离后的签约属性,采用后付费计费方式对所述目标用户当前使用的业务中属于后付费属性的第一业务进行费用计算和扣除,所述第一业务包括语音业务、短彩信业务。S401. According to the separated subscription attribute corresponding to the target user, adopt a post-paid charging method to calculate and deduct a first service belonging to the post-paid attribute among the services currently used by the target user, and the first service is A service includes voice service and SMS and MMS service.
S402、根据所述目标用户对应的所述分离后的签约属性,采用实时计费方式对所述目标用户当前使用的业务中属于预付费属性的第二业务进行费用计算和扣除,所述第二业务为上网数据业务。S402. According to the separated subscription attribute corresponding to the target user, use real-time charging to calculate and deduct the second service belonging to the prepaid attribute in the services currently used by the target user, and the second service The business is Internet data business.
本实施例中,如果目标用户当前使用的业务中的第一业务属于后付费属性,比如语音业务、短彩信业务,则对目标用户当前使用的语音业务、短彩信业务采用后付费计费方式进行费用计算和扣除。具体地,针对后付费属性,采用后付费计费方法进行计费,即根据用户计费周期内所使用业务产生业务话单,通过后付费计费系统或是准实时计费系统对业务话单进行费用计算,计费周期期末实时计费系统对该业务话单产生的费用进行扣除。In this embodiment, if the first service in the services currently used by the target user belongs to the postpaid attribute, such as voice service and SMS/MMS service, the postpaid charging method is adopted for the voice service and SMS/MMS service currently used by the target user. Fee calculations and deductions. Specifically, for the post-paid attribute, the post-paid charging method is used for charging, that is, the service CDR is generated according to the service used in the user's charging period, and the service CDR is calculated by the post-paid charging system or the quasi-real-time charging system. Perform cost calculation, and the real-time billing system at the end of the billing period deducts the cost generated by the service CDR.
如果目标用户当前使用的业务中的第二业务属于预付费属性,比如上网数据业务,则对目标用户当前使用的上网数据业务采用预付费计费方式进行费用计算和扣除。具体地,针对预付费属性,采用实时计费方法进行计费,该实时计费方法为通过实时计费系统根据用户所使用的业务,进行费用计算和扣除,基于用户所使用的业务产生实时业务话单。If the second service in the service currently used by the target user belongs to the prepaid attribute, such as the Internet data service, the prepaid charging method is used to calculate and deduct the cost of the Internet data service currently used by the target user. Specifically, for the prepaid attribute, the real-time charging method is used for charging. The real-time charging method is to calculate and deduct fees according to the services used by the users through the real-time charging system, and generate real-time services based on the services used by the users. bill.
在一种可能的设计中,签约属性分离后的目标用户使用的业务支持在漫游目标地区采用后付费属性对应的计费方式进行计费。In a possible design, the service used by the target user after the subscription attribute is separated supports charging in the roaming target area using the charging method corresponding to the postpaid attribute.
其中,所述漫游目标地区为支持后付费方式计费的地区、支持预付费方式计费的地区或既支持后付费方式又支持预付费方式计费的地区。The roaming target area is an area that supports post-paid charging, a pre-paid charging area, or a post-paid and pre-paid charging area.
在实际应用中,现有技术针对漫游目标地区是后付费地区时(即支持后付费方式计费的地区),用户在漫游目标地区使用数据流量时,若该用户是单一性后付费属性的用户,则该用户在开通了国际漫游权限后,可以在漫游目标地区(即漫入地)正常使用该业务;若该用户是单一性预付费属性的用户,则该用户即使开通了国际漫游权限,也无法在漫游目标地区正常使用该业务。因此,现有技术针对单一性付费属性,在漫游目标地区具有局限性,无法满足用户需求,进而影响用户体验。In practical applications, when the roaming target area is a post-paid area (that is, an area that supports post-paid charging), when a user uses data traffic in the roaming target area, if the user is a user with a single post-paid attribute , then the user can use the service normally in the roaming target area (that is, the roaming destination) after the international roaming permission has been activated; if the user is a user with a single prepaid attribute, even if the user has activated the international roaming permission, The service cannot be used normally in the roaming target area. Therefore, the prior art has limitations in the roaming target area for the single-payment attribute, and cannot meet user needs, thereby affecting user experience.
本实施例中,通过对单一性付费属性进行属性分离,分离后的签约属性包括后付费属性,使得分离签约属性后的用户无论所处的漫游目标地区是否是后付费地区,在开通国际漫游权限后,都可以按照后付费属性对应的计费方式对用户使用的业务进行费用计算和扣除,扩大了预付费数据业务属性的国际漫游范围。因此,签约属性分离后的目标用户使用的业务支持在漫游目标地区采用后付费属性对应的计费方式进行费用计算和扣除,解决了用户使用的业务范围太窄的问题,满足了用户需求,提高了用户体验。In this embodiment, by performing attribute separation on the single payment attribute, the separated subscription attribute includes the postpaid attribute, so that the user after the separation of the subscription attribute is located in a postpaid area regardless of whether the roaming target area is a postpaid area or not, when the international roaming permission is activated. After that, charges can be calculated and deducted for the services used by the user according to the charging method corresponding to the postpaid attribute, which expands the international roaming scope of the prepaid data service attribute. Therefore, the service used by the target user after the separation of the subscription attributes supports the calculation and deduction of charges in the roaming target area using the charging method corresponding to the postpaid attribute, which solves the problem that the service scope used by the user is too narrow, satisfies the needs of the user, and improves the user experience.
在一种可能的设计中,在漫入地使用业务时,如何确定该用户是否可以正常使用业务并计费,需要归属地的HSS查询该用户所签约的属性以及是否开通了漫游权限(可以为国际漫游权限),本实施例在上述实施例的基础上,对计费方法进行了详细说明。所述方法还包括:In a possible design, how to determine whether the user can use the service and charge normally when using the service in a roaming manner, the HSS of the home location needs to query the attributes subscribed by the user and whether the roaming permission is activated (which can be International roaming right), this embodiment describes the charging method in detail on the basis of the above-mentioned embodiment. The method also includes:
若接收到登网鉴权请求,则根据登网鉴权请求中携带的用户标识,查询所述用户标识对应的待鉴权用户的第一签约属性和所述待鉴权用户是否开通漫游权限,并返回所述第一签约属性和是否开通漫游权限的结果。If receiving a login authentication request, according to the user ID carried in the login authentication request, query the first subscription attribute of the user to be authenticated corresponding to the user ID and whether the user to be authenticated has roaming rights enabled, And return the first subscription attribute and the result of whether to activate the roaming right.
本实施例中,用户在漫入地想要使用业务时,漫入地会通过漫入地(漫游目标地区)国际信令转接点ISTP向归属地国际信令转接点ISTP发送登网鉴权请求,然后由归属地国际信令转接点ISTP转发该登网鉴权请求给归属地的HSS,由归属地的HSS查询该用户所签约的属性以及是否开通了漫游权限(可以为国际漫游权限)。In this embodiment, when the user wants to use the service in the roaming site, the roaming site will send a login certificate to the home international signaling transfer point ISTP through the international signaling transfer point ISTP in the roaming site (roaming target area). Then the ISTP of the home place forwards the login authentication request to the HSS of the home place, and the HSS of the home place inquires about the attributes subscribed by the user and whether the roaming right is enabled (it can be international roaming permissions).
在一种可能的设计中,若接收到归属地国际信令转接点ISTP转发漫游目标地区国际信令转接点ISTP发送的第一登网鉴权请求,则根据所述第一登网鉴权请求中携带的用户标识,查询所述用户标识对应的待鉴权用户对应的第一签约属性和所述待鉴权用户是否已开通漫游权限。In a possible design, if the first login authentication request sent by the international signaling transfer point ISTP in the roaming target area forwarded by the home international signaling transfer point ISTP is received, the The user identifier carried in the authorization request is queried, and the first subscription attribute corresponding to the user to be authenticated corresponding to the user identifier and whether the user to be authenticated has been activated for roaming permission is queried.
若所述第一签约属性为后付费属性且所述待鉴权用户已开通漫游权限,则通过所述归属地国际信令转接点ISTP向所述漫游目标地区国际信令转接点ISTP返回登网结果,使得漫游目标地区国际信令转接点ISTP根据返回的登网结果确定是否允许所述待鉴权用户使用相应的业务并采用所述后付费属性对应的计费方式进行计费。If the first subscription attribute is a postpaid attribute and the user to be authenticated has activated the roaming right, return the message to the international signaling transfer point ISTP in the roaming target area through the home international signaling transfer point ISTP The roaming target area international signaling transfer point ISTP determines whether to allow the user to be authenticated to use the corresponding service according to the returned boarding result, and uses the charging method corresponding to the postpaid attribute to charge.
具体地,若所述漫游目标地区国际信令转接点ISTP对应的漫游目标地区支持后付费,且返回的登网结果为所述待鉴权用户的签约属性为后付费属性且所述待鉴权用户已开通漫游权限,则允许该用户正常使用业务并计费;若所述漫游目标地区国际信令转接点ISTP对应的漫游目标地区支持后付费,且返回的登网结果为所述待鉴权用户的签约属性为预付费属性且所述待鉴权用户已开通漫游权限,则不允许该用户正常使用业务,进而无法计费;若所述漫游目标地区国际信令转接点ISTP对应的漫游目标地区支持后付费,且返回的登网结果为所述待鉴权用户的签约属性为预付费属性和后付费属性且所述待鉴权用户已开通漫游权限,则允许该用户正常使用业务并以后付费计费方式进行费用计算和扣除。Specifically, if the roaming target area corresponding to the international signaling transfer point ISTP in the roaming target area supports post-payment, and the returned login result is that the subscription attribute of the user to be authenticated is a post-paid attribute and the to-be-authenticated user If the roaming target area corresponding to the international signaling transfer point ISTP in the roaming target area supports post-payment, and the returned network login result is the waiting The subscription attribute of the authenticated user is a prepaid attribute and the user to be authenticated has activated the roaming authority, the user is not allowed to use the service normally, and thus cannot be billed; if the roaming target area international signaling transfer point ISTP corresponds The roaming target area supports post-payment, and the returned login result is that the subscription attributes of the user to be authenticated are prepaid and postpaid, and the user to be authenticated has activated roaming rights, then the user is allowed to use it normally. Business and post-paid billing method for cost calculation and deduction.
在一种可能的设计中,若接收到预付费漫游网关转发归属地国际信令转接点ISTP发送的第二登网鉴权请求,则根据所述第二登网鉴权请求和所述登网鉴权请求中携带的用户标识,查询所述用户标识对应的待鉴权用户是否已开通漫游权限,其中,所述漫游目标地区国际信令转接点ISTP对应的漫游目标地区支持预付费,所述待鉴权用户签约属性为后付费属性。In a possible design, if a second login authentication request sent by the prepaid roaming gateway forwarded by the home international signaling transfer point ISTP is received, the second login authentication request and the login authorization The user identity carried in the network authentication request, to query whether the user to be authenticated corresponding to the user identity has activated the roaming authority, wherein the roaming target area corresponding to the international signaling transfer point ISTP in the roaming target area supports prepaid, The subscription attribute of the user to be authenticated is a postpaid attribute.
若所述待鉴权用户已开通漫游权限,则通过所述预付费漫游网关将登网结果返回给归属地国际信令转接点ISTP,以使所述归属地国际信令转接点ISTP向所述漫游目标地区国际信令转接点ISTP返回所述登网结果,进而使得漫游目标地区允许所述待鉴权用户使用相应的业务,并采用后付费属性对应的计费方式进行计费。If the user to be authenticated has activated the roaming authority, the prepaid roaming gateway will return the login result to the home international signaling transfer point ISTP, so that the home international signaling transfer point ISTP can send The international signaling transfer point ISTP in the roaming target area returns the network login result, so that the roaming target area allows the user to be authenticated to use the corresponding service, and uses the charging method corresponding to the post-paid attribute for charging.
在一种可能的设计中,若所述第二登网鉴权请求中含有预设码,则所述预设码是由所述预付费漫游网关在确定所述第二签约属性为预付费属性之后,将所述归属地国际信令转接点ISTP发送的初始登网鉴权请求中的预设字段修改得到的,其中,所述待鉴权用户使用的语音业务对应的第二签约属性为预付费属性,说明该用户的签约属性为预付费属性。若所述第二登网鉴权请求中未含有预设码,则所述待鉴权用户使用的语音业务对应的第二签约属性为后付费属性。In a possible design, if the second login authentication request contains a preset code, the preset code is determined by the prepaid roaming gateway when the second subscription attribute is a prepaid attribute. After that, it is obtained by modifying the preset field in the initial login authentication request sent by the home international signaling transfer point ISTP, wherein the second subscription attribute corresponding to the voice service used by the user to be authenticated is: Prepaid attribute, indicating that the subscription attribute of the user is a prepaid attribute. If the second login authentication request does not contain a preset code, the second subscription attribute corresponding to the voice service used by the user to be authenticated is a postpaid attribute.
本实施例中,针对预付费用户国际漫游范围小、用户感知不友好的问题,当用户产生国际漫游业务时,国际漫游鉴权过程是:漫入地ISTP(国际信令转接点)向国际局ISTP发起登网鉴权,国际局ISTP再向用户归属地的HSS查询国漫权限。如果后付费并且开通了国漫权限,则国际局ISTP向漫入地ISTP返回允许登网结果。否则,返回拒绝登网结果。漫游地运营商支持预付费(鉴权消息中的TT字段值等于33),鉴权过程是在第一种情况的基础上再增加一个MSRG(预付费漫游网关)的处理环节。鉴权过程是:漫入地ISTP向国际局ISTP发起登网鉴权,国际局ISTP发现TT=33,则把鉴权消息转发给MSPRG。MSPRG首先根据用户CS域的用户属性判断是后付费还是预付费。如果是后付费,则向用户归属地的HSS查询国漫权限,将结果原路返回给漫入地ISTP。如果是预付费,则将鉴权消息中的GT字段修改为国内码,再向HSS发启鉴权(HSS会认为是国内漫游,放通),最后将结果原路返回给漫入地ISTP。In this embodiment, in view of the problems that the international roaming range of prepaid users is small and the user perception is not friendly, when the user generates international roaming services, the international roaming authentication process is as follows: the inbound ISTP (International Signaling Transfer Point) to the international The ISTP of the International Bureau initiates the authentication of access to the Internet, and the ISTP of the International Bureau will then query the HSS of the user's home location for the national comics authority. If the post-payment is paid and the national comic permission is activated, the ISTP of the International Bureau will return the result of allowing access to the Internet to the ISTP of the influx. Otherwise, the result of denying access to the Internet is returned. The roaming operator supports prepayment (the value of the TT field in the authentication message is equal to 33), and the authentication process is a processing link of adding an MSRG (prepaid roaming gateway) on the basis of the first case. The authentication process is as follows: the intruding ISTP initiates access authentication to the International Bureau ISTP, and the International Bureau ISTP finds that TT=33, and then forwards the authentication message to the MSPRG. The MSPRG first determines whether it is post-paid or pre-paid according to the user attribute of the user CS domain. If it is post-paid, query the HSS of the user's home location for the national comic permission, and return the result to the ISTP where the user belongs. If it is prepaid, modify the GT field in the authentication message to the national code, then send the authentication to the HSS (the HSS will consider it to be domestic roaming and let it go), and finally return the result to the ISTP in the same way.
因此,当消息计费业务(即属性分离后的业务)用户在后付费国家产生漫游时,判断用户CS域(语音)属性,实现消息计费(预付费)用户在所有支撑后付费国际漫游的国家和地区,能够正常使用业务和完整计费。即即使数据业务(PS域)为预付费属性类型却可以使用后付费国际漫游的范围。Therefore, when the message charging service (that is, the service after attribute separation) roams in a postpaid country, the CS domain (voice) attribute of the user is judged, and the message charging (prepaid) user can support postpaid international roaming in all services. Countries and regions, normal use of business and complete billing. That is, even if the data service (PS domain) is of the prepaid attribute type, the scope of postpaid international roaming can be used.
为了实现所述计费方法,本实施例提供了一种计费装置。参见图5,图5为本申请实施例提供的计费装置的结构示意图;所述计费装置50,包括:获取模块501、属性分离模块502、计费模块503;获取模块501,用于响应于接收到的属性分离请求,获取目标用户使用的业务和目标用户当前的签约属性,所述当前的签约属性包括后付费属性或预付费属性;属性分离模块502,用于根据目标用户使用的业务,对所述目标用户当前的签约属性进行属性分离,得到所述目标用户使用的业务对应的分离后的签约属性,所述分离后的签约属性包括后付费属性和预付费属性;计费模块503,用于根据所述分离后的签约属性,对所述目标用户使用的业务采用相应的计费方式进行计费。In order to realize the charging method, this embodiment provides a charging device. Referring to FIG. 5, FIG. 5 is a schematic structural diagram of a charging apparatus provided by an embodiment of the present application; the charging apparatus 50 includes: an
本实施例通过设置获取模块501、属性分离模块502、计费模块503,用于响应于接收到的属性分离请求,获取目标用户使用的业务和目标用户当前的签约属性,其中,所述当前的签约属性包括后付费属性或预付费属性;然后根据目标用户使用的业务,对所述目标用户当前的签约属性进行属性分离,得到所述目标用户使用的业务对应的分离后的签约属性,这里分离后的签约属性包括后付费属性和预付费属性,说明经过属性分离后,由单一性付费属性转化为多元性付费属性,再根据所述分离后的签约属性,对所述目标用户使用的业务采用相应的计费方式进行计费,这样被分离属性的用户即支持后付费计费方式也支持预付费计费方式,根据用户使用的业务采用相应的计费方式进行计费因此,即保持主流的数据业务(即流量业务)消费的时效性,又同时减少智能设备的投资,提高了用户体验。In this embodiment, the
本实施例提供的装置,可用于执行上述方法实施例的技术方案,其实现原理和技术效果类似,本实施例此处不再赘述。The apparatus provided in this embodiment can be used to implement the technical solutions of the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again in this embodiment.
在一种可能的设计中,所述目标用户使用的业务包括语音业务、短彩信业务、上网数据业务;属性分离模块,具体用于:在所述当前的签约属性为后付费属性时,将所述当前的签约属性作为所述语音业务和短彩信业务对应的分离后的签约属性,并将所述预付费属性作为所述上网数据业务对应的分离后的签约属性;在所述当前的签约属性为预付费属性时,将所述当前的签约属性作为所述上网数据业务对应的分离后的签约属性,并将所述后付费属性作为所述语音业务和短彩信业务对应的分离后的签约属性。In a possible design, the services used by the target user include voice services, SMS and MMS services, and Internet data services; an attribute separation module is specifically configured to: when the current subscription attribute is a postpaid attribute, convert all The current subscription attribute is used as the separated subscription attribute corresponding to the voice service and the SMS and MMS service, and the prepaid attribute is used as the separated subscription attribute corresponding to the Internet data service; in the current subscription attribute When it is a prepaid attribute, the current subscription attribute is used as the separated subscription attribute corresponding to the Internet data service, and the postpaid attribute is used as the separated subscription attribute corresponding to the voice service and the SMS and MMS service. .
在一种可能的设计中,计费模块,具体用于:根据所述目标用户对应的所述分离后的签约属性,采用后付费计费方式对所述目标用户当前使用的业务中属于后付费属性的第一业务进行费用计算和扣除,所述第一业务包括语音业务、短彩信业务;根据所述目标用户对应的所述分离后的签约属性,采用实时计费方式对所述目标用户当前使用的业务中属于预付费属性的第二业务进行费用计算和扣除,所述第二业务为上网数据业务。In a possible design, the charging module is specifically configured to: according to the separated subscription attribute corresponding to the target user, adopt a post-paid charging method to charge the services currently used by the target user that belong to post-paid Calculate and deduct fees for the first service of the attribute, the first service includes a voice service and a short and multimedia message service; according to the separated subscription attribute corresponding to the target user, the current Charge calculation and deduction are performed for the second service belonging to the prepaid attribute in the used services, and the second service is the Internet data service.
在一种可能的设计中,获取模块,具体用于:In one possible design, get the module specifically for:
获取所述目标用户使用的业务中的语音业务对应的签约属性,若所述目标用户使用的业务中的语音业务对应的签约属性为后付费属性,则确定所述目标用户当前的签约属性为后付费属性;若所述目标用户使用的业务中的语音业务对应的签约属性为预付费属性,则确定所述目标用户当前的签约属性为预付费属性。Obtain the subscription attribute corresponding to the voice service in the service used by the target user, and if the subscription attribute corresponding to the voice service in the service used by the target user is a postpaid attribute, determine that the current subscription attribute of the target user is a postpaid attribute. Payment attribute; if the subscription attribute corresponding to the voice service in the service used by the target user is a prepaid attribute, it is determined that the current subscription attribute of the target user is a prepaid attribute.
在一种可能的设计中,签约属性分离后的目标用户使用的业务支持在漫游目标地区采用后付费属性对应的计费方式进行计费;所述漫游目标地区为支持后付费方式计费的地区、支持预付费方式计费的地区或既支持后付费方式又支持预付费方式计费的地区。In a possible design, the service used by the target user after the subscription attribute is separated supports charging in the roaming target area using the charging method corresponding to the post-paid attribute; the roaming target area is an area that supports post-paid charging. , regions that support prepaid billing, or regions that support both postpaid and prepaid billing.
在一种可能的设计中,所述装置还包括:查询模块;查询模块,用于业务信息发送模块,具体用于:若接收到登网鉴权请求,则根据登网鉴权请求中携带的用户标识,查询所述用户标识对应的待鉴权用户的第一签约属性和所述待鉴权用户是否开通漫游权限,并返回所述第一签约属性和是否开通漫游权限的结果。In a possible design, the device further includes: a query module; a query module, used for a service information sending module, specifically configured to: if a request for boarding authentication is received, according to the information carried in the request for boarding authentication User ID, query the first subscription attribute of the user to be authenticated corresponding to the user ID and whether the user to be authenticated has a roaming permission, and return the first subscription attribute and a result of whether the roaming permission is activated.
在一种可能的设计中,所述装置还包括:处理模块;处理模块,用于在接收到归属地国际信令转接点ISTP转发漫游目标地区国际信令转接点ISTP发送的第一登网鉴权请求时,根据所述第一登网鉴权请求中携带的用户标识,查询所述用户标识对应的待鉴权用户对应的第一签约属性和所述待鉴权用户是否已开通漫游权限;若所述第一签约属性为后付费属性且所述待鉴权用户已开通漫游权限,则通过所述归属地国际信令转接点ISTP向所述漫游目标地区国际信令转接点ISTP返回登网结果,使得漫游目标地区国际信令转接点ISTP根据返回的登网结果确定是否允许所述待鉴权用户使用相应的业务并采用所述后付费属性对应的计费方式进行计费。In a possible design, the apparatus further includes: a processing module; the processing module is configured to forward the first login message sent by the international signaling transfer point ISTP in the roaming target area after receiving the home international signaling transfer point ISTP. When requesting network authentication, according to the user ID carried in the first login authentication request, query the first subscription attribute corresponding to the user to be authenticated corresponding to the user ID and whether the user to be authenticated has activated roaming authority; if the first subscription attribute is a postpaid attribute and the user to be authenticated has activated the roaming authority, send the roaming destination international signaling transfer point to the international signaling transfer point in the roaming target area through the home international signaling transfer point ISTP The ISTP returns the network login result, so that the international signaling transfer point ISTP in the roaming target area determines whether to allow the user to be authenticated to use the corresponding service according to the returned network login result, and uses the charging method corresponding to the postpaid attribute to calculate. fee.
在一种可能的设计中,处理模块,还用于:在接收到预付费漫游网关转发归属地国际信令转接点ISTP发送的第二登网鉴权请求时,根据所述第二登网鉴权请求和所述登网鉴权请求中携带的用户标识,查询所述用户标识对应的待鉴权用户是否已开通漫游权限,其中,所述漫游目标地区国际信令转接点ISTP对应的漫游目标地区支持预付费,所述待鉴权用户签约属性为后付费属性。若所述待鉴权用户已开通漫游权限,则通过所述预付费漫游网关将登网结果返回给归属地国际信令转接点ISTP,以使所述归属地国际信令转接点ISTP向所述漫游目标地区国际信令转接点ISTP返回所述登网结果,进而使得漫游目标地区允许所述待鉴权用户使用相应的业务,并采用后付费属性对应的计费方式进行计费。In a possible design, the processing module is further configured to: when receiving the second login authentication request sent by the home international signaling transfer point ISTP forwarded by the prepaid roaming gateway, according to the second login authentication request The user identification carried in the authentication request and the authentication request for boarding, query whether the user to be authenticated corresponding to the user identification has activated the roaming authority, wherein, the roaming target area corresponding to the international signaling transfer point ISTP The roaming target area supports prepaid, and the subscription attribute of the user to be authenticated is a postpaid attribute. If the user to be authenticated has activated the roaming authority, the prepaid roaming gateway will return the login result to the home international signaling transfer point ISTP, so that the home international signaling transfer point ISTP can send The international signaling transfer point ISTP in the roaming target area returns the network login result, so that the roaming target area allows the user to be authenticated to use the corresponding service, and uses the charging method corresponding to the post-paid attribute for charging.
在一种可能的设计中,处理模块,还用于:在所述第二登网鉴权请求中含有预设码时,所述预设码是由所述预付费漫游网关在确定所述第二签约属性为预付费属性之后,将所述归属地国际信令转接点ISTP发送的初始登网鉴权请求中的预设字段修改得到的。In a possible design, the processing module is further configured to: when the second login authentication request contains a preset code, the preset code is determined by the prepaid roaming gateway when determining the first After the second subscription attribute is the prepaid attribute, it is obtained by modifying the preset field in the initial login authentication request sent by the home international signaling transfer point ISTP.
其中,所述待鉴权用户使用的语音业务对应的第二签约属性为预付费属性,说明该用户的签约属性为预付费属性。若所述第二登网鉴权请求中未含有预设码,则所述待鉴权用户使用的语音业务对应的第二签约属性为后付费属性。Wherein, the second subscription attribute corresponding to the voice service used by the user to be authenticated is a prepaid attribute, indicating that the subscription attribute of the user is a prepaid attribute. If the second login authentication request does not contain a preset code, the second subscription attribute corresponding to the voice service used by the user to be authenticated is a postpaid attribute.
为了实现所述计费方法,本实施例提供了一种计费设备。图6为本申请实施例提供的计费设备的结构示意图。如图6所示,本实施例的计费设备60包括:处理器601以及存储器602;其中,存储器602,用于存储计算机执行指令;处理器601,用于执行存储器存储的计算机执行指令,以实现上述实施例中所执行的各个步骤。具体可以参见上述方法实施例中的相关描述。To implement the charging method, this embodiment provides a charging device. FIG. 6 is a schematic structural diagram of a charging device according to an embodiment of the present application. As shown in FIG. 6 , the billing device 60 in this embodiment includes: a
本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上述的计费方法。Embodiments of the present application further provide a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when the processor executes the computer-executable instructions, the above charging method is implemented.
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。例如,以上所描述的设备实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。另外,在本申请各个实施例中的各功能模块可以集成在一个处理单元中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个单元中。上述模块成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are only illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be other division methods. For example, multiple modules may be combined or integrated. to another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or modules, and may be in electrical, mechanical or other forms. In addition, each functional module in each embodiment of the present application may be integrated in one processing unit, or each module may exist physically alone, or two or more modules may be integrated in one unit. The units formed by the above modules can be implemented in the form of hardware, or can be implemented in the form of hardware plus software functional units.
上述以软件功能模块的形式实现的集成的模块,可以存储在一个计算机可读取存储介质中。上述软件功能模块存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(英文:processor)执行本申请各个实施例所述方法的部分步骤。应理解,上述处理器可以是中央处理单元(英文:Central Processing Unit,简称:CPU),还可以是其他通用处理器、数字信号处理器(英文:Digital Signal Processor,简称:DSP)、专用集成电路(英文:Application SpecificIntegrated Circuit,简称:ASIC)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合发明所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。The above-mentioned integrated modules implemented in the form of software functional modules may be stored in a computer-readable storage medium. The above-mentioned software function modules are stored in a storage medium, and include several instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to execute the various embodiments of the present application. part of the method. It should be understood that the above processor may be a central processing unit (English: Central Processing Unit, referred to as: CPU), and may also be other general-purpose processors, digital signal processors (English: Digital Signal Processor, referred to as: DSP), application-specific integrated circuits (English: Application Specific Integrated Circuit, referred to as: ASIC) and so on. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in conjunction with the invention can be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
存储器可能包含高速RAM存储器,也可能还包括非易失性存储NVM,例如至少一个磁盘存储器,还可以为U盘、移动硬盘、只读存储器、磁盘或光盘等。总线可以是工业标准体系结构(Industry Standard Architecture,ISA)总线、外部设备互连(PeripheralComponent,PCI)总线或扩展工业标准体系结构(Extended Industry StandardArchitecture,EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,本申请附图中的总线并不限定仅有一根总线或一种类型的总线。上述存储介质可以是由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。存储介质可以是通用或专用计算机能够存取的任何可用介质。The memory may include high-speed RAM memory, and may also include non-volatile storage NVM, such as at least one magnetic disk memory, and may also be a U disk, a removable hard disk, a read-only memory, a magnetic disk or an optical disk, and the like. The bus may be an Industry Standard Architecture (Industry Standard Architecture, ISA) bus, a Peripheral Component (Peripheral Component, PCI) bus, or an Extended Industry Standard Architecture (Extended Industry Standard Architecture, EISA) bus, or the like. The bus can be divided into address bus, data bus, control bus and so on. For convenience of representation, the buses in the drawings of the present application are not limited to only one bus or one type of bus. The above-mentioned storage medium may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Except programmable read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. A storage medium can be any available medium that can be accessed by a general purpose or special purpose computer.
一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于专用集成电路(Application Specific Integrated Circuits,简称:ASIC)中。当然,处理器和存储介质也可以作为分立组件存在于电子设备或主控设备中。An exemplary storage medium is coupled to the processor, such that the processor can read information from, and write information to, the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and the storage medium may be located in application specific integrated circuits (Application Specific Integrated Circuits, ASIC for short). Of course, the processor and the storage medium may also exist in the electronic device or the host device as discrete components.
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by program instructions related to hardware. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps including the above method embodiments are executed; and the foregoing storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.
最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features thereof can be equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the present application. scope.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010444168.7ACN111542005B (en) | 2020-05-22 | 2020-05-22 | Charging method, device, equipment and storage medium |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010444168.7ACN111542005B (en) | 2020-05-22 | 2020-05-22 | Charging method, device, equipment and storage medium |
| Publication Number | Publication Date |
|---|---|
| CN111542005Atrue CN111542005A (en) | 2020-08-14 |
| CN111542005B CN111542005B (en) | 2021-11-16 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010444168.7AActiveCN111542005B (en) | 2020-05-22 | 2020-05-22 | Charging method, device, equipment and storage medium |
| Country | Link |
|---|---|
| CN (1) | CN111542005B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115002769A (en)* | 2022-05-23 | 2022-09-02 | 中国电信股份有限公司 | Flow shunting method, core network element, electronic equipment and medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20040139012A1 (en)* | 2003-01-15 | 2004-07-15 | Juha-Pekka Koskinen | Charging for a communication system |
| US20040151292A1 (en)* | 2003-01-31 | 2004-08-05 | Larsen David J. | Prepaid and postpaid subscriber telephony platform |
| CN1741560A (en)* | 2004-08-23 | 2006-03-01 | 华为技术有限公司 | Method for Realizing Traditional Postpaid Service Using Prepaid Mode |
| CN101056182A (en)* | 2006-04-14 | 2007-10-17 | 朗迅科技公司 | Convergence prepayment and postpayment |
| CN102647696A (en)* | 2011-12-09 | 2012-08-22 | 中兴通讯股份有限公司 | Charging method and system of multimedia business |
| US8732043B2 (en)* | 2011-08-25 | 2014-05-20 | Verizon Patent And Licensing Inc. | Charging diversification using a modified online charging indicator |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20040139012A1 (en)* | 2003-01-15 | 2004-07-15 | Juha-Pekka Koskinen | Charging for a communication system |
| US20040151292A1 (en)* | 2003-01-31 | 2004-08-05 | Larsen David J. | Prepaid and postpaid subscriber telephony platform |
| CN1741560A (en)* | 2004-08-23 | 2006-03-01 | 华为技术有限公司 | Method for Realizing Traditional Postpaid Service Using Prepaid Mode |
| CN101056182A (en)* | 2006-04-14 | 2007-10-17 | 朗迅科技公司 | Convergence prepayment and postpayment |
| US8732043B2 (en)* | 2011-08-25 | 2014-05-20 | Verizon Patent And Licensing Inc. | Charging diversification using a modified online charging indicator |
| CN102647696A (en)* | 2011-12-09 | 2012-08-22 | 中兴通讯股份有限公司 | Charging method and system of multimedia business |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115002769A (en)* | 2022-05-23 | 2022-09-02 | 中国电信股份有限公司 | Flow shunting method, core network element, electronic equipment and medium |
| CN115002769B (en)* | 2022-05-23 | 2023-11-14 | 中国电信股份有限公司 | Flow diversion method, core network element, electronic equipment and medium |
| Publication number | Publication date |
|---|---|
| CN111542005B (en) | 2021-11-16 |
| Publication | Publication Date | Title |
|---|---|---|
| EP1990948B1 (en) | Charging system and charging method | |
| US8832250B2 (en) | Method and server for agent service applied to widget | |
| CN102685709B (en) | Method and device for auditing charging | |
| CN102083042B (en) | Charging method and device of mobile data services | |
| CN101005384A (en) | Processing method, system and device in charging process | |
| CN101436940B (en) | Charging control method and charging system and relevant equipment | |
| CN102647698B (en) | A kind of strategy and charging control PCC System and method for | |
| CN104363572A (en) | Redirecting method, charging device, access device and redirecting system | |
| CN105933883B (en) | Flow monitoring processing method and related device and system | |
| CN110324801A (en) | The method and apparatus of charging | |
| CN102387486A (en) | Method and device for charging general packet radio service (GPRS) partition bill | |
| CN104735635A (en) | Strategy control method and device | |
| CN100370734C (en) | A WAP service charging method | |
| CN101299670A (en) | Charging method, charging system and charging device | |
| CN111542005A (en) | Billing method, device, equipment and storage medium | |
| CN101562775B (en) | Method for realizing prepayment intelligent network service of real-time accumulated donation and system thereof | |
| WO2016107177A1 (en) | Charging method, apparatus and system | |
| WO2005041476A1 (en) | A method of providing virtual private network service | |
| CN106332040B (en) | Method and device for account resource sharing | |
| CN101150416A (en) | Third-party billing method and system | |
| CN110324153A (en) | Charging method and system | |
| CN102131174B (en) | Method, device and system for charging prepayment | |
| CN1681283B (en) | Charging method of mobile intelligent net | |
| CN103906025B (en) | A kind of processing method of third party charging business, apparatus and system | |
| CN108270580A (en) | Based reminding method, equipment and the system of online charging |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |