CN101005385A - Charging method and its device - Google Patents

Charging method and its device Download PDF

Info

Publication number
CN101005385A
CN101005385A CN 200710026332 CN200710026332A CN101005385A CN 101005385 A CN101005385 A CN 101005385A CN 200710026332 CN200710026332 CN 200710026332 CN 200710026332 A CN200710026332 A CN 200710026332A CN 101005385 A CN101005385 A CN 101005385A
Authority
CN
China
Prior art keywords
time zone
user
time
message accounting
relaying
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN 200710026332
Other languages
Chinese (zh)
Inventor
代海涛
叶涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN 200710026332 priority Critical patent/CN101005385A/en
Publication of CN101005385A publication Critical patent/CN101005385A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Meter Arrangements (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本发明公开了一种计费方法,该方法通过识别用户或中继与计费装置之间的时区差异,确定待计费通话在其所对应的用户和/或中继所在时区的通话时间段,根据该通话时间段采用对应的计费费率计费。本发明还公开了一种计费装置。通过本发明,实现了在多时区的情况下对用户或中继采用正确的计费费率进行计费,同时使用户或中继话单上的通话起、止时间与实际通话时间相符。

Figure 200710026332

The invention discloses a charging method, which determines the call time period of the call to be charged in the time zone of the corresponding user and/or relay by identifying the time zone difference between the user or the relay and the charging device , according to the call time period, the corresponding billing rate is used for billing. The invention also discloses a charging device. Through the present invention, it is realized that users or relays are charged with correct billing rates in the case of multiple time zones, and at the same time, the call start and end times on the user or relay bills are consistent with the actual call time.

Figure 200710026332

Description

一种计费方法及其装置A billing method and device thereof

技术领域technical field

本发明涉及软交换技术领域,具体地涉及一种计费方法及其装置。The invention relates to the field of softswitch technology, in particular to a charging method and device thereof.

背景技术Background technique

计费是软交换系统的重要功能之一,软交换系统向计费中心提供计费数据支持。话单是运营商与用户之间业务明细的唯一凭证,运营商依据话单向用户收取费用,用户根据话单清单进行核实。计费系统最重要的特征是准确性,目前这种准确性主要体现为费用计算的精确程度,但没有考虑多时区计费问题的复杂性。Billing is one of the important functions of the softswitch system, and the softswitch system provides charging data support to the billing center. The bill is the only proof of business details between the operator and the user. The operator charges the user according to the bill, and the user verifies it according to the bill list. The most important feature of the billing system is accuracy. At present, this accuracy is mainly reflected in the accuracy of cost calculation, but it does not consider the complexity of billing in multiple time zones.

众所周知,全球划分成了24个时区,相邻两个时区的标准时相差一小时。现网中存在软交换设备跨越时区的情况,但目前的计费处理没有考虑这种情况,不管通话的双方实际所处的地理位置位于哪个时区,都以软交换设备所在的地理时区为基准来得到通话的起始时间点、结束时间点,并依据此起始时间点和结束时间点确定计费费率进行计费,并记录到话单中;而不是以用户或中继所在时区为依据进行计费。As we all know, the world is divided into 24 time zones, and the standard time difference between two adjacent time zones is one hour. In the existing network, there is a situation that the softswitch device crosses time zones, but the current billing process does not consider this situation. Regardless of the actual geographical location of the two parties in the call, it is based on the geographical time zone where the softswitch device is located. Get the start time point and end time point of the call, and determine the billing rate based on the start time point and end time point for billing, and record it in the bill; instead of based on the time zone where the user or trunk is located for billing.

综上所述,按照目前的计费方法,当用户或中继实际所处的地理位置时区与软交换设备所处的地理位置时区不相同时,据软交换设备所处的地理位置时区得到的用户或中继通话的起止时间点就与实际不符。如果运营商设置了一些通话的优惠时段,就会导致计费出现偏差。例如,用户或中继本来是在优惠时段内通话的,因时区差异软交换设备记录的通话时间段可能落到优惠时段之外,这样将导致计费不准确;同时导致话单中通话的起止时间点与用户或中继实际通话的时间点不一致。To sum up, according to the current billing method, when the actual geographic location time zone of the user or the relay is different from the geographic location time zone of the softswitch device, the time zone obtained according to the geographic location time zone of the softswitch device is The start and end time points of the user or trunk call are inconsistent with the reality. If the operator sets some preferential time periods for calls, it will lead to deviations in billing. For example, if the user or the trunk originally made a call during the preferential period, the call time period recorded by the softswitch device may fall outside the preferential period due to time zone differences, which will lead to inaccurate billing; at the same time, it will cause the start and end of calls in the bill The time point is inconsistent with the time point when the user or the trunk actually made a call.

发明内容Contents of the invention

本发明所要解决的技术问题在于,提供一种计费装置以采用正确的费率进行计费。The technical problem to be solved by the present invention is to provide a billing device for billing with a correct rate.

为了解决上述技术问题,本发明的实施例提出了一种计费装置,包括有:In order to solve the above technical problems, an embodiment of the present invention proposes a billing device, including:

时区识别单元,用于识别待计费通话对应的用户和/或中继所在的时区,并计算出所述待计费通话在所述用户和/或中继所在时区的通话时间段;A time zone identification unit, configured to identify the time zone where the user and/or relay corresponding to the call to be charged is located, and calculate the call time period of the call to be charged in the time zone where the user and/or the relay is located;

计费单元,用于确定所述通话时间段相对应的计费费率并根据此计费费率进行计费。The charging unit is configured to determine the charging rate corresponding to the call time period and perform charging according to the charging rate.

其中,所述时区识别单元进一步包括有:Wherein, the time zone identification unit further includes:

时区属性存储单元,用于存储用户或中继的时区属性信息,或者用户或中继所属呼叫源的时区属性信息,及所述计费装置自身的时区属性信息;The time zone attribute storage unit is used to store the time zone attribute information of the user or the relay, or the time zone attribute information of the call source to which the user or the relay belongs, and the time zone attribute information of the charging device itself;

时间信息处理单元,用于查询所述待计费通话对应的用户和/或中继及所述计费装置的时区属性信息;并根据所查询到的时区属性信息及自身记录的待计费通话的时间信息确定所述待计费通话在所述用户和/或中继所在时区的通话时间段。A time information processing unit, configured to query the time zone attribute information of the user and/or relay corresponding to the call to be charged and the charging device; and according to the queried time zone attribute information and the call to be charged recorded by itself The time information of the call determines the call time period of the call to be charged in the time zone where the user and/or the relay is located.

相应地,本发明的实施例还提供一种计费方法,包括以下步骤:Correspondingly, the embodiment of the present invention also provides a charging method, including the following steps:

A、识别待计费通话所对应的用户和/或中继的时区以及计费装置自身所在的时区,并确定所述待计费通话在所述用户和/或中继所在时区的通话时间段;A. Identify the time zone of the user and/or relay corresponding to the call to be charged and the time zone where the charging device itself is located, and determine the call time period of the call to be charged in the time zone where the user and/or relay is located ;

B、根据所述通话时间段确定相应的计费费率,并进行计费。B. Determine the corresponding billing rate according to the call time period, and perform billing.

其中,步骤A具体包括有以下步骤:Wherein, step A specifically includes the following steps:

A1、查询并获取所述待计费通话所对应的用户和/或中继的时区属性值及所述计费装置自身的时区属性值;A1. Query and obtain the time zone attribute value of the user and/or relay corresponding to the call to be charged and the time zone attribute value of the charging device itself;

A2、计算所述计费装置自身的时区属性值与所述用户和/或中继的时区属性值之间的差值;A2. Calculate the difference between the time zone attribute value of the charging device itself and the time zone attribute value of the user and/or relay;

A3、根据所述差值,计算所述待计费通话在所述用户和/或中继所在时区的通话时间段。A3. According to the difference, calculate the call time period of the call to be charged in the time zone where the user and/or the relay are located.

实施本发明的实施例,具有如下有益效果:Implementing the embodiments of the present invention has the following beneficial effects:

本发明实施例提供的一种计费装置及其方法,通过自动识别用户或中继与计费装置之间的时区差异,确定待计费通话在其所对应的用户或中继所在时区的通话时间段,从而根据该正确的通话时间段采用相对应的计费费率进行计费,从而保证用户或中继话单上的通话起、止时间与实际通话时间相符。The billing device and its method provided by the embodiments of the present invention determine the call to be billed in the time zone of the corresponding user or relay by automatically identifying the time zone difference between the user or relay and the billing device Time period, so that the corresponding billing rate is used for billing according to the correct call time period, so as to ensure that the call start and end time on the user or trunk bill is consistent with the actual call time.

附图说明Description of drawings

图1是本发明的实施例中计费方法步骤之前的配置流程示意图;Fig. 1 is a schematic diagram of the configuration flow before the steps of the billing method in an embodiment of the present invention;

图2是本发明的实施例中计费方法的一实施例流程示意图;Fig. 2 is a schematic flow chart of an embodiment of a billing method in an embodiment of the present invention;

图3是图2中步骤S2001的具体实施示意图;FIG. 3 is a schematic diagram of the specific implementation of step S2001 in FIG. 2;

图4是本发明的实施例中计费方法的一应用实施例示意图;Fig. 4 is a schematic diagram of an application embodiment of a billing method in an embodiment of the present invention;

图5是本发明计费装置一实施例的功能模块组成示意图。Fig. 5 is a schematic diagram of the composition of functional modules of an embodiment of the billing device of the present invention.

具体实施方式Detailed ways

本发明提供的一种计费装置及其方法,通过自动识别用户或中继与计费装置之间的时区差异,确定待计费通话在其所对应的用户或中继所在时区的通话时间段,从而根据该正确的通话时间段采用相对应的计费费率进行计费,从而保证用户或中继话单上的通话起、止时间与实际通话时间相符。The present invention provides a billing device and its method, by automatically identifying the time zone difference between the user or relay and the billing device, to determine the call time period of the call to be charged in the time zone of the corresponding user or relay , so that according to the correct call time period, the corresponding billing rate is used for billing, so as to ensure that the call start and end time on the user or trunk bills are consistent with the actual call time.

下面结合附图对本发明作进一步详细清楚的说明。The present invention will be described in further detail below in conjunction with the accompanying drawings.

本发明提供了一种计费方法,其通过识别时区差异来保证对待计费通话采用正确的计费费率。在该计费方法的步骤之前,包括有配置步骤,其流程示意图如图1所示,包括有以下步骤:The invention provides a billing method, which ensures that the correct billing rate is adopted for the call to be billed by identifying the time zone difference. Before the steps of the billing method, a configuration step is included, and its flow diagram is shown in Figure 1, including the following steps:

步骤S1001:为每个用户和中继分配标识该用户或中继所在时区的时区属性值,并将该值记录在存储于计费装置上的该用户或中继的时区属性信息中。Step S1001: Allocate a time zone attribute value identifying the time zone of the user or relay for each user and relay, and record the value in the time zone attribute information of the user or relay stored in the charging device.

步骤S1002:为计费装置分配标识该计费装置所在时区的时区属性值,并将该值记录在存储于计费装置上的该计费装置的时区属性信息中。Step S1002: Assign a time zone attribute value identifying the time zone of the charging device to the charging device, and record the value in the time zone attribute information of the charging device stored on the charging device.

该配置步骤中记录的时区属性信息用于备下述步骤中查询时区属性值。The time zone attribute information recorded in this configuration step is used to query the time zone attribute value in the following steps.

本发明所提供的计费方法的流程示意图如图2所示,包括以下步骤:The schematic flow chart of the billing method provided by the present invention is shown in Figure 2, comprising the following steps:

步骤S2001:识别待计费通话所对应的用户和/或中继的时区以及计费装置自身所在的时区,并确定所述待计费通话在所述用户和/或中继所在时区的通话时间段。Step S2001: Identify the time zone of the user and/or relay corresponding to the call to be charged and the time zone where the billing device itself is located, and determine the call time of the call to be charged in the time zone of the user and/or relay part.

步骤S2002:根据所述通话时间段确定相应的计费费率,并进行计费。Step S2002: Determine the corresponding charging rate according to the call time period, and perform charging.

之后,运营商的计费中心根据主叫收费、被叫收费的不同,提取计费装置中待计费通话对应的用户和/或中继的话费信息计算用户或中继的话费,对用户进行收费。Afterwards, the operator's billing center extracts the user and/or relay call charge information corresponding to the call to be charged in the billing device to calculate the user's or relay call charges according to the difference between the calling charge and the called charge, and conduct a billing charge for the user. TOLL.

如图3所示,图2中步骤S2001具体包括有以下步骤:As shown in Figure 3, step S2001 in Figure 2 specifically includes the following steps:

步骤S3001:查询并获取所述待计费通话所对应的用户和/或中继的时区属性值及所述计费装置自身的时区属性值。Step S3001: Query and obtain the time zone attribute value of the user and/or relay corresponding to the call to be charged and the time zone attribute value of the charging device itself.

步骤S3002:计算所述计费装置自身的时区属性值与所述用户和/或中继的时区属性值之间的差值。Step S3002: Calculate the difference between the time zone attribute value of the charging device itself and the time zone attribute value of the user and/or relay.

步骤S3003:根据所述差值,计算所述待计费通话在所述用户和/或中继所在时区的通话时间段。Step S3003: According to the difference, calculate the call duration of the call to be charged in the time zone where the user and/or the relay are located.

这里,计算所述待计费通话在所述用户和/或中继所在时区的通话时间段的方法为:将计费装置自身记录的所述待计费通话的通话起、止时间加上所述差值。Here, the method for calculating the call time period of the call to be charged in the time zone where the user and/or relay is located is: add the call start and end time of the call to be charged recorded by the charging device itself to the stated difference.

作为一种实施方式,如果采用呼叫源的方式管理用户、中继,则图1中的配置步骤可以用以下步骤替代:As an implementation, if the user and trunk are managed in the form of a call source, the configuration steps in Figure 1 can be replaced by the following steps:

步骤S4001:将位于同一时区的用户、中继划分成一个或多个呼叫源。Step S4001: Divide users and relays located in the same time zone into one or more call sources.

步骤S4002:为所述每一呼叫源分配标识该时区的时区属性值,并将该值记录在存储于计费装置上的该呼叫源的时区属性信息中。Step S4002: Assign a time zone attribute value identifying the time zone to each call source, and record the value in the time zone attribute information of the call source stored in the charging device.

步骤S4003:为计费装置分配标识该计费装置所在时区的时区属性值,并将该值记录在存储于计费装置上的该计费装置的时区属性信息中。Step S4003: Assign a time zone attribute value identifying the time zone of the charging device to the charging device, and record the value in the time zone attribute information of the charging device stored on the charging device.

同样,步骤S4002及步骤S4003中记录的时区属性信息用以提供步骤S3001中查询所要获得的时区属性值。Similarly, the time zone attribute information recorded in step S4002 and step S4003 is used to provide the time zone attribute value to be obtained by querying in step S3001.

相应地,步骤S3001为:软交换设备查询并获得所述用户或中继所属呼叫源的时区属性值及所述软交换设备自身的时区属性值,并计算所述软交换设备与所述用户或中继的时区属性值的差值。如步骤S4001所述,同一呼叫源下的用户、中继是位于同一时区的,它们有同样的时区属性值,即,分配给该呼叫源的时区属性值,所以,获得了呼叫源的时区属性值即获得了所述用户或中继的时区属性值。Correspondingly, step S3001 is: the softswitch device inquires and obtains the time zone attribute value of the call source to which the user or relay belongs and the time zone attribute value of the softswitch device itself, and calculates the relationship between the softswitch device and the user or relay The difference between the relay's timezone property value. As described in step S4001, users and relays under the same call source are located in the same time zone, and they have the same time zone attribute value, that is, the time zone attribute value assigned to the call source, so the time zone attribute of the call source is obtained The value gets the time zone attribute value of the user or relay.

图4为本发明中计费方法的一个应用实施例示意图。如图4所示,用户A和用户B为软交换设备1下的用户,用户C为软交换设备2下的用户。用户A经过中继1呼叫用户C,用户B经过中继2呼叫用户C。运营商定义的分时段计费费率表如下表所示:Fig. 4 is a schematic diagram of an application embodiment of the billing method in the present invention. As shown in FIG. 4 , user A and user B are users under soft switch device 1 , and user C is a user under soft switch device 2 . User A calls user C through trunk 1, and user B calls user C through trunk 2. The time-based billing rate table defined by the operator is shown in the following table:

表1运营商定义的分时段计费费率表Table 1 Time-based billing rate table defined by operators

 时区段 time zone  费率 rate  备注 Remark

00:00~12:0000:00~12:00 Rate1Rate1   用户在每天的00:00~12:00这段时间内计费费率是Rate1 The billing rate for users during the period from 00:00 to 12:00 every day is Rate1 12:00~24:0012:00~24:00 Rate2Rate2   用户在每天的12:00~24:00这段时间内计费费率是Rate2 The billing rate for users during the period from 12:00 to 24:00 every day is Rate2

众所周知,全球共划分成24个时区,相邻两个时区的标准时相差一小时。目前,全世界多数国家都采用以区时为单位的标准时。如图4所示,软交换设备1位于07时区,用户A位于06时区,用户B位于08时区;软交换设备2位于10时区,用户C位于11时区。作为一种实施方式,可以给每个时区内的用户分配一个时区属性值标识其所在的时区,例如,位于01时区的用户,其时区属性值(User Time Zone,UTZ)就为01,位于16时区的用户,其UTZ就为16,等等。以此类推,位于第几时区的用户分配给其的UTZ就是几。则,在本实施例中,软交换设备1的时区属性值(SoftSwitch Equipment Time Zone,SETZ)为SETZ(1)=07,用户A的时区属性值为UTZ(A)=06,用户B的时区属性值为UTZ(B)=08,软交换设备2的时区属性值为SETZ(2)=10,用户C的时区属性值为UTZ(C)=11。各个用户的时区属性信息是存储在其所属的软交换设备上。在本实施例中,用户A和用户B的时区属性信息存储在软交换设备1上,用户C的时区属性信息存储在软交换设备2上。As we all know, the world is divided into 24 time zones, and the standard time difference between two adjacent time zones is one hour. At present, most countries in the world adopt the standard time with zone time as the unit. As shown in FIG. 4 , softswitch device 1 is located in time zone 07, user A is located in time zone 06, user B is located in time zone 08; softswitch device 2 is located in time zone 10, and user C is located in time zone 11. As an implementation, users in each time zone can be assigned a time zone attribute value to identify their time zone. For example, a user in the 01 time zone has a time zone attribute value (User Time Zone, UTZ) of 01, located in 16 Time zone users, their UTZ is 16, and so on. By analogy, what time zone is the UTZ assigned to the user. Then, in the present embodiment, the time zone attribute value (SoftSwitch Equipment Time Zone, SETZ) of softswitch equipment 1 is SETZ (1)=07, and the time zone attribute value of user A is UTZ (A)=06, and the time zone of user B The attribute value is UTZ(B)=08, the time zone attribute value of softswitch device 2 is SETZ(2)=10, and the time zone attribute value of user C is UTZ(C)=11. The time zone attribute information of each user is stored on the softswitch device to which it belongs. In this embodiment, the time zone attribute information of user A and user B is stored on the softswitch device 1 , and the time zone attribute information of user C is stored on the softswitch device 2 .

在现有技术中普遍采用呼叫源来管理用户和中继,在本发明中也可以采用此种方式,将同一时区的用户、中继划分成一个或多个呼叫源,每个呼叫源分配一个标识该呼叫源中的用户、中继所在时区的时区属性值,并将呼叫源的该时区属性信息存储在其所属的软交换设备中。在本实施例中,用户A属于呼叫源1,用户B属于呼叫源2,用户C属于呼叫源3。当软交换设备对其下的用户进行计费时,根据用户所属的呼叫源查找该呼叫源的时区属性信息,即得到该用户的时区属性信息,因为每个呼叫源下的用户其时区属性信息都与该呼叫源的时区属性信息相同。In the prior art, call sources are commonly used to manage users and relays. This method can also be used in the present invention to divide users and relays in the same time zone into one or more call sources, and each call source is assigned a call source. Identify the user in the call source, the time zone attribute value of the time zone where the relay is located, and store the time zone attribute information of the call source in the softswitch to which it belongs. In this embodiment, user A belongs to call source 1, user B belongs to call source 2, and user C belongs to call source 3. When the softswitch performs billing for the users under it, it searches for the time zone attribute information of the call source according to the call source to which the user belongs, and obtains the time zone attribute information of the user, because the time zone attribute information of the user under each call source Both are the same as the time zone attribute information of the call source.

如果在软交换设备1所在时区的11点时刻,用户A呼叫用户C,通话时间为30分钟。假设为主叫收费,则软交换设备1记录的本次通话的起、止时间分别为11点、11点30分。在现有技术方案中,软交换设备1将按照计费费率Rate1对用户A的本次通话进行计费。但由于用户A和软交换设备1之间的时区差,用户A的实际通话起、止时间并不是11点、11点30分,按照计费费率Rate1计费显然是不正确的。If user A calls user C at 11 o'clock in the time zone where softswitch device 1 is located, the call time is 30 minutes. Assuming that the caller is charged, the start and end times of the call recorded by the softswitch device 1 are 11:00 and 11:30 respectively. In the prior art solution, the softswitch device 1 will charge the current call of user A according to the charging rate Rate1. However, due to the time zone difference between user A and softswitch device 1, the actual call start and end time of user A are not 11 o'clock or 11:30 o'clock, and the billing according to the charging rate Rate1 is obviously incorrect.

在本发明中,软交换设备1将提取用户A的UTZ值及其自身的SETZ值,得到软交换设备1与用户A之间的时区差值为SETZ(1)-UTZ(A)=07-06=1。则软交换设备1将确定用户A所在时区的通话起止时间分别为:11点+1小时=12点、11点30分+1小时=12点30分,即软交换设备1确定用户A的实际通话时间段为12点~12点30分,并根据表1对用户A的本次通话采用计费费率Rate2进行计费。同时也保证了用户话单上的通话时间段与用户的实际通话时间段相符。In the present invention, soft exchange equipment 1 will extract the UTZ value of user A and its own SETZ value, obtain the time zone difference between soft exchange equipment 1 and user A and be SETZ (1)-UTZ (A)=07- 06=1. Then Softswitch 1 will determine that the call start and end time in the time zone of User A is respectively: 11 o'clock+1 hour=12 o'clock, 11:30+1 hour=12:30, that is, Softswitch 1 determines the actual time of User A. The call time period is from 12:00 to 12:30, and according to Table 1, the charging rate Rate2 is used for the call of user A. At the same time, it is also ensured that the call time period on the user's bill is consistent with the user's actual call time period.

如果是被叫收费的情况,用户A呼叫用户C时软交换设备2的时刻为:12点+[SETZ(1)-SETZ(2)]=9点,则软交换设备2记录用户C的本次通话起、止时间为:9点、9点30分。软交换设备2提取自身的SETZ值及用户C的UTZ值,得到软交换设备2与用户C的时区差值SETZ(2)-UTZ(C)=10-11=-1。则软交换设备2将确定用户C所在时区的通话起、止时间分别为:9点+(-1)小时=8点、9点30分+(-1)小时=8点30分,即软交换设备2确定用户A的实际通话时间段为8点~8点30分,并根据表1对用户C的本次通话采用计费费率Rate1进行计费。同时也保证了用户话单上的通话时间段与用户的实际通话时间段相符。If be the situation of being called charges, when user A calls user C, the moment of soft switch equipment 2 is: 12 o'clock+[SETZ (1)-SETZ (2)]=9 o'clock, then soft switch equipment 2 records user C's own time The start and end times of the call are: 9:00 and 9:30. Softswitch 2 extracts its own SETZ value and user C's UTZ value to obtain the time zone difference between softswitch 2 and user C SETZ(2)-UTZ(C)=10-11=-1. Then the softswitch device 2 will determine that the call start and end time of the time zone where user C is located are respectively: 9 o'clock+(-1) hour=8 o'clock, 9:30+(-1) hour=8:30, i.e. soft Switching device 2 determines that the actual call time period of user A is from 8:00 to 8:30, and uses the charging rate Rate1 to charge this call of user C according to Table 1. At the same time, it is also ensured that the call time period on the user's bill is consistent with the user's actual call time period.

相应地,本发明还提供一种计费装置,图1示出了该计费装置一实施例的功能模块组成示意图,该计费装置包括有时区识别单元1及计费单元2。时区识别单元1用于识别待计费通话对应的用户和/或中继所在的时区,并计算出待计费通话在所述用户和/或中继所在时区的通话时间段;计费单元2用于确定所述通话时间段相对应的计费费率并根据此计费费率进行计费。Correspondingly, the present invention also provides a billing device. FIG. 1 shows a schematic diagram of functional modules of an embodiment of the billing device. The billing device includes a time zone identification unit 1 and a billing unit 2 . The time zone identification unit 1 is used to identify the time zone where the user and/or the relay corresponding to the call to be charged is located, and calculates the call time period of the call to be charged in the time zone where the user and/or the relay is located; the billing unit 2 It is used to determine the charging rate corresponding to the call time period and perform charging according to the charging rate.

该时区识别单元1进一步包括有时区属性存储单元11和时间信息处理单元12。时区属性存储单元11用于存储用户或中继的时区属性信息及所述软交换设备自身的时区属性信息。如果采用呼叫源的方式管理用户、中继,则在本发明中同一呼叫源下的用户、中继是属于同一时区的,即,每个呼叫源有一个标识该呼叫源下的用户、中继所在时区的时区属性值。在这种情况下,时区属性存储单元11用于存储呼叫源的时区属性信息及所述软交换设备自身的时区属性信息。The time zone identification unit 1 further includes a time zone attribute storage unit 11 and a time information processing unit 12 . The time zone attribute storage unit 11 is used for storing the time zone attribute information of the user or the relay and the time zone attribute information of the softswitch itself. If users and relays are managed in the form of call sources, the users and relays under the same call source belong to the same time zone in the present invention, that is, each call source has a user and relay that identifies the call source. The value of the timezone attribute for the current timezone. In this case, the time zone attribute storage unit 11 is used to store the time zone attribute information of the call source and the time zone attribute information of the softswitch itself.

时间信息处理单元12用于查询所述待计费通话对应的用户和/或中继及所述计费装置的时区属性信息;并根据所查询到的时区属性信息及自身记录的待计费通话的时间信息确定所述待计费通话在所述用户和/或中继所在时区的通话时间段。当采用呼叫源的方式管理用户、中继时,时间信息处理单元12查询用户或中继所属呼叫源的时区属性信息,即得到该用户或中继的时区属性信息。The time information processing unit 12 is used to query the user and/or relay corresponding to the call to be charged and the time zone attribute information of the charging device; The time information of the call determines the call time period of the call to be charged in the time zone where the user and/or the relay is located. When the user or relay is managed in the form of a call source, the time information processing unit 12 queries the time zone attribute information of the call source to which the user or relay belongs, that is, obtains the time zone attribute information of the user or relay.

作为一种实施方式,时间信息处理单元12又进一步包括有时区提取单元121、差值计算单元122、时间提取单元123及通话时间段计算单元124。时区提取单元121用于查询时区属性信息并分别提取出分配给给所述用户和/或中继及所述计费装置的时区属性值,发送给差值计算单元122。差值计算单元122用于计算计费装置的时区属性值与所述用户和/或中继的时区属性值的差值,并将所述差值发送给通话时间段计算单元123。时间提取单元123用于提取计费装置记录的待计费通话的起、止时间信息,并将其发送给通话时间段计算单元124;该时间信息存储于计费装置的某一存储单元(图1中并未画出)中。通话时间段计算单元124用于将时间提取单元123发送过来的计费装置记录的待计费通话的起、止时间分别加上差值计算单元122发送过来的差值,得到待计费通话在所述用户和/或中继所在时区的起、止时间。然后,计费单元2根据该待计费通话在所述用户和/或中继所在时区的通话时间段选择对应的计费费率进行计费,保证了话单中的通话时间段与用户、中继的实际通话时间段,即用户、中继所在时区的通话时间段,相符。As an implementation manner, the time information processing unit 12 further includes a time zone extracting unit 121 , a difference calculating unit 122 , a time extracting unit 123 and a call duration calculating unit 124 . The time zone extracting unit 121 is used to query the time zone attribute information and respectively extract the time zone attribute values assigned to the user and/or the relay and the charging device, and send them to the difference calculation unit 122 . The difference calculation unit 122 is configured to calculate the difference between the time zone attribute value of the billing device and the time zone attribute value of the user and/or relay, and send the difference to the call duration calculation unit 123 . The time extracting unit 123 is used to extract the start and end time information of the call to be charged by the billing device record, and send it to the call time section calculation unit 124; this time information is stored in a certain storage unit (Fig. 1 is not shown). The call duration calculation unit 124 is used to add the difference value sent by the difference value calculation unit 122 to the start and end time of the call to be charged recorded by the charging device sent by the time extraction unit 123 to obtain the call to be charged at the time of the call to be charged. The start and end time of the time zone where the user and/or relay is located. Then, the billing unit 2 selects the corresponding billing rate for charging according to the call time period of the call to be charged in the time zone where the user and/or the relay are located, which ensures that the call time period in the bill is consistent with the user, The actual call time zone of the trunk, that is, the call time zone in the time zone where the user and the trunk are located, matches.

之后,运营商的计费中心根据主叫收费、被叫收费的不同,提取计费装置中待计费通话对应的用户和/或中继的话费信息计算用户或中继的话费,对用户进行收费。Afterwards, the operator's billing center extracts the user and/or relay call charge information corresponding to the call to be charged in the billing device to calculate the user's or relay call charges according to the difference between the calling charge and the called charge, and conduct a billing charge for the user. TOLL.

以上所揭露的仅为本发明的较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above disclosures are only preferred embodiments of the present invention, and certainly cannot limit the scope of rights of the present invention. Therefore, equivalent changes made according to the claims of the present invention still fall within the scope of the present invention.

Claims (9)

1, a kind of charging method is characterized in that, comprising:
A, identification wait to charge conversation pairing user and/or the time zone of relaying and the time zone at message accounting self place, and determine the described air time section of conversation of waiting to charge in described user and/or time zone, relaying place;
B, determine corresponding charging rate, and charge according to described air time section.
2, charging method as claimed in claim 1 is characterized in that, described steps A specifically may further comprise the steps:
A1, inquire about and obtain described wait to charge conversation pairing user and/or the time zone property value of relaying and the time zone property value of described message accounting self;
Difference between the time zone property value of A2, the time zone property value that calculates described message accounting self and described user and/or relaying;
A3, according to described difference, calculate the described air time section of conversation of waiting to charge in described user and/or time zone, relaying place.
3, charging method as claimed in claim 2, it is characterized in that the described conversation of waiting to charge of described calculating in the method for the air time section in described user and/or time zone, relaying place is: the described conversation of conversing of waiting the to charge time of rising, end of message accounting self record is added the above difference.
4, as each described charging method of claim 1 to 3, it is characterized in that, also comprise the following steps: before the described steps A
A21, for each user and relay distribution identify the time zone property value in this user or time zone, relaying place, and with among this value record this user or the time zone attribute information of relaying on being stored in message accounting;
A22, be the time zone property value in this time zone, message accounting place of message accounting allocation identification, and in the time zone attribute information with this message accounting of this value record on being stored in message accounting.
5, as each described charging method of claim 1 to 3, it is characterized in that, also comprise the following steps: before the described steps A
A11, the user that will be positioned at same time zone, relaying are divided into one or more call source;
A12, be the time zone property value in described each this time zone of call source allocation identification, and in the time zone attribute information with this call source of this value record on being stored in message accounting;
A13, be the time zone property value in this time zone, message accounting place of message accounting allocation identification, and in the time zone attribute information with this message accounting of this value record on being stored in message accounting.
6, a kind of message accounting is characterized in that, includes:
The time zone recognition unit is used to discern and waits the charge user of conversation correspondence and/or the time zone at relaying place, and calculates the described air time section of conversation in described user and/or time zone, relaying place of waiting to charge;
Charging Detail Record unit is used for determining the corresponding charging rate of described air time section and charges according to this charging rate.
7, message accounting as claimed in claim 6 is characterized in that, described time zone recognition unit further includes:
Property store unit, time zone is used to store the time zone attribute information of user or relaying, the perhaps time zone attribute information of call source under user or the relaying, and the time zone attribute information of described message accounting self;
The temporal information processing unit is used to inquire about described the charge user of conversation correspondence and/or the time zone attribute information of relaying and described message accounting waited; And determine the described air time section of conversation of waiting to charge in described user and/or time zone, relaying place according to the charge temporal information of conversation waited of time zone attribute information that is inquired and self record.
8, message accounting as claimed in claim 7 is characterized in that, described temporal information processing unit further includes time zone extraction unit, difference computational unit, time extraction unit and air time section computing unit, wherein:
Described time zone extraction unit is used to inquire about the time zone attribute information and extracts the time zone property value of distributing to described user and/or relaying and described message accounting respectively, sends to described difference computational unit;
Described difference computational unit is used to calculate the difference of the time zone property value of the time zone property value of described message accounting and described user and/or relaying, and described difference is sent to described air time section computing unit;
What described time extraction unit was used to extract described message accounting record waits to charge the rising, end temporal information and send it to described air time section computing unit of conversation;
Described air time section computing unit is used for the charge time of rising, end of conversation of waiting of described message accounting record is added the above difference respectively, obtains described conversation the rising, ending the time in described user and/or time zone, relaying place of waiting to charge.
9, message accounting as claimed in claim 7 is characterized in that, described call source is the user who is in same time zone, the call source that relaying is formed.
CN 200710026332 2007-01-16 2007-01-16 Charging method and its device Pending CN101005385A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200710026332 CN101005385A (en) 2007-01-16 2007-01-16 Charging method and its device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200710026332 CN101005385A (en) 2007-01-16 2007-01-16 Charging method and its device

Publications (1)

Publication Number Publication Date
CN101005385A true CN101005385A (en) 2007-07-25

Family

ID=38704274

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200710026332 Pending CN101005385A (en) 2007-01-16 2007-01-16 Charging method and its device

Country Status (1)

Country Link
CN (1) CN101005385A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008064606A1 (en) * 2006-12-01 2008-06-05 Huawei Technologies Co., Ltd. A method, system and device for implementing controlled charging
CN102404126A (en) * 2011-11-25 2012-04-04 浪潮电子信息产业股份有限公司 A charging method in the application process of cloud computing
CN103560895A (en) * 2013-10-31 2014-02-05 国家电网公司 Billing system with crashing-preventing function and server
CN103560896A (en) * 2013-10-31 2014-02-05 国家电网公司 Exchanger charging method
CN113820941A (en) * 2020-06-18 2021-12-21 Eta瑞士钟表制造股份有限公司 Update device and method thereof

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008064606A1 (en) * 2006-12-01 2008-06-05 Huawei Technologies Co., Ltd. A method, system and device for implementing controlled charging
CN102404126A (en) * 2011-11-25 2012-04-04 浪潮电子信息产业股份有限公司 A charging method in the application process of cloud computing
CN102404126B (en) * 2011-11-25 2014-05-07 浪潮电子信息产业股份有限公司 Charging method of cloud computing during application process
CN103560895A (en) * 2013-10-31 2014-02-05 国家电网公司 Billing system with crashing-preventing function and server
CN103560896A (en) * 2013-10-31 2014-02-05 国家电网公司 Exchanger charging method
CN103560896B (en) * 2013-10-31 2017-02-15 国家电网公司 Exchanger charging method
CN113820941A (en) * 2020-06-18 2021-12-21 Eta瑞士钟表制造股份有限公司 Update device and method thereof
CN113820941B (en) * 2020-06-18 2023-03-24 Eta瑞士钟表制造股份有限公司 Updating device and method thereof

Similar Documents

Publication Publication Date Title
US8073425B2 (en) Charging method and charging system
US20090006229A1 (en) System and method for telephony billing codes
US20090110163A1 (en) System and method for inbound call billing
CN101815275A (en) Mobile phone charge calculating device
CN101431580A (en) Voice service charging method and apparatus thereof
CN101005385A (en) Charging method and its device
CN102142966B (en) Service nested charging-based service correlation method, device and system
CN101729709B (en) Method and device for processing branch ticket
CN101729710B (en) Method and system for comprehensively clearing communication services
US7606354B2 (en) Method and system for dynamic tariffing and billing
CN101217607A (en) Method for realizing group switchboard, business control device and group switchboard system
CN106714128A (en) Automatic fee-paying method and terminal
CN103888923B (en) Applied to the call connection method of VPMN, system and device
WO2011088664A1 (en) Method and system for implementing rent-deduction of prepaid services
CN101951584B (en) Charging method and system for group intelligent service of mobile virtual private network
CN201708930U (en) Mobile phone fee calculating device
CN105246063A (en) Billing method, device and system
CN100589590C (en) Method and device for realizing similar services of multiple virtual operators with the same service key
CN104602239A (en) Mobile communication copy card determination method and system
CN101677347B (en) Method of preventing loss of phone bill due to switching of service control processor (CP)
JP2001036673A (en) Method and system for reporting optimal charge plan
US20060229060A1 (en) Method and system of alerting callers to surcharges
CN101287049B (en) System and method for controlling call duration of card users
CN101651762A (en) Method and device for realizing limit consumption service in flexible period
CN102056027B (en) intelligent network charging method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20070725